-
Notifications
You must be signed in to change notification settings - Fork 241
feat(compass-aggregations): add confirm banner for edit pipeline and new banners COMPASS-9700 #7198
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
Merged
+553
−219
Merged
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f5f1030
add confirmation banner
DarshanaVenkatesh acf5e6b
Merge branch 'main' into COMPASS-9700
DarshanaVenkatesh fe7c781
add version incompatible banner
DarshanaVenkatesh fbf8f07
add disabled tooltip
DarshanaVenkatesh 80ba891
fix incorrect readonly
DarshanaVenkatesh fd085b6
add tests
DarshanaVenkatesh d9a9171
Merge branch 'main' into COMPASS-9700
DarshanaVenkatesh 894cb50
add missing default params
DarshanaVenkatesh d99f756
move isPipelineSearchQueryable into compass-utils and update dependen…
DarshanaVenkatesh d245b89
add mongodb to dependencies in compass-utils
DarshanaVenkatesh af80a53
make isSearchPipelineQueryable true for not read only views
DarshanaVenkatesh 6f36bf1
fix update-view.spec.ts
DarshanaVenkatesh 3bd25a5
add negative test case
DarshanaVenkatesh ba3063d
remove async
DarshanaVenkatesh 71f3629
Merge branch 'main' into COMPASS-9700
DarshanaVenkatesh 082bd3c
just introduce new function to return whether has search indexes
DarshanaVenkatesh 2bf679d
remove compass-utils dep
DarshanaVenkatesh e2d2f27
remove compass utils changes and cleanup
DarshanaVenkatesh 434f636
update lock file
DarshanaVenkatesh 598efb2
fix accidental remove
DarshanaVenkatesh 285d349
fix stage.spec.ts
DarshanaVenkatesh 784087c
return false instead of errror
DarshanaVenkatesh 4c20596
check 8.0+
DarshanaVenkatesh af2b650
fix test
DarshanaVenkatesh 06f3621
update package-lock
DarshanaVenkatesh 8662ee5
fix mergee
DarshanaVenkatesh 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Doesn't make too much sense to re-throw a less detailed error here I think. But also just in general doesn't look right to fail in this case: this method will throw if cluster doesn't support search indexes and this will fail the view update for no good reason in this case. When trying out this branch locally, view updates are broken unless you're running the latest version of mongodb
Uh oh!
There was an error while loading. Please reload this page.
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.
That makes sense, I had it return false instead so it just skips confirmation in the second case. This was also prevent it from failing for less than latest version. I also made it check for 8.0+ so it only checks for confirmation for the versions it's possible to have search indexes on views (8.0 on de, 8.1+ on compass).