-
Notifications
You must be signed in to change notification settings - Fork 364
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
upcoming: [M3-8012] - Fix PG event text formatting #10420
Conversation
Coverage Report: ✅ |
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.
✅ Confirmed that the PG event verb tenses are consistent with our existing events.
✅ Confirmed that user name, the correct action for create/update/delete/unassign, and correct linkable entities show up in the events lists.
A couple of questions about consistency with toasts, which are slightly tangential to this event PR, so I'll approve once there's clarity with the assign/assigned events:
- Can we punctuate consistently in toasts? This has been a cafe discussion before, so I'm mentioning here. I think they can be considered a sentence (subject and verb, even if it is a fragment) with a period.
packages/api-v4/.changeset/pr-10420-upcoming-features-1714484172551.md
Outdated
Show resolved
Hide resolved
packages/manager/.changeset/pr-10420-upcoming-features-1714484130384.md
Outdated
Show resolved
Hide resolved
After removing the
|
@mjac0bs I have updated the toast notifications to include the entity label and punctuation as suggested. |
…72551.md Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
…130384.md Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
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.
Thanks for the updates -- confirmed that the event messages and their corresponding toasts are looking consistent. How does a placement group become compliant or non-compliant?
The CI e2e failures are unrelated, and I believe they could be fixed by merging in develop.
packages/manager/src/features/PlacementGroups/PlacementGroupsUnassignModal.tsx
Outdated
Show resolved
Hide resolved
My understanding is that we don't trigger these events and just listen to them. We have logic that prevents the assignment of Linodes that would break compliance and the user is shown a toast notification of the failure. There's actions that take place in the backend that are async, which is where these might get triggered. Maybe @abailly-akamai can chime in and correct me where I'm wrong. |
@carrillo-erik @mjac0bs sounds right to me. We just really want to populate those events. A placement group can fall out of compliance for reasons out of our control (usually due to availability, hardware failure etc). Completely async. On top of that event, the user will see a non-compliant status for the PG in Cloud Manager. |
Description 📝
This PR updates the types and constants for action events for Placement Groups. Specifically, the action events are updated with a present-tense and imperative-style for consistency with other entity events. These changes resolve issues with Placement Group events missing the link and username.
Changes 🔄
List any change relevant to the reviewer.
d
anded
from events to make them consistent with other entity action events.(Ex.
placement_group_created
becomesplacement_group_create
andplacement_group_unassigned
becomesplacement_group_unassign
.Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
placement-group
customer tag on the user account used for testing.Placement Groups
feature flagDev
environmentVerification steps
(How to verify changes)
placement_group_create
placement_group_assign
placement_group_unassign
placement_group_update
placement_group_delete
As an Author I have considered 🤔
Check all that apply