-
Notifications
You must be signed in to change notification settings - Fork 471
announcements: Fix NewAnnouncementBanner & trigger notification on status update #5376
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cf88869
archive(odo): deprecate odo plugin (#5364)
hopehadfield 43ab642
fix(deps): update dependency @keycloak/keycloak-admin-client to v26.3…
backstage-goalie[bot] 7aa5507
Version Packages (#5367)
backstage-service 688f03d
chore(deps): update dependency @openapitools/openapi-generator-cli to…
backstage-goalie[bot] 2463ab0
fixed prop in new announcement banner, trigger notification on change…
matdtr 6424f89
Merge branch 'backstage:main' into update-announcements
matdtr 61dd8eb
updated router and edit page test
matdtr 4ce854c
Merge branch 'backstage:main' into update-announcements
matdtr 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@backstage-community/plugin-announcements-backend': minor | ||
| '@backstage-community/plugin-announcements': minor | ||
| --- | ||
|
|
||
| Fixed handling of `active` prop in NewAnnouncementBanner | ||
| Extended signal and notification on update when the annoucencement is activated | ||
| Updated `EditAnnoucementPage` to navigate to root path as the announcement creation page | ||
| Updated `EditAnnoucementPage` alertApi on success to be transient |
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
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.
I would prefer to keep it as a
booleanUh 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.
Hi @gaelgoth, i do agree but on the GET path the backend receives the value as
stringthat’s why the switch of type.if kept as boolean it would fail as reported here #5235.
Let me know how you would like to address it, if revert the type or fix the tests.
PS.
Sorry maintainers not sure why all you got tagged in this PR.
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.
Aaah, I didn’t realize it was the endpoint query, which is always a string with express. That makes sense, let’s treat it as a
stringfor the "external" type contract in thehttpquery and update the tests accordingly.I think the rebase ended up modifying some existing commits. Can you please fix this. Or totally fine to just spin up a fresh PR instead 👍🏾
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.
Fixed, created a new PR #5519. Will close this