Skip to content

Conversation

@yuanzhou
Copy link
Member

Following merged PR #227 but for TEST

DerekFurstPitt and others added 17 commits September 14, 2021 10:54
…ml. Added retracted_reason,

provider_info, and sub_status.
#Todo: add in internal method calls to entity api for normalized entity dict.

Had problems with testing involving neo4j version incompatibility. temporarily have hard coded
username/password rather than using the app.config. Also needed to replace from neo4j.exceptions
import TransactionError with from neo4j import exceptions. this will be reverted after my local
testing
…ons. Performing a push every so often because my virtual machine has become unstable.
…n changes.

TODO: Currently only the first ID entered has the user's group and the published status
verified. Need to check for each item in a revision chain.
…id is either published, or

the user has the appropriate auth, for each subsequent "next revision" it checks if the dataset
is published. If the dataset is not published, and the user does not have the appropriate
authorization, the dataset will not be added, and the previous revision will have its
"next_revision_uuid" field removed.
…l testing. Certain hard

coded values are now values from the app.cfg. Also, instances of neo4.exceptions.TransactionError()
have been changed back to just TransactionError(). This is done in anticipation of pulling new
changes from test-release
Allows users with HuBMAP-Data-Admin group access to retract published datasets, which gives them
a sub_status: deprecated property. Takes as input a json file with a required field
retraction_reason. This property is also updated. This uses a lot of the code from update_entities
to achieve the adding of new properties to existing datasets. Needs tested and much more QA
before moving to the next stage.
…is branch now only

includes /datasets/<id>/retract and not datasets/<id>/revisions.
…gers for values not supplied

by the user. Added documentation and removed a lot of redundant code
@yuanzhou yuanzhou merged commit ad48eca into test-release Sep 28, 2021
@yuanzhou yuanzhou mentioned this pull request Sep 28, 2021
@yuanzhou yuanzhou deleted the Derek-Furst/datasets-feature-retract branch October 4, 2021 18:41
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