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

Fix has_line #31

Open
nmondollot opened this issue Mar 1, 2024 · 0 comments
Open

Fix has_line #31

nmondollot opened this issue Mar 1, 2024 · 0 comments

Comments

@nmondollot
Copy link
Member

nmondollot commented Mar 1, 2024

Some problems have has_line=false although they do have a line

How to repro in rails console:

ids=[]
Problem.find_each{|p| ids << p.id if p.has_line != p.lines.published.with_coordinates.any?  }
ids

Possible solution: execute these callbacks in the same transaction

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