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

Update by System ID #19

Open
nilshoerrmann opened this issue Aug 5, 2013 · 6 comments
Open

Update by System ID #19

nilshoerrmann opened this issue Aug 5, 2013 · 6 comments

Comments

@nilshoerrmann
Copy link
Contributor

As already described in #18, we'd like to update entries using an external data source. This source features existing system ids but there is no simple way to update entries based on their system id.

While it's logical that you don't import system ids when creating new entries (they are of course created by the system on save), it makes sense to match entries by system id when updating existing entries.

@brendo brendo mentioned this issue Dec 17, 2014
10 tasks
@jonmifsud
Copy link

@nilshoerrmann planning on working on this / something similar next week. When you say update by System ID, are you passing the Symphony System ID or an arbitrary ID from another system which is stored in symphony?

@nilshoerrmann
Copy link
Contributor Author

The Symphony system id. Using another id is already possible as it will be stored in a field as any other import value and can be used to determine entry identity.

@jonmifsud
Copy link

Ah right, will try to figure this out next week. Ideally I want to see if it's possible to create an import which pre-sets the entry ID, so I'm sure if I figure that out the update should be relatively straight forward.

@jonmifsud
Copy link

@nilshoerrmann & @brendo currently working on this - I think I should have a PR by end of day tomorrow for testing.

Just to confirm some minor things. To each section field chooser I'm adding a new "Entry ID" Element, the user has to make sure this is an integer (otherwise no other constraints) as long as I use $entry->set('id') symphony does not seem to care that there was no entry with the same ID and will create it. Which is what I'm after, but I'm not sure if there should be a checkbox of some sort to confirm that users would really like to 'create' new entries when the ID is not found.

Other than that will be conducting some further testing to ensure that updates also work properly.

@jonmifsud
Copy link

@nilshoerrmann if you have some time can you check if #40 would work for you? Or do you require additional options?

@nilshoerrmann
Copy link
Contributor Author

Cool. I'll have a look soon.

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