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

Add label to display resources #106

Merged
merged 67 commits into from
Oct 5, 2018
Merged

Conversation

davidcaron
Copy link
Contributor

Depends on PR #104.
Fixes #98.

@fmigneault, I would need some guidance in swagger to add the optional resources_display_name argument to the POST request at path /resources.

This is the base for a cron service to be ran periodically.
The local and remote resource tables are compared when the
view is requested.
instead of a 'resource_id'
To distinguish permission requests and 'clean_resource' requests
In a thredds catalog, the name of the resource can be capitalized
and not its id. But in other cases, both the name and its id are
capitalized. We make sure to get the actual id to match the case of
the url.
Too much information was getting pushed to the ui (remote path, remote
resource type path)
This made it very complicated to implement custom display names
for resources, because they would have got to be pushed to the UI also.
Running the migrations from scratch was broken because of the new
resource_display_name column. In previous searches like:
'SELECT * FROM resources', resource_display_name was included, but
wasn't yet added to the database.
@davidcaron davidcaron changed the title [WPI] Add label to display resources [WIP] Add label to display resources Sep 25, 2018
@fmigneault
Copy link
Collaborator

is resources_display_name a querystring or part of the json body?

@davidcaron davidcaron changed the title [WIP] Add label to display resources Add label to display resources Sep 28, 2018
@davidcaron
Copy link
Contributor Author

davidcaron commented Sep 28, 2018

@fmigneault I think I figured it out in c1685e1 how to modify swagger.

This is all functional now, as far as I know. Maybe we should wait for #104 before reviewing this.

@fmigneault
Copy link
Collaborator

will wait on PR#104 to be merged, then rebase on top, so that there's less lines to go back through

@davidcaron davidcaron mentioned this pull request Oct 3, 2018
@fmigneault fmigneault merged commit da15173 into master Oct 5, 2018
fmigneault added a commit that referenced this pull request Oct 5, 2018
@fmigneault fmigneault deleted the add-label-to-display-resources branch December 6, 2018 22:32
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.

2 participants