-
Notifications
You must be signed in to change notification settings - Fork 63
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
Allow to update a published map #1451
Comments
Right now, we have a
You can see them in action (you can see how the update does not change the So, going to the problem, if I understand it well, the point is:
|
Yeap, the idea is that publish can update an existing publication |
Ok, so the solution could be the following one. In any case:
cartodb
Option 1:Check from CARTOframes if already exists a Kuviz with that name: carto-python:
CARTOframes:
cartodb
Option 2:Do it in backend CARTOframes:
cartodb
The second one seems easier (not better) |
We are going to go with the option 2 (we already have duplicated, several duplicated). Another important thing or pain: a user has several kuviz with the same name and tries to update one of them without changing the name. In this case, we have 2 options:
My vote is for In any case, if the user updates the name to an existing one, it will fail. |
Since we are not going to change data from clients, the option of adding a unique index (partial index: when type is Kuviz) is not feasible. We could add it taking into account the date (the partial index would be type = 'kuviz' and created_at > '2020-01-10'::timestamp), but in any case, we should still check for duplicates by code and thinking about it as an array of possible values. So, my idea is to ensure Another interesting point: if a user has several kuviz with the name
My vote is for the |
👍 We should clean them because the user has said to replace them explicitly. |
Validating it in the acceptance, we have a change :( When we said: Being more user-faced:
The second publish should reuse the same kuviz as the first run. |
As a user I want to update a published map so I don't generate a new one every time I call publish.
One approach that can work, after discussing with a data scientist, would be to use the same API we have for datasets.
map.publish('map_name', if_exists='replace', password=None)
Thoughts @andy-esch, @oleurud?
The text was updated successfully, but these errors were encountered: