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

Render Dataverse Files, Deleted File metadata [PLAT-578] #8584

Conversation

erinspace
Copy link
Member

Purpose

Just a few little things to address the most recent round of QA.

Changes

dataverse:

  • dataverse files node > target
  • check write permissions directly for editing

deleted file metadata:

  • update addon_deleted_file to take target
  • return only node specific metadata when target is a node

QA Notes

Viewing dataverse files and deleted file metadata should work now!

Documentation

Side Effects

None anticipated

Ticket

https://openscience.atlassian.net/browse/PLAT-578

- update node > target
- put in future note to change other node-specific formatters for deleted file metadata
'allow_comments': file_node.provider in settings.ADDONS_COMMENTABLE,
})
error_msg = ERROR_MESSAGES[error_type].format(**format_params)
if isinstance(target, AbstractNode):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I debated awhile on this one -- just check if the target is node early, or try to tweak the return value based on the type of target. In the end I went with this, with a TODO for the future, because I figured that the file views will most likely be emberized soon.

If however we want this to be a bit more robust at this point I'd also understand!

@sloria sloria merged commit d7df0d4 into CenterForOpenScience:feature/files-on-anything Jul 31, 2018
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.

None yet

2 participants