Skip to content

Add supported-extensions support #6

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

Merged
merged 1 commit into from
Aug 12, 2021
Merged

Conversation

drewdaemon
Copy link
Contributor

I didn't think supportedExtensions was returned by our API, but I was wrong!

See https://github.com/ArcGIS/hub-indexer/blob/34ad929b1a09e20c8199e7cd964d007d25d3595c/packages/api/schema.json#L865-L874

Copy link
Collaborator

@sonofflynn89 sonofflynn89 left a comment

Choose a reason for hiding this comment

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

Good work!

@@ -84,7 +84,7 @@ export class DcatDataset {

get isFeatureLayer (): boolean { return /_/.test(this.id); }
get hasGeometryType (): boolean { return !!this._get('geometryType'); }
private get _supportedExtensions () { return _.get(this._dto, 'server.supportedExtensions'); }
private get _supportedExtensions () { return _.get(this._dto, 'supportedExtensions'); }
Copy link
Collaborator

Choose a reason for hiding this comment

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

lol this._dto 😂 I'm loving these names!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@drewdaemon drewdaemon merged commit 76a0239 into main Aug 12, 2021
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