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

Make moveItem's folder parameter optional #306

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Conversation

MikeTschudi
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Sep 5, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 682593a on mkt-moveItem-to-root into 984f76b on master.

@@ -27,7 +27,7 @@ export interface IItemMoveRequestOptions extends IItemCrudRequestOptions {
* Alphanumeric id of folder to house moved item. If null, empty, or "/", the destination is the
* root folder.
*/
folder: string;
folder?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

my preference would be to use folderId consistently instead of folder.

see #236

Copy link
Member Author

Choose a reason for hiding this comment

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

@jgravois, I agree, but then it would be different than the corresponding parameter in the REST call (https://developers.arcgis.com/rest/users-groups-and-items/move-item.htm); is that OK?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes. I think the REST parameter name is a footgun.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, we're even less clear about our guidelines (or lack thereof) on trying to stick to the shape (names, etc) of the REST API, except in those cases where it doesn't make sense. Some ambiguous balance of replicating an API that people are already familiar with and building the API we would want to use.

@MikeTschudi MikeTschudi merged commit da410d3 into master Sep 6, 2018
@MikeTschudi MikeTschudi deleted the mkt-moveItem-to-root branch September 6, 2018 17:03
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.

4 participants