-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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: Resend invite operation on users list #11351
fix: Resend invite operation on users list #11351
Conversation
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.
since users.store
already has a test file, can we please add a test case to cover for this? that way we can avoid the same regression in the future.
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.
The test wasn't preventing a regression. The API mock contained the role, but in reality this happens because the API does not return the role, right?
Which begs the question if the store code could be simplified by changing the API?
Co-authored-by: Danny Martini <[email protected]>
@despairblue yes, adding the role there is an overlooked. Just committed your change. Adding the the ID and not returning the role still works. |
Would it be cleaner to add the |
This makes sure the role is in the user store in the frontend without the FE needing to do manual remapping.
@RicardoE105 this is what I mean: Just wondering if that is cleaner, than having the FE retain data it sends to the API and merge it with the response. |
@despairblue gotcha now. Yes, let's do that. Will include that change if this PR if you do not mind. |
…lt' into help-645-resend-invitation-link-does-not-work-anymore
n8n Run #7508
Run Properties:
|
Project |
n8n
|
Branch Review |
help-645-resend-invitation-link-does-not-work-anymore
|
Run status |
Passed #7508
|
Run duration | 04m 27s |
Commit |
1cd0284f2b: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
|
Committer | Ricardo Espinoza |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
3
|
Pending |
0
|
Skipped |
0
|
Passing |
458
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
Got released with |
Summary
Pending users were added into the store with the property
globalRole
, but when we return the users we save them in the store with the propertyrole
instead.Before
See video on ticket -> https://linear.app/n8n/issue/HELP-645/resend-invitation-link-does-not-work-anymore
Now
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/HELP-645/resend-invitation-link-does-not-work-anymore
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)