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

fix: handle no existing team members case when adding a new editor #3608

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

jamdelion
Copy link
Contributor

Fixes case where the 'add' button wasn't visible for teams where there were no team editors already.

Before After

Trello ticket: https://trello.com/c/piMcGsJa/2973-add-user-in-editor

Fix for comment raised in Slack: https://opensystemslab.slack.com/archives/C5Q59R3HB/p1724945320946359?thread_ts=1724942587.700829&cid=C5Q59R3HB

Comment on lines +78 to +106
{showAddMemberButton && (
<Snackbar
open={showSuccessToast}
autoHideDuration={6000}
onClose={handleCloseSuccessToast}
>
<Alert
onClose={handleCloseSuccessToast}
severity="success"
sx={{ width: "100%" }}
>
Successfully added a user
</Alert>
</Snackbar>
)}
{showAddMemberButton && (
<Snackbar
open={showErrorToast}
autoHideDuration={6000}
onClose={handleCloseErrorToast}
>
<Alert
onClose={handleCloseErrorToast}
severity="error"
sx={{ width: "100%" }}
>
Failed to add new user, please try again
</Alert>
</Snackbar>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unwieldy, should be removed in upcoming useToast PR

Copy link

github-actions bot commented Sep 2, 2024

Removed vultr server and associated DNS entries

Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Code changes look great here - thanks for fix 👍

Looks like this pizza has an API & ShareDB issue (just flakey & unrelated to your changes I suspect!). Since this is such a straightforward & tested change, happy for this to simply merge to staging and double check there once deployed, or would suggest logging into Vultr, destroying the instance & DNS, then re-running CI from scratch and I'd guess new pizza will be better?

@jamdelion jamdelion marked this pull request as ready for review September 2, 2024 13:33
@jamdelion
Copy link
Contributor Author

Code changes look great here - thanks for fix 👍

Looks like this pizza has an API & ShareDB issue (just flakey & unrelated to your changes I suspect!). Since this is such a straightforward & tested change, happy for this to simply merge to staging and double check there once deployed, or would suggest logging into Vultr, destroying the instance & DNS, then re-running CI from scratch and I'd guess new pizza will be better?

Thanks @jessicamcinchak - I've destroyed the instance (I assume DNS goes along with it?) but now getting an earlier fail in CI on the upsert vultr instance job. Have I missed a step?

@jessicamcinchak
Copy link
Member

@jamdelion - when manually destroying in Vultr, the instance & DNS are annoyingly separate pages/actions - three click minimum!

Just logged in & looks like your instance was properly destroyed, but DNS were still there: https://my.vultr.com/dns/edit/?domain=planx.pizza#dns-records - in future just need to also remove A & CNAME records from that page too! (I've done it here - so if you "Re-run failed job" should get further this time? 🤞)

Screenshot from 2024-09-02 15-54-01

@jamdelion jamdelion merged commit c342bb1 into main Sep 2, 2024
12 checks passed
@jamdelion jamdelion deleted the jh/handle-no-existing-team-members branch October 28, 2024 16:43
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.

2 participants