-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Improve the readability and maintainability of the code which groups and sorts the reports in the sidebar #12558
Merged
Merged
Changes from 6 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
94f978a
Refactor a few names to be more clear
tgolen 291cf65
Add code to group and sort the report options
tgolen 9dedc71
Flatten all grouped reportIDs into a single array
tgolen 5cad556
Improve a few comments
tgolen 5806f58
Improve a few comments
tgolen 863be99
Remove unused variables
tgolen a961129
Remove groupBy and only use arrays
tgolen 945afdf
Ignore case when sorting by report name
tgolen 0c4b705
Merge branch 'main' into tgolen-improving-grouping-sorting-reports
tgolen 85c6dc1
Fix a bug with iou reports not sorting properly
tgolen 0c09266
Remove extra debugging
tgolen be6ebbf
Protect against an empty IOU report collection
tgolen 1495687
Merge branch 'main' into tgolen-improving-grouping-sorting-reports
tgolen 305eb3a
Make return types more consistent
tgolen f24a207
Simplify checking for IOU reports
tgolen dc9bc97
Prevent IOU reports from ever being null
tgolen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grouping these into an object keyed with these strings is less clear than something like setting up a bunch of empty arrays:
I forgot what
groupBy
does, wasn't really sure what was happening here and had to look it up.Could we just set up the arrays, then sort them, then concat them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is a good idea and hopefully it will be more clear that way. I've update the PR for that.