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

Copy Storymaps #60

Closed
mgayheart opened this issue Jul 17, 2014 · 12 comments
Closed

Copy Storymaps #60

mgayheart opened this issue Jul 17, 2014 · 12 comments

Comments

@mgayheart
Copy link

Copying story maps between organizations causes the new storymap to be unusable. A workflow we are trying to support is prototyping a story map by multiple staff in the private AGOL and when they are finished, publish under an "official user" in the public AGOL.

@glazou
Copy link

glazou commented Dec 12, 2014

Hi, you may be interested by these thread on GeoNet https://geonet.esri.com/message/444203#444203

@ecaldwell It would be great if the assistant could automatize the updating of the item URL

@ecaldwell
Copy link
Contributor

I actually have an update that supports enterprise logins almost ready to go. Hoping to push out the updates before the new year.

Thanks for pointing me at that thread @glazou. It's great to have some additional context for how people are using the app.

@glazou
Copy link

glazou commented Dec 15, 2014

No problem, great tool!
Thanks

@ecaldwell
Copy link
Contributor

There's now a workflow available (added with #64), albeit untested. You can copy the story map application, then edit the json of the new item to resolve any issues. Please post your feedback if you are able to try.

@glazou
Copy link

glazou commented Jan 23, 2015

Thanks @ecaldwell

OAuth and editing the JSON is something that is going to be really useful for us.

I'm a bit afraid of documenting how user could use the 'edit JSON' feature to fix their item URL after copying them because all the risk of data corruption so I think I will stick to my procedure where user copy the item with your tool and then edit the item URL in ArcGIS Online.

Would be great if you could consider updating the item URL property when you copy it. That's something I'm desperately looking for. Hope this helps.

@ecaldwell
Copy link
Contributor

Ah, thanks for reminding me this was about more than just enterprise logins.

They could use the action "update content URL" to do it from within the app, but they'd have to inspect the item first to get the new id from the JSON...not a simple workflow for every user.

I see two use cases when copying hosted applications:

  1. You just want to copy a reference to the original item into your org/portal, but the link still launches the original.
  2. You want to duplicate the original item, but then modify it to work with your own content (this is the use case the OP described).

In the second scenario, I agree automatically updating the appid parameter to the new item id would be helpful. Do you think it would cover all bases if the application simply looked for an appid parameter in the registered URL and, if it found one, automatically updated it to the new item id? I'm trying to think of any workflows or use cases where this might cause unexpected behavior.

@ecaldwell ecaldwell reopened this Jan 24, 2015
@glazou
Copy link

glazou commented Jan 26, 2015

I personally never needed the first scenario with hosted applications. I can see the first scenario useful for items that references app hosted elsewhere but not for hosted. I have seen couple of users being very confused about the edits that they make to the copied app being applied to the original app.

I think the following simple check is enough: if the original item id was also used in the item URL, then replace the original id with the new id in the copied item URL.

Thanks a lot!

@ecaldwell
Copy link
Contributor

Sounds good. I'll give that a shot.

@ecaldwell
Copy link
Contributor

@glazou I pushed an update to the staging site that automatically updates the appid parameter in the url. Can you test it out?

I'm seeing some funny behavior when copying publicly shared items from another ArcGIS Online org into your org. The appid parameter is updated and the rest of the URL reflects the original org (when viewing the JSON). However, when going to the item details page, the app url has been changed to reflect the destination org. I can't figure out if that's good or bad.

@glazou
Copy link

glazou commented Mar 23, 2015

Thanks, the url update seems to works well.

I can also repro the item page behavior. I noticed that when editing the item, it display the original org id. This can be confusing as when you save the changes, the item page will then use the original org id. If you reload you will see the new one.

I think that if you copy to a different org, you should also update the org in the URL.
If you copy to a public account, you should use www.arcgis.com

@glazou
Copy link

glazou commented Mar 23, 2015

I noticed that after you edit the web app item the configure button goes missing.
This is not an issue in AGOL assistant, it will get fixed with next ArcGIS Online release.

@ecaldwell
Copy link
Contributor

OK thanks for confirming those behaviors @glazou. Updating the org url makes sense to me too. I'll let you know when I've had a chance to incorporate that so we can test a bit more.

@ecaldwell ecaldwell added the bug label May 12, 2015
ecaldwell added a commit to ecaldwell/ago-assistant that referenced this issue Nov 24, 2015
Important step to ensure hosted apps continue to be editable in the
destination. Fixes Esri#60 and Esri#91.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants