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

api: add 'file_id' into 'dumps()' method #81

Merged
merged 1 commit into from
May 22, 2019

Conversation

okraskaj
Copy link
Member

* Closes inveniosoftware#68

Signed-off-by: Jan Okraska <jan.okraska@cern.ch>
@okraskaj okraskaj self-assigned this May 21, 2019
@egabancho
Copy link
Member

Do you think we should add a link to the file itself by default too?
I always find myself either building the link on the interface or extending the dumps.

Don't have a string opinion about it though.

@Glignos
Copy link
Member

Glignos commented May 21, 2019

@ntarocco
Copy link

Do you think we should add a link to the file itself by default too?
I always find myself either building the link on the interface or extending the dumps.

Don't have a string opinion about it though.

I think it is a good idea, but I guess it should be added by the REST layer, not the api, no?

@ntarocco
Copy link

@Glignos @okraskaj
The issue is that it is also affecting Invenio-Deposit, it is a dependency of it.
https://github.com/inveniosoftware/invenio-deposit/blob/master/invenio_deposit/api.py#L280

In both Zenodo and CDS Videos we call super, so internally we need to ensure that nothing breaks in deposit.

In CDS Videos, we completely override everything:
https://github.com/CERNDocumentServer/cds-videos/blob/cdslabs/cds/modules/records/api.py#L122

I guess the safest thing is to test it on the instance, I will try to find some time tomorrow.

@ntarocco
Copy link

ntarocco commented May 22, 2019

We have tested deposit/records-files in CDS Videos and everything works fine.

@ntarocco ntarocco merged commit 989753b into inveniosoftware:master May 22, 2019
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.

api: add file_id into jsonschema
4 participants