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

Refactor stories#sort to be simpler and avoid throwing ActiveRecord::ReadOnlyRecord #900

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

botandrose
Copy link

@botandrose botandrose commented Apr 6, 2024

When stories in the Current column are reordered, the column can contain accepted stories, which are marked as readonly. Trying to save those results in a ActiveRecord::ReadOnlyRecord, even though the position column isn't being changed, so just ignore them.

@botandrose botandrose force-pushed the fix-activerecord-readonly-error branch from 34d847d to c9e0a11 Compare April 7, 2024 00:13
@botandrose botandrose force-pushed the fix-activerecord-readonly-error branch from c9e0a11 to c3aafa8 Compare April 7, 2024 00:28
@botandrose botandrose changed the title Refactor stories#sort to be simpler and avoid throwing ActiveRecord::ReadOnly Refactor stories#sort to be simpler and avoid throwing ActiveRecord::ReadOnlyRecord Apr 7, 2024
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 this pull request may close these issues.

None yet

2 participants