-
Notifications
You must be signed in to change notification settings - Fork 87
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
Access rights and index dataset without file #2925
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice already!
@@ -488,6 +489,7 @@ def dataset_from_rdf(graph, dataset=None, node=None): | |||
default_license = dataset.license or License.default() | |||
dataset_license = rdf_value(d, DCT.license) | |||
dataset.license = License.guess(dataset_license, *licenses, default=default_license) | |||
dataset.access_rights = rdf_value(d, DCT.accessRights) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should map from and towards the European vocabulary: http://publications.europa.eu/resource/authority/access-right.
@@ -491,6 +492,8 @@ class Dataset(WithMetrics, BadgeMixin, db.Owned, db.Document): | |||
deleted = db.DateTimeField() | |||
archived = db.DateTimeField() | |||
|
|||
access_rights = db.StringField(choices=list(ACCESS_RIGHTS), default=DEFAULT_ACCESS_RIGHTS, required=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
access_rights is at the Dataset level, may not match with usage and DCAT?
@@ -45,8 +45,11 @@ class DatasetSearch(ModelSearchAdapter): | |||
|
|||
@classmethod | |||
def is_indexable(cls, dataset): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to modify this anymore, see #2997
fix datagouv/data.gouv.fr#1186