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

Specify "Collection" when searching for multilayer KML or CSV exports #426

Merged
merged 5 commits into from
Nov 18, 2020

Conversation

rgwozdz
Copy link
Contributor

@rgwozdz rgwozdz commented Nov 13, 2020

If an item has multiple layers, and a KML or CSV item is requested, the /export endpoint actually tags the new export item as CSV Collection and KML Collection. As a result, we need to search for that type (rather than KML or CSV) when checking if such an export is already cached.

Further, for multi-layer exports, we need fetch the last-edit-date of each layer and see if any are more recent then the timestamp of the cached multilayer export.

I moved the rest-js dependencies in hub-downloads to peers, but had to update the versions to leverage recent rest-js changes.

Also, there are some changes due to auto-linting that didn't occur earlier.

packages/downloads/package.json Outdated Show resolved Hide resolved
packages/downloads/package.json Outdated Show resolved Hide resolved
Comment on lines +11 to +14
enum ItemTypes {
FeatureService = "Feature Service",
MapService = "Map Service"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

These could probably just be constants. An enum here might be overkill.

@rgwozdz rgwozdz force-pushed the p/downloads-collection-search branch from d5da2dc to a3a57df Compare November 18, 2020 15:04
@rgwozdz rgwozdz merged commit 6a247ff into master Nov 18, 2020
@rgwozdz rgwozdz deleted the p/downloads-collection-search branch November 18, 2020 15:53
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.

3 participants