-
Notifications
You must be signed in to change notification settings - Fork 32
WIP GobiertoData add dcat catalog endpoint #3846
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
base: master
Are you sure you want to change the base?
Conversation
07f1923 to
6d824d1
Compare
6d824d1 to
4efaad6
Compare
|
UPDATE: I sorted by mandatory | optionals mandatory / question (to close issue IMHO): to solve in another issue (to can schedule) optionals |
Please differentiate clearly what are improvements or what are things that should be decided. All improvements can go to further issues.
?
Is this is not mandatory, don't specify. If is mandatory, take the license of the first dataset.
Mandatory?
Proceed, its simple right?
In the
|
This is already implemented in the routes file, you don't need to do anything |
ferblape
left a comment
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.
Looks good, but there are a few details yet to be fixed.
About tests, you are just testing the presenter, that's not enough and you need to add controller or integration test to verify the api call. See how are tested the other methods of the data api
| modified: GobiertoData::Dataset.where(site_id: site.id).maximum(:created_at) || site.created_at, | ||
| languages: site["configuration_data"]["available_locales"], | ||
| homepage: url_helpers.gobierto_data_root_url(host: site.domain), | ||
| license_url: "https://opendatacommons.org/licenses/odbl/", |
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.
Alvaro said no license, right? Is it mandatory?
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.
I'm not sure about if DCAT has mandatory xml elements, from now I think that:
- DCAT don't define xml element required, recommended, optional.
- DCAT-AP define some xml element as required, reccomended or optionals (but not 100% sure)
So as alvaro said I'll remove license at catalog level 👍
3a2f1e8 to
23aa029
Compare
|
|
||
| def test_structure_catalog_building_do_not_show_draft_datasets | ||
| catalog = @subject.build_catalog | ||
| datasets_published = GobiertoData::Dataset.by_site(@site.id).visibles.size |
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.
current_site.datasets?
4b8e4ce to
a452f6d
Compare
a452f6d to
55d3919
Compare
|
@stbnrivas could you fix the conflicts? |
Closes #2671
✌️ What does this PR do?
add endpoint
/api/v1/data/datasets/catalog.xmlwhich show an rdf/xml (catalog in dcat format)🔍 How should this be manually tested?
check configuration was loaded in selected site:
backoffice > customize siteFOR DCAT
FOR DCAT-AP