oxidecomputer / oxidecomputer/console

Project viewer may not be able to list projects for project switcher

Open
#1,050 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

On project pages, we have a project switcher in the corner that relies on fetching the list of projects. But in our current permissions model, you can see a project and its child resources without being able to list projects on the org (which requires view permissions on the org).

We had a hard time debugging this because of #1040 — we got a full-page 404 and had to go into the network tab to tell it was specifically the projects list call that was 404ing.

Not sure what to do about this yet besides fixing #1040 — it depends on the outcome of #1326 and whether we add more structure to the relationship between org and project roles.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start on a project page and inspect the project switcher's projects-list request, especially the full-page 404 described in #1040. Read #1040 and #1326 to understand the permission-model decision before proposing a direction. Done requires an agreed behavior for users who can view a project but cannot list projects at the organization level.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.