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

Edit Datasets for a given Place #78

Open
modulitos opened this issue May 26, 2017 · 1 comment
Open

Edit Datasets for a given Place #78

modulitos opened this issue May 26, 2017 · 1 comment

Comments

@modulitos
Copy link
Member

modulitos commented May 26, 2017

Note that this will require moving all submissions that are under that Place (ie Comments, Supports, etc) to a new Dataset as well, if needed. Ideally, we'd have a batch operation for this.

Also, it may change the url of the place too. How should we deal with that? For example, if we have a Place under heyduwamish.org/reports/123 and move that place to a DuwamishFeatured dataset, our client would route it under heyduwamish.org/123 or heyduwamish.org/featured/123. This will break existing links. So how should we handle this?

@goldpbear
Copy link
Contributor

One way we can get around changing links is to take advantage of the "landmark-style" url-title field. If the client loads a model with this field present, it will ignore the underlying slug/id url and use the value of url-title as the url instead.

But it's true that if a url-title field isn't present, changing datasets will probably break existing links.

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

No branches or pull requests

2 participants