Skip to content

Make role optional in collections, capture the same information elsewhere - #225

Merged
samdbmg merged 11 commits into
mainfrom
sammg/adr/collection-roles
Aug 10, 2026
Merged

Make role optional in collections, capture the same information elsewhere#225
samdbmg merged 11 commits into
mainfrom
sammg/adr/collection-roles

Conversation

@samdbmg

@samdbmg samdbmg commented Jul 10, 2026

Copy link
Copy Markdown
Member

Details

  • Adds an ADR exploring what role should be used for in collections, and concluding it should become optional
  • Makes the corresponding change to the API
  • ...and examples
  • Adds an ADR considering where to capture the "editorial purpose" of a Source or Flow (something role has been used for), and corresponding appnote, tags and examples

Issue (if relevant)

GitHub Issue: Fixes #188
Also tracked as https://jira.dev.bbc.co.uk/browse/CLOUDFIT-5509

Related PRs

Replaces #173 since that PR had got rather messy!

Submitter PR Checks

  • PR completes task/fixes bug
  • API version has been incremented if necessary
  • ADR status has been updated, and ADR implementation has been recorded
  • Documentation updated (README, etc.)
  • PR added to Jira Issue (if relevant)
  • Follow-up stories added to Jira

Reviewer PR Checks

  • PR completes task/fixes bug
  • Design makes sense, and fits with our current code base
  • Code is easy to follow
  • PR size is sensible
  • Commit history is sensible and tidy

Info on PRs

The checks above are guidelines. They don't all have to be ticked, but they should all have been considered.

Comment thread api/schemas/collection-item.json Outdated
Comment thread api/examples/flow-get-200-multi.json Outdated
Comment thread api/TimeAddressableMediaStore.yaml Outdated
Comment thread docs/adr/0047-roles-in-collections.md Outdated
Comment thread docs/adr/0053-editorial-purpose-tag.md Outdated
Comment thread docs/appnotes/0020-editorial-purpose.md Outdated
Comment thread docs/appnotes/0003-tag-names.md
Comment thread docs/appnotes/0020-editorial-purpose.md Outdated
Comment thread docs/appnotes/0025-editorial-purpose.md
@samdbmg
samdbmg force-pushed the sammg/adr/collection-roles branch 2 times, most recently from 0d72ad0 to aed9815 Compare July 24, 2026 09:42
@samdbmg
samdbmg requested a review from j616 July 29, 2026 16:14
@samdbmg
samdbmg force-pushed the sammg/adr/collection-roles branch from f206104 to a542c64 Compare July 30, 2026 14:51

@j616 j616 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One Nit. Otherwise LGTM

Comment thread docs/appnotes/0020-editorial-purpose.md Outdated
samdbmg and others added 8 commits August 10, 2026 11:12
Adds an ADR considering the use of the `role` property, and recommending
that for most cases properties of Flows and Sources should be stored on
the objects themselves
Implements the proposal in ADR0047 by making `role` in a collection
optional, and adding a `priority` field for sort order.

sem-ver: feature
Also adds AppNote 0020 suggesting values
Co-authored-by: James Sandford <james.sandford@bbc.co.uk>
Removes `priority` in favour of Flow collections being an ordered list
@samdbmg
samdbmg force-pushed the sammg/adr/collection-roles branch from e0dc25e to 58d321c Compare August 10, 2026 11:17
samdbmg and others added 3 commits August 10, 2026 11:18
Co-authored-by: James Sandford <james.sandford@bbc.co.uk>
Calls out that you shouldn't need a collection for capturing editorial
purpose
@samdbmg
samdbmg force-pushed the sammg/adr/collection-roles branch from 58d321c to 56260b7 Compare August 10, 2026 11:18
@samdbmg
samdbmg merged commit 8610a09 into main Aug 10, 2026
8 checks passed
@samdbmg
samdbmg deleted the sammg/adr/collection-roles branch August 10, 2026 11:24
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.

Role name description should be more specific

2 participants