Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Datasets.createOrMerge and Datasets.publishIfExists #793

Closed
ktuite opened this issue Mar 20, 2023 · 0 comments · Fixed by #810
Closed

Refactor Datasets.createOrMerge and Datasets.publishIfExists #793

ktuite opened this issue Mar 20, 2023 · 0 comments · Fixed by #810
Assignees
Labels
entities Multiple Encounter workflows refactor

Comments

@ktuite
Copy link
Member

ktuite commented Mar 20, 2023

This is used by Forms.createNew and Forms.createVersion and intersects with Datasets.publishIfExists (called by Forms.publish`).

It creates these audit events: dataset.create, dataset.update, and/or dataset.update.publish.

Changes:

  1. Make inputs cleaner. Move work from Forms query module (to prepare Dataset object, filter form fields) into this function.
  2. Make it async/await!

There was more to this issue but it has been moved to a separate issue that can come later: #811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entities Multiple Encounter workflows refactor
Projects
Status: ✅ done
Development

Successfully merging a pull request may close this issue.

1 participant