oxidecomputer / oxidecomputer/omicron

Resource tags, filtering by tag

Open
#753 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Remote Access Preview
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

As discussed in RFD 4, resources are supposed to have tags and you're supposed to be able to filter lists by tag. There are two parts to this statement:

  • Adding tags to resources, presumably in IdentityMetadata, which makes it relatively easy
  • Filtering resources by tag, which is a lot more complicated and open-ended

There are lots of open questions about how to do filtering, for example: what is the scope of the query? Is it:

  • Give me all the instances in this project with this tag (or this tag substring)
  • Give me all the resources in this project with this tag (or tag substring)
  • Give me all the resources I can access with this tag (or tag substring)

Or do we keep things really simple and just add query params to existing list endpoints that allow filtering by tag? Etc.

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 with RFD 4, especially its tags section, then inspect the resource metadata represented by IdentityMetadata and the existing list endpoints. The scope and query behavior for tag filtering need to be decided before implementation; done means the tagging model and filtering semantics are specified and implemented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.