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

fix(coral): Update handling for open CLAIM request in promotion. #1644

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

programmiri
Copy link
Contributor

@programmiri programmiri commented Aug 17, 2023

About this change - What it does

Updates PromotionBanner to take property hasOpenClaimRequest:

  • if there is an open claim request, we show a link to /approvals (type CLAIM) and inform user that there is an open claim request
  • if there is an open promotion request, we show a link to /request (type PROMOTE) and inform user that there is an open promotion request
  • if there is another open request (e.g. update), we show a link to /request (type ALL) and inform user that there is a pending request

Recording for topic

promotion-banner-recording.mov

Recording for schema

NOTE: In this recording, a little inconsistency is visible: I (as part of another team) did the claim request for the schema I wanted to show. If I'm the one making the request, I won't see it in /approvals because I can not approve my own requests (even if they are from another team). We currently don't have a way to avoid that, but it is not a common use case anyway.

promotion-banner-recording-schema.mov

Resolves #1643

@programmiri programmiri self-assigned this Aug 17, 2023
@programmiri programmiri added the Frontend Relates to coral (react app) label Aug 17, 2023
Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
@programmiri programmiri force-pushed the 1643-link-change-topic-has-open-claim-request branch from a006fb8 to 2e8e755 Compare August 17, 2023 14:28
@programmiri programmiri marked this pull request as ready for review August 17, 2023 14:31
Copy link
Contributor

@roope-kar roope-kar left a comment

Choose a reason for hiding this comment

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

LGTM, tagged some dev logging. Otherwise good to go!

Comment on lines 29 to 32
useEffect(() => {
console.log("hasOpenClaimRequest", hasOpenClaimRequest);
console.log("hasOpenSchemaRequest", hasOpenSchemaRequest);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 ✨

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
@roope-kar roope-kar merged commit 5d83f58 into main Aug 18, 2023
21 checks passed
@roope-kar roope-kar deleted the 1643-link-change-topic-has-open-claim-request branch August 18, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Relates to coral (react app)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 coral: If topic has an open claim request, user needs to be linked to "approvals"
2 participants