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

refactor(coral): Use new property hasOpenRequestOnEnyEnv for Claim Banners #1811

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

programmiri
Copy link
Contributor

@programmiri programmiri commented Sep 27, 2023

Linked issue

Resolves: #1756

What kind of change does this PR introduce?

  • Bug fix
  • New feature
  • Refactor
  • Docs update
  • CI update

What is the current behavior?

If a topic/connector has an open promotion request, users from different team will see the "you can claim this" banner and be able to do a claim request. This can cause all kind of messes, e.g. a topic on different environments belonging to different teams etc. Reason was that the property hasOpenRequest, that we used to check that, only checks request on the current environment, but a promotion request belongs to the target env.

What is the new behavior?

We have a new property in the backend, hasOpenRequestOnAnyEnv that, well, shows if there is any request open on any env. We now use this to decide how the claim banner looks and if user can claim.

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)

@programmiri programmiri marked this pull request as draft September 27, 2023 08:20
@programmiri programmiri self-assigned this Sep 29, 2023
@programmiri programmiri force-pushed the 1756-update-claim-banners branch from 94db05c to f4bd9a1 Compare October 4, 2023 07:19
Signed-off-by: Mirjam Aulbach <[email protected]>
@programmiri programmiri force-pushed the 1756-update-claim-banners branch from f4bd9a1 to 8e137d7 Compare October 4, 2023 12:45
@programmiri programmiri marked this pull request as ready for review October 4, 2023 12:59
Copy link
Contributor

@mathieu-anderson mathieu-anderson left a comment

Choose a reason for hiding this comment

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

👍

@mathieu-anderson mathieu-anderson merged commit 8acd3fc into main Oct 5, 2023
32 checks passed
@mathieu-anderson mathieu-anderson deleted the 1756-update-claim-banners branch October 5, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Don't allow claiming connector / topic with an open promotion request
2 participants