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

[Bug] Editing an object and changing the id field results in a new item being created #25

Closed
GitBytes opened this issue Aug 28, 2019 · 0 comments · Fixed by #31
Closed

Comments

@GitBytes
Copy link
Contributor

GitBytes commented Aug 28, 2019

Pacifica Metadata Management version

v0.2.0

Platform Details

Google Chrome 76.0.3809.100 (Official Build) (64-bit)

Scenario:

Trying to correct a mistyped id in the instruments table but this also occurs on other tables like users for example.

Steps to Reproduce:

Create a new entry, save new entry, open entry just created, alter id, save, validate old id no longer exists but the new one does.

Expected Result:

It should alter the id and replace the old entry with the new entry.

Actual Result:

A new item is created, old item is left in place unchanged.

Granted this may have some additional implications to cascading changes if the entry was created in the past and is now being edited with other relationships in place. It is also possible based on this comment it may be working as intended and just needs to be a documented behavior. I am up for some discussion here. Thanks,

dmlb2000 added a commit to dmlb2000/pacifica-metadata-mgmt that referenced this issue Sep 23, 2019
Updating a single object wasn't detecting the title right. It
would be better to get this as a component property at some
point.

Signed-off-by: David Brown <dmlb2000@gmail.com>
dmlb2000 added a commit that referenced this issue Sep 23, 2019
Updating a single object wasn't detecting the title right. It
would be better to get this as a component property at some
point.

Signed-off-by: David Brown <dmlb2000@gmail.com>
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

Successfully merging a pull request may close this issue.

1 participant