-
Notifications
You must be signed in to change notification settings - Fork 461
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for the contribution! |
Changed Packages
|
Signed-off-by: Hope Hadfield <[email protected]> Signed-off-by: Mattia <[email protected]>
….4 (backstage#5340) Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
… v2.23.4 (backstage#5368) Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: backstage-goalie[bot] <97962292+backstage-goalie[bot]@users.noreply.github.com> Signed-off-by: Mattia <[email protected]>
… status, navigate to root on edit complete Signed-off-by: Mattia <[email protected]>
82bcbe9
to
2463ab0
Compare
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 @matdtr, thanks for fixing this!
The tests are failing due to the change in the active
property
page?: number; | ||
max?: number; | ||
active?: boolean; | ||
active?: string; |
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 boolean
active?: string; | |
active?: boolean; |
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 string
that’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.
Hey, I just made a Pull Request!
Fixed handling of
active
prop in NewAnnouncementBannerExtended signal and notification on update when the annoucencement is activated
Updated
EditAnnoucementPage
to navigate to root path as the announcement creation pageAll items reported in #5235
✔️ Checklist
Signed-off-by
line in the message. (more info)