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

Feature/2066/remove none option from edge metric chooser #2670

Merged

Conversation

Hall-Ma
Copy link
Contributor

@Hall-Ma Hall-Ma commented Feb 18, 2022

Refactor edge metric panel

Closes: #2066
Closes: #1542

Description

  • When a loaded file hasn't edge metrics then the edge metric panel is hidden.
  • Now you can enable or disable the chosen edge metric (when the file has some).
  • 'None' option is removed from the edge metric panel.
  • When a file has edge metrics then the first edge metric is preselected.

Screenshots or gifs

image

@Hall-Ma Hall-Ma added this to the Good first issues milestone Feb 18, 2022
@Hall-Ma Hall-Ma linked an issue Feb 18, 2022 that may be closed by this pull request
@ce-bo
Copy link
Collaborator

ce-bo commented Feb 19, 2022

Would you please adjust the PR description @cschild / @Hall-Ma. It will help others later to understand what was done.

Copy link
Collaborator

@ce-bo ce-bo left a comment

Choose a reason for hiding this comment

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

I added some minor thoughts about the naming. However, the code is LGTM!

Copy link
Collaborator

@ce-bo ce-bo left a comment

Choose a reason for hiding this comment

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

Would it be possible to enable the edge metric if the users changes the selected metric?
For example

  1. avgCommits is pre selected
  2. User disables edge metric
  3. Later, he selects pairingRate for the edge metric
  4. Edge metrics should now be activated atomatically.

@Hall-Ma
Copy link
Contributor Author

Hall-Ma commented Feb 19, 2022

Would it be possible to enable the edge metric if the users changes the selected metric? For example

  1. avgCommits is pre selected
  2. User disables edge metric
  3. Later, he selects pairingRate for the edge metric
  4. Edge metrics should now be activated automatically.

You're totally right. It seems to be the better behavior. I have already changed it.

@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2022

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2022

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

97.1% 97.1% Coverage
0.0% 0.0% Duplication

@IhsenBouallegue IhsenBouallegue merged commit 4ad684e into main Feb 21, 2022
@IhsenBouallegue IhsenBouallegue deleted the feature/2066/remove-none-option-from-edge-metric-chooser branch February 21, 2022 09:34
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.

Remove None option from edge metric chooser Edge metric is only shown if there are activated edges
6 participants