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

Database transcactions #169

Open
cole-adams opened this issue May 6, 2024 · 0 comments
Open

Database transcactions #169

cole-adams opened this issue May 6, 2024 · 0 comments

Comments

@cole-adams
Copy link
Member

There has been a couple weird behaviours pop up where the list service attempts to insert a work that doesn't exist. I suspect this is due to a race condition where the work is getting deleted in between the service fetching the id and inserting into the work_list_item table.

To properly fix this, we should adjust our repository architecture to support database transactions. As an interim solution, on the frontend we will avoid removing from and adding to a different list at the same time.

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

1 participant