Skip to content

Conversation

@alexnuttall
Copy link
Contributor

@alexnuttall alexnuttall commented Jan 22, 2026

Description

template-management statuses typed as strings instead of enums, to allow us to modify these internal statuses without affecting schemas

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • If I have used the 'skip-trivy-package' label I have done so responsibly and in the knowledge that this is being fixed as part of a separate ticket/PR.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@alexnuttall alexnuttall requested a review from a team as a code owner January 22, 2026 08:46
},
{
"type": "object",
"properties": {
Copy link
Contributor

Choose a reason for hiding this comment

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

what does the event look like now if its deleted?

Copy link
Contributor

Choose a reason for hiding this comment

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

or has it not changed, we're just no longer calling it out separately, since we're less concerned about the status?

Copy link
Contributor Author

@alexnuttall alexnuttall Jan 22, 2026

Choose a reason for hiding this comment

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

The different variants on EventData were only distinct in the statuses, when I changed all the statuses to string, there was no reason not to merge them.

Chris' work to allow nulls in template drafts is actually contradicting this though, since it applies to a distinctive TemplateDraftedEventData type.

Chris is preparing a new PR to resolve the conflict and combine the changes, and it will supercede this - I'm just leaving this open for now because my other PR depends on it.

Sorry I should have let everyone know review wasn't needed any more

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