-
Notifications
You must be signed in to change notification settings - Fork 69
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
Closes #1187: Extend the configuration UI to be able to hide files #1493
Conversation
c28f930
to
ddff562
Compare
…hidden files to the FileToolbar.js
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.
Reviewed 1 of 5 files at r1, 6 of 6 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @marcel-haag and @mariusoe)
components/inspectit-ocelot-configurationserver-ui/src/redux/ducks/configuration/actions.js
line 269 at r2 (raw file):
hideFilesRecursively(files, hidePattern); } else { dispatch(fetchFiles());
Why do we need to fetch the files when showHiddenFiles is false?
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @marcel-haag and @mariusoe)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @marcel-haag and @mariusoe)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MariusBrill and @mariusoe)
components/inspectit-ocelot-configurationserver-ui/src/redux/ducks/configuration/actions.js
line 269 at r2 (raw file):
Previously, MariusBrill (Marius Brill) wrote…
Why do we need to fetch the files when showHiddenFiles is false?
because we toggle from showHiddenFiles
to !showHiddenFiles
.
But I see your point. Doing the toggle before and then negating the expression makes more sense.
I've pushed an update.
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.
Reviewable status: 4 of 9 files reviewed, 1 unresolved discussion (waiting on @heiko-holz, @marcel-haag, @MariusBrill, and @mariusoe)
a discussion (no related file):
When I create a new file or folder while hidden files are not shown, they all appear again. I assume it is because in the writeFile
action the fetchFiles
action is dispatched as well.
Maybe the hiding could be incorporated into the fetchFiles
action directly?
I also wonder if the default should be that the hidden files are not shown, so they are only shown when explicitly asked for?
a discussion (no related file): Previously, aaronweissler wrote…
Good point, thank you for the comment! I have refactored Let's discuss the default state in the next meeting. |
a discussion (no related file): Previously, heiko-holz (Heiko Holz) wrote…
The default state was now changed to |
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.
Reviewed 3 of 4 files at r5, 3 of 3 files at r7, 1 of 1 files at r8, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @aaronweissler and @mariusoe)
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.
Reviewed all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mariusoe)
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.
Reviewed 1 of 1 files at r9, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mariusoe)
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mariusoe)
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mariusoe)
…1493) * feat: Extend the configuration UI to be able to hide files * Refactor method and field names; move the functionality to show/hide hidden files to the FileToolbar.js * Minor refactor of toggleShowHiddenFiles * Fix comment * Highlight hidden files when shown (change color) * Fix linting errors * refactor toggle show hidden files; move functionality to fetchFiles * change default state of showHiddenFiles Co-authored-by: Heiko Holz <heiko.holz@novatec-gmbh.de>
closes #1187
This change is