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

Consider to be able to update existing content #13

Open
dawehner opened this issue Aug 29, 2014 · 5 comments
Open

Consider to be able to update existing content #13

dawehner opened this issue Aug 29, 2014 · 5 comments

Comments

@dawehner
Copy link
Contributor

Did you considered to support updating existing content?

Otherwise at least we should catch whether a specific UUID already exists.
At the moment though you end up with something like:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'd8416a46-1dd2-4348-9c00-c77581037a60' for key 'taxonomy_term_field__uuid__value':    [error]
INSERT INTO {taxonomy_term_data} (vid, uuid, langcode) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
    [:db_insert_placeholder_0] => tags
    [:db_insert_placeholder_1] => d8416a46-1dd2-4348-9c00-c77581037a60
    [:db_insert_placeholder_2] => und
)

which is not optimal, for sure.

@jibran
Copy link
Collaborator

jibran commented Aug 29, 2014

+1 to this idea.

@andypost
Copy link
Collaborator

+1 to throw sane exception.
I'm not sure it makes sense to update content because the module for initial content import

@dawehner
Copy link
Contributor Author

Well, during the development of sites, having some update mechanism would be quite useful, to be honest.

@andypost
Copy link
Collaborator

Agree exactly but suppose this "content ci" should be a part of migrate or entity storage.
@dawehner could you explain/elaborate your vision of usage of update/reimport?

@larowlan
Copy link
Owner

Agree we should catch exception, should be easy to test, install module, uninstall module, reinstall, boom

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

4 participants