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

fix choose cohorts close or cancel updating feature cohorts selection in flyout #2366

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

imatiach-msft
Copy link
Contributor

@imatiach-msft imatiach-msft commented Sep 27, 2023

Description

Fixing bug from bug bash discovered by @vinuthakaranth
The "Choose cohorts" flyout was saving the user's selection even when they clicked cancel or close buttons.
This issue was found during text/vision dashboard bugbash but it looks like a general issue that is in the tabular dashboard as well.

Video of functionality prior to fix:

rai_text_job.-.Azure.AI._.Machine.Learning.Studio.-.Work.-.Microsoft.Edge.2023-09-27.10-32-14.mp4

Video of functionality after fix:

Dashboard.-.Work.-.Microsoft.Edge.2023-09-27.10-33-49.mp4

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.


import { ErrorCohort } from "@responsible-ai/core-ui";

export interface IChartConfigurationFlyoutProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: both props and state interface can be in single file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or can be moved to utils file too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have 24 files that are props only:
https://github.com/search?q=repo%3Amicrosoft%2Fresponsible-ai-toolbox+Props.ts&type=code
and we have 12 files that are state only:
https://github.com/search?q=repo%3Amicrosoft%2Fresponsible-ai-toolbox+State.ts&type=code
I hope it's ok to keep to this convention? I just wanted to bring the line count down and this was the only thing I could think of. Seems it needs deeper refactoring to bring it below the suggested limit of 300 lines.

@imatiach-msft imatiach-msft force-pushed the ilmat/fix-cohorts-close-save branch from 0bcd725 to 66b2d38 Compare September 28, 2023 19:25
@imatiach-msft imatiach-msft merged commit a82184b into main Sep 29, 2023
@imatiach-msft imatiach-msft deleted the ilmat/fix-cohorts-close-save branch September 29, 2023 05:08
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.

2 participants