-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jkmarx/add dataset read meta (#2409)
* Add dataset permission read_meta field. * Add a readmetaonly flag which defaults to false. * Update dataset share permissions. * Add exclude facets capabilities. * Extend solr_query and assay/files api to handle meta_only. * Add data_set_uuid param. * Add unit tests. * Shift perm to data set only. * Fix typo. * Revert data set api response. * Fix unit test avoid reference change. * Revert group perms, unneccessary for object perm. * Update UI to add read_meta * Update owner perms and share perms for data sets. * Swap order of read perms. * Update unit tests. * Read_meta is true if change or read is. * Fix unit test's dependency on outside method. * Update perms service. * Refactor perms service. * Fix get bug. * Fix write bug. * Revert unneccessary method change. * Add comment. * Fix unit test and revert iffy * Refactor to bottom most perm. * Update unit test. * Move params inside for consistency. * Fix typo with tests. * Fix another typo with str. * Revert params location. * Fix styling. * Update name for clarity. * Fix order for clarity. * Add logout to tearDown. * Copy vs slice to avoid pass by ref. * Add comments to help with clarity. * Fix param defaults. * Fix order. * Workflows do not show the text: No workflows. * Fix workflow bug. * Add back integration test. * Revert accidental changes. * Update resoource for user/dataset and add helper method with test. * Add dataSetUuid to provenance for assay/files. * Fix param name. * Revert bug fix.
- Loading branch information
Showing
16 changed files
with
373 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0012_auto_20171026_0939'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='dataset', | ||
options={'verbose_name': 'dataset', 'permissions': (('read_dataset', 'Can read dataset'), ('read_meta_dataset', 'Can read meta dataset'), ('share_dataset', 'Can share dataset'))}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.