Skip to content

Describe naming convention for role in collections#173

Open
samdbmg wants to merge 8 commits intomainfrom
sammg/docs/better-role-values
Open

Describe naming convention for role in collections#173
samdbmg wants to merge 8 commits intomainfrom
sammg/docs/better-role-values

Conversation

@samdbmg
Copy link
Member

@samdbmg samdbmg commented Feb 9, 2026

Details

  • Describes a naming convention for the role field in collections of Flows and Sources
  • Adds an ADR discussing how that convention came to be
  • Reworks examples throughout to follow the convention

This is a first pass off the back of a discussion about handling broadcast channel ingests: I'd definitely appreciate a wider perspective!

Jira Issue (if relevant)

Jira URL: https://jira.dev.bbc.co.uk/browse/CLOUDFIT-5509

Related PRs

N/A

Submitter PR Checks

(tick as appropriate)

  • 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

(tick as appropriate)

  • 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.

Adds an AppNote describing the role naming convention and editorial
purposes.
@samdbmg samdbmg requested a review from a team as a code owner February 9, 2026 11:00
* Good, because it captures suggested names without constraining the purposes that a Flow or Source can be used for
* Good, because inspiration can be drawn from the other documents suggested, without being constrained by tem
* Good, because it is easy to add new items to the list
* Bad, because the list is open-ended and uncontrolled, which may lead to content using a mix of names
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Bad, because the list is open-ended and uncontrolled, which may lead to content using a mix of names
* Bad, because the list is open-ended and uncontrolled, which may lead to content using a mix of names
* Bad, because metadata that exists elsewhere in the API may be duplicated in this list
* Bad, because such duplicated metadata may conflict

Copy link
Member Author

Choose a reason for hiding this comment

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

Having switched away from using semi-structured identifiers, I'm not sure these make as much sense now? Because the list is just editorial purpose now and we can't fully capture that as an item property?

@samdbmg
Copy link
Member Author

samdbmg commented Feb 11, 2026

After a chat with @j616 I've fairly extensively reworked this, to move away from the semi-structured format originally proposed to using role for editorial purpose, and using existing properties to represent the rest.

Note that in the process I've tweaked how the ADR options are numbered to make clearer that they are two separate decisions, which are related, but the options aren't interchangeable between them

@samdbmg samdbmg force-pushed the sammg/docs/better-role-values branch from 55fb9c7 to ae272ce Compare February 11, 2026 17:51
@samdbmg samdbmg requested a review from j616 February 11, 2026 17:53
Splits the set of options for how to represent editorial purpose to a
different numbering scheme, to make clear they are related but not
interchangeable because they refer to different decisions.
Restructures the options to use a different numbering scheme, and group
related options together.
Adds additional options around querying Flow/Source properties directly
Expands and reworks role name decision outcome following discussion
@samdbmg samdbmg force-pushed the sammg/docs/better-role-values branch from ae272ce to 41a6a91 Compare February 12, 2026 16:34
Reworks the role naming convention appnote to remove semi-structured
format, instead just describing editorial purpose, in line with AppNote
0047.
Updates some of the examples to use the role names based on the appnote
convention
@samdbmg samdbmg force-pushed the sammg/docs/better-role-values branch from 41a6a91 to 6937daa Compare February 12, 2026 16:36
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.

2 participants