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

DataType feature (part 1) #1026

Merged
merged 27 commits into from
Apr 15, 2019
Merged

DataType feature (part 1) #1026

merged 27 commits into from
Apr 15, 2019

Conversation

madprime
Copy link
Member

This PR brings the DataType feature development branch up to date, finalizing "stage 1" of its deployment.

This feature breanch is intended to partly implement #981:

  • add models and views for viewing, creating, and updating DataTypes
  • add views for managing a project's registered DataTypes
  • handle specified DataTypes in the API for file uploads
  • some default behavior if DataTypes weren't specified during upload
  • records DataType edit history
  • adds public API endpoint for DataTypes
  • adds public API endpoint for projects

Aspects related to sharing permissions are not part of this PR (i.e. requesting and authorizing data sharing according to DataType).

Also, the feature at this stage does not enforce DataType in uploaded data in any way. Our future goal is to enforce this for future projects while falling back on a default assignment to "grandfather in" existing projects. However, we need to create DataTypes before we can set these defaults.

Testing

  • Automated tests have been added for some of the new features.
  • The feature has been deployed and used in a "trial run" on our staging site.

mldulaney and others added 18 commits March 28, 2019 15:50
* Initial datafile datatypes

Signed-off-by: Mairi Dulaney <[email protected]>

* Simplify things, change wording

Signed-off-by: Mairi Dulaney <[email protected]>

* more

Signed-off-by: Mairi Dulaney <[email protected]>

* fixups and also redirect from select datatypes if project is approved

Signed-off-by: Mairi Dulaney <[email protected]>

* Cleanup

Signed-off-by: Mairi Dulaney <[email protected]>

* fix migrations

Signed-off-by: Mairi Dulaney <[email protected]>

* Allow file upload to specify datatypes by name or ID

Signed-off-by: Mairi Dulaney <[email protected]>

* Update tests

Signed-off-by: Mairi Dulaney <[email protected]>

* Display description

Signed-off-by: Mairi Dulaney <[email protected]>
… grandfathering old projects, and some minor tweaks to flow (#996)

* Fix deauth hook

* Fix deauth hook

* Add auto_add_datatypes field to datarequestproject model

Signed-off-by: Mairi Dulaney <[email protected]>

* remove print

Signed-off-by: Mairi Dulaney <[email protected]>

* Add new datatypes api endpoint

Signed-off-by: Mairi Dulaney <[email protected]>

* Better handle names of datatypes and validate them

Signed-off-by: Mairi Dulaney <[email protected]>

* Disable verifying that file upload includes datatypes

Signed-off-by: Mairi Dulaney <[email protected]>

* small tweaks

Signed-off-by: Mairi Dulaney <[email protected]>

* Datatypes test

Signed-off-by: Mairi Dulaney <[email protected]>

* Move add datatypes view from project creation flow to separate button on project management page

Signed-off-by: Mairi Dulaney <[email protected]>
* Fix deauth hook

* Fix deauth hook

* Add auto_add_datatypes field to datarequestproject model

Signed-off-by: Mairi Dulaney <[email protected]>

* remove print

Signed-off-by: Mairi Dulaney <[email protected]>

* Add new datatypes api endpoint

Signed-off-by: Mairi Dulaney <[email protected]>

* Better handle names of datatypes and validate them

Signed-off-by: Mairi Dulaney <[email protected]>

* Disable verifying that file upload includes datatypes

Signed-off-by: Mairi Dulaney <[email protected]>

* small tweaks

Signed-off-by: Mairi Dulaney <[email protected]>

* Datatypes test

Signed-off-by: Mairi Dulaney <[email protected]>

* Move add datatypes view from project creation flow to separate button on project management page

Signed-off-by: Mairi Dulaney <[email protected]>

* Add case insensitive unquieness verification

Signed-off-by: Mairi Dulaney <[email protected]>
Projects may have requested vs registered datatypes; this was
where we wanted to have a name distinction.
Also updates migrations to match current master branch.
Also rename URLs for DataTypes to remove hyphen
Signed-off-by: Mairi Dulaney <[email protected]>
@madprime
Copy link
Member Author

madprime commented Apr 11, 2019

Here's a list of TODO items we still want:

  • Dropdown in form for submitting/editing datatypes needs to be ordered
  • Show "see full list" all the time, not just when there's no parent
  • List of DataTypes per project should be filtered on approved projects
  • Project setup description/docs need to include guide for registering data types
  • 'Manage projects' redesigned to have one "manage project" button & name linked to activity page

@madprime madprime force-pushed the 201904-feature-datafile-datatypes branch from 70505dc to 6f1f7ce Compare April 12, 2019 19:20
@madprime madprime force-pushed the 201904-feature-datafile-datatypes branch from 6f1f7ce to c5b761d Compare April 12, 2019 20:16
@madprime madprime mentioned this pull request Apr 13, 2019
5 tasks
@madprime
Copy link
Member Author

Putting off remaining tasks as issues #1030 & #1031 in favor of merging what we have.

…mans/open-humans into 201904-feature-datafile-datatypes
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