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

Feature/70 bug contribution delete composition #128

Merged
merged 4 commits into from
Feb 14, 2020

Conversation

jakesmolka
Copy link
Contributor

@jakesmolka jakesmolka commented Feb 10, 2020

Several fixes to allow deletion of a composition via committing a contribution.

In detail:

  • Contribution endpoints are returning correct set of affected version objects (see retrieveCompositionsInContribution())
  • Fixed deletion of composition (when called via contribution). Deletes current version, i.e. moves it to _history table, but also creates new _history entry documenting the deletion-version (see deleteWithCustomContribution())
  • Clients have to provide a complete and valid commit audit when committing a contribution. This data will now be processed and saved. For instance, the change type will persist (see audit part in commitContribution())

Additionally, refactors I_SimpleCRUD interface to omit useless parameters.

@testautomation can you take a quick look at the changes to the tests?

fixes ehrbase/project_management#70

Fixes access layer handling of deleting a composition through a custom
contribution. Now the custom contribution gets written into the DB by
modifying the _history table entry.
Together, a request with such a delete-contribution will get a response
with the correct references of deleted compositions.

Also includes little refatoring of access interfaces etc.
Further fixing of internal retrieval and handling of matching
compositions to a given contribution.
Also fixes a robot test and add smalls refactorings.
Still needs new contribution change_type handling.
Adds handling of custom audit from contribution input. So client is
responsible to commit correct kind of change type etc., which now gets
processed and saved correctly.
@jakesmolka jakesmolka self-assigned this Feb 10, 2020
Copy link
Contributor

@testautomation testautomation left a comment

Choose a reason for hiding this comment

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

looks good 👍

@jakesmolka jakesmolka merged commit 4c32169 into develop Feb 14, 2020
@jakesmolka jakesmolka deleted the feature/70_bug_contribution_delete_composition branch February 14, 2020 08: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.

None yet

2 participants