Skip to content

fix: only show editable orgs on deployment page #14193

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

Merged
merged 14 commits into from
Aug 9, 2024

Conversation

code-asher
Copy link
Member

Also make sure the redirect from /organizations goes to an org that the user can edit, rather than always the default org.

Copy link

alwaysmeticulous bot commented Aug 6, 2024

🤖 Meticulous spotted visual differences in 528 of 1265 screens tested: view and approve differences detected.

Last updated for commit ba22bc9. This comment will update as new commits are pushed.

Also make sure the redirect from /organizations goes to an org that the
user can edit, rather than always the default org.
@code-asher code-asher force-pushed the asher/show-editable-orgs branch from f01285d to 713b954 Compare August 6, 2024 23:36
@code-asher code-asher requested a review from aslilac August 6, 2024 23:42
@Emyrk
Copy link
Member

Emyrk commented Aug 7, 2024

If you cannot update the organization, should we show Organization Summary?

@code-asher
Copy link
Member Author

code-asher commented Aug 7, 2024

If you cannot update the organization, should we show Organization Summary?

Yup I want to do this, I was going to do it in a separate PR though! For now it shows an ineditable form, as before.

@Emyrk
Copy link
Member

Emyrk commented Aug 7, 2024

Yup I want to do this, I was going to do it in a separate PR though! For now it shows an ineditable form, as before.

Perfect 👍. Mainly just curious

We show the org on the sidebar if they can edit anything, and we show
each sub-link if they can view it, which means we were making both edit
and view permission checks.

Instead, show each link if they can edit it (not just view), which
negates the need for separate view permissions.

Incidentally, this also reduces the number of checks we need to make for
individual pages, since some of them were only used on the sidebar.
@code-asher
Copy link
Member Author

The new summary page: #14214

Kinda sad and sparse looking but hopefully better than an ineditable form 😛

@code-asher code-asher force-pushed the asher/show-editable-orgs branch from caf0649 to 83bf388 Compare August 7, 2024 22:41
@code-asher code-asher requested a review from aslilac August 8, 2024 02:08
@code-asher code-asher force-pushed the asher/show-editable-orgs branch from 1d95c86 to 64631e1 Compare August 8, 2024 22:54
@code-asher code-asher force-pushed the asher/show-editable-orgs branch from 5d9378b to ba22bc9 Compare August 9, 2024 06:07
@code-asher code-asher merged commit 6019d0b into main Aug 9, 2024
30 checks passed
@code-asher code-asher deleted the asher/show-editable-orgs branch August 9, 2024 06:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants