Skip to content

Conversation

@Michael-Dratch
Copy link
Collaborator

@Michael-Dratch Michael-Dratch commented Nov 15, 2025

New endpoint

POST /publish-check/{checkId}

As long as the calling user is authorized to publish this check, this endpoint will

  • increment the version number on the working check and update the working check document to save that new version number
  • Create a new publishedCustomCheck document in the publishedCustomCheck collection with the updated version number
  • Create a new snapshot of the working DMN in storage with the filename corresponding to the id of the new publishedCustomCheck document

Additional changes:

  • Added missing authorization to the endpoint for updating custom checks
  • The IDs of publishedCustomChecks should have the version number on them, this was missing from the function that generates the published check ids so I added it.

Copy link
Collaborator

@Justin-MacIntosh Justin-MacIntosh left a comment

Choose a reason for hiding this comment

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

Small changes with the concept of ID, but overall looks great!

@Michael-Dratch Michael-Dratch merged commit 0b0369f into main Nov 16, 2025
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