Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Svelte: remove site-admin-only data from repo popover#62834

Merged
camdencheek merged 3 commits into
mainfrom
cc/fix-repo-popover
May 22, 2024
Merged

Svelte: remove site-admin-only data from repo popover#62834
camdencheek merged 3 commits into
mainfrom
cc/fix-repo-popover

Conversation

@camdencheek

@camdencheek camdencheek commented May 21, 2024

Copy link
Copy Markdown
Member

The repo popover has deployed to S2, but it's not visible to anyone who is not a site admin because one of the GraphQL fields used is restricted to only site admins.

This updates the query to use a non-restricted field, and also fixes the code host capitalization while I'm at it.

Additionally, if there is an error, it now displays it in the popover so it should be easier to catch these in the future.

Test plan

Manually tested it still works when I use a user with no site admin permissions. This is a great motivator for getting solid end-to-end tests working 🙂

@cla-bot cla-bot Bot added the cla-signed label May 21, 2024
@camdencheek camdencheek force-pushed the cc/fix-repo-popover branch from bf145e8 to 32dd32b Compare May 21, 2024 21:34
@camdencheek camdencheek requested a review from a team May 21, 2024 21:34
@camdencheek camdencheek enabled auto-merge (squash) May 22, 2024 13:10
@camdencheek camdencheek merged commit 159c89c into main May 22, 2024
@camdencheek camdencheek deleted the cc/fix-repo-popover branch May 22, 2024 13:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants