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() part3 - Remove .bind for SpinButton in AxisConfigDialog, MultiICEPlot and Fairness #1555

Merged
merged 17 commits into from
Jul 15, 2022

Conversation

tongyu-microsoft
Copy link
Contributor

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

This PR removes .bind() for SpinButton in AxisConfigDialog, MultiICEPlot and Fairness folder. Also removes .bind() for cohortList by creating a cohortNameColumn component.

Description

The UI refactor work is to remove all .bind() functions. And this PR is part 3.
part 1 PR link: #1523.
part 2 PR link: #1542.
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.

@tongyu-microsoft tongyu-microsoft changed the title [UI refactor] Remove .bind() part3 - Remove .bind for SpinButton in cohortList, AxisConfigDialog, MultiICEPlot and Fairness [UI refactor] Remove .bind() part3 - Remove .bind for SpinButton in AxisConfigDialog, MultiICEPlot and Fairness Jul 13, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2022

Codecov Report

Merging #1555 (3e24a88) into main (22ede53) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1555   +/-   ##
=======================================
  Coverage   87.99%   87.99%           
=======================================
  Files         109      109           
  Lines        5271     5271           
=======================================
  Hits         4638     4638           
  Misses        633      633           
Flag Coverage Δ
unittests 87.99% <ø> (ø)

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 22ede53...3e24a88. Read the comment docs.

1 similar comment
@RubyZ10 RubyZ10 self-requested a review July 14, 2022 18:25
@tongyu-microsoft tongyu-microsoft enabled auto-merge (squash) July 14, 2022 19:54
1 similar comment
@tongyu-microsoft tongyu-microsoft merged commit b0bbea0 into main Jul 15, 2022
@tongyu-microsoft tongyu-microsoft deleted the tongy/removeBindPart3 branch July 15, 2022 04:32
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