-
Notifications
You must be signed in to change notification settings - Fork 916
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
[BUG][NewHomePage] Temp Solution to avoid crash for user with no write permission #7054
Conversation
…th no write permission Issue Resolve: opensearch-project#6320 Signed-off-by: Anan Zhuang <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7054 +/- ##
==========================================
+ Coverage 67.44% 67.46% +0.01%
==========================================
Files 3445 3445
Lines 67886 67884 -2
Branches 11037 11037
==========================================
+ Hits 45788 45798 +10
+ Misses 19431 19418 -13
- Partials 2667 2668 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
.save({}) | ||
.then(() => error$.next(undefined)) | ||
.catch((e) => error$.next(e)); | ||
homepage.save({}); |
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.
is there anything that tracks fixing this permanently?
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.
I could open an issue. Currently we are using this tmp one for unblocking purpose.
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.
actually we could keep the issue open and revisit to see if there is better solution
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.
Hi Anan. Will this fix have some potential issue as it swallowed the error. Will it show information that not suppose to show to user?
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.
Maybe we could leave a comment here to describe why it's crashed(I'm curious ;)
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.
+1
…e permission (#7054) * [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission Issue Resolve: #6320 --------- Signed-off-by: Anan Zhuang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 25009ba) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…e permission (#7054) * [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission Issue Resolve: #6320 --------- Signed-off-by: Anan Zhuang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 25009ba) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…e permission (#7054) (#7063) * [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission Issue Resolve: #6320 --------- (cherry picked from commit 25009ba) Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…e permission (#7054) (#7064) * [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission Issue Resolve: #6320 --------- (cherry picked from commit 25009ba) Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…e permission (opensearch-project#7054) * [BUG][NewHomePage] Temp Solution to avoid crash for anonymous user with no write permission Issue Resolve: opensearch-project#6320 --------- Signed-off-by: Anan Zhuang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Allow new home page shown for user with no write permission
2024-06-18_15-22-22.mp4
Compared it without the change
2024-06-18_15-25-00.mp4
Issues Resolved
#6320
Changelog
Check List
yarn test:jest
yarn test:jest_integration