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

F/1774 add sandbox capabilities #6

Merged
merged 3 commits into from
Oct 1, 2021

Conversation

sonofflynn89
Copy link
Collaborator

Part of https://devtopia.esri.com/dc/hub/issues/1774

Adds dcatConfig and id query params.

  • ?dcatConfig="{\"customProperty\":\"custom value\"}"
  • ?id= 1c36f0f21ba34a7aa1f5d48f7313cf6b_0

dcatConfig is ignored if it is malformed JSON.
if id is invalid or refers to a private item, the feed will return empty.

@sonofflynn89 sonofflynn89 force-pushed the f/1774-add-sandbox-capabilities branch from 331b9c3 to e2023d3 Compare October 1, 2021 17:48
Copy link
Contributor

@drewdaemon drewdaemon left a comment

Choose a reason for hiding this comment

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

Approved with a suggestion

src/index.ts Outdated
Comment on lines 87 to 94
private extractDatasetSearchRequest(req): IContentSearchRequest {
let searchRequest: IContentSearchRequest = null;
const id = _.get(req, 'query.id');
if (id) {
searchRequest = this.getDatasetSearchRequest(id, portalUrl, []);
}
return searchRequest;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that passing an ID instead of the request object makes sense here and reduces coupling between this function and the express framework.

@sonofflynn89 sonofflynn89 merged commit 87e6aa7 into main Oct 1, 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