Closed bodom0015 closed 4 years ago
@craig-willis thanks for taking a look at this.. I will address the first two shortly:
{{#link-to}}
helper in the problem cases, and apparently it isn't smart enough to close the modal for us... yet another case where we have to write boilerplate logic because Ember does not provide a working or sane patternThe last one is open for discussion:
fullName
would be nice, the GET /repository
endpoint only returns a string of the hostname as you mentioned - this actively prevented me from using Ember-Data, as apparently simple strings can't be used as a real model.fullName
of one account provider (e.g. DataONE) can correspond with multiple repositories (e.g. dev.nceas
vs ADC) - I believe that this was the motivation for logically separating GET /account/:provider/targets
and GET /repository
.dev.nceas
came from configuring a DataONE account.GET /repository
don't all follow the same pattern (some contain protocols, some do not, etc).Thanks @bodom0015. I'll open a separate issue on girder_wholetale for discussion on that third point and we'll see what xarthisius thinks.
That fixed it for me. Thanks @bodom0015
Problem
The current dashboard can only publish to DataONE, with lots of hard-coded implementation details that are specific to the DataONE case.
Fixes #570 Fixes #571
Approach
Refactor the Publish Modal to use the new GET
/repository
endpoint to offer the user a choice of repositories, and refactor some things that were DataONE-specific to be more generalized.Also fixed the erroneous
padding: 0
style that has plagued all modals for over a year.How to Test
NOTE: DataONE auth will likely not work correctly without the changes in #575. Once #575 has been merged, I can update this test case to include the steps for testing DataONE as well. For now, feel free to just test the Zenodo side of things.
Demonstration: https://recordit.co/KeBCMm1cdK
Prerequisite: Disconnect ALL external accounts using the Settings view.
Publish Tale...
sandbox.zenodo.org
Publish Tale...
once againsandbox.zenodo.org
from the dropdown and click "Publish"