Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI refactor] Remove .bind() part2 - Remove .bind in counterfactual folder and part of .bind() in other folders #1542

Merged
merged 18 commits into from
Jul 10, 2022

Conversation

tongyu-microsoft
Copy link
Contributor

@tongyu-microsoft tongyu-microsoft commented Jul 8, 2022

This PR removes .bind() in libs\counterfactuals folder. And also removes part of .bind() in core-ui, counterfactual, dataset-explorer, error-analysis folders.

Description

The UI refactor work is to remove all .bind() functions. And this PR is part 2.
part 1 PR link: #1523.
There will be following PRs to remove other .bind() functions.
The reason that we want to remove .bind() is that, a different callback is created each time the component renders. So we want to remove .bind() and set lint rule in the end to ban adding .bind() in the future.

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2022

Codecov Report

Merging #1542 (a783728) into main (6b6e1fb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1542   +/-   ##
=======================================
  Coverage   87.39%   87.39%           
=======================================
  Files         107      107           
  Lines        5069     5069           
=======================================
  Hits         4430     4430           
  Misses        639      639           
Flag Coverage Δ
unittests 87.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b6e1fb...a783728. Read the comment docs.

@tongyu-microsoft tongyu-microsoft enabled auto-merge (squash) July 8, 2022 22:25
1 similar comment
1 similar comment
1 similar comment
1 similar comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants