Skip to content

Add publicRetrievalId to submission payload and schema - #514

Merged
davidjamesstone merged 2 commits into
mainfrom
feature/DF-1420-public-retrieval-id
Nov 27, 2026
Merged

davidjamesstone merged 2 commits into
mainfrom
feature/DF-1420-public-retrieval-id

Conversation

@davidjamesstone

@davidjamesstone davidjamesstone commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor
  • Introduced publicRetrievalId as a unique identifier in the submission payload.
  • Updated the schema to require publicRetrievalId with a description.

Proposed change

Add a publicRetrievalId to the submission payload as a public facing unique UUID that can be used to lookup a submission record

Jira ticket: https://eaflood.atlassian.net/browse/DF-1420

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

- Introduced publicRetrievalId as a unique identifier in the submission payload.
- Updated the schema to require publicRetrievalId with a description.
@sonarqubecloud

Copy link
Copy Markdown

? buildConditionEvaluations(model, context)
: []
: [],
publicRetrievalId: crypto.randomUUID()

@jbarnsley10 jbarnsley10 Nov 27, 2026 •

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.

I'd suggest this should sit inside meta rather than at the root of the payload, but not a problem if you leave it where it is.
If you do move it, obvs the tests, schema and interface have to change

@jbarnsley10 jbarnsley10 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.

Approving in principle. Decide if you think it's better for the new property to sit inside meta or not

@davidjamesstone
davidjamesstone merged commit 1b4c7f3 into main Nov 27, 2026
22 checks passed
@davidjamesstone
davidjamesstone deleted the feature/DF-1420-public-retrieval-id branch November 27, 2026 14:32

@alexluckett alexluckett 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.

Withdrawn: the ID stays in the plugin. Please ignore this comment.

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.

3 participants