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

Fixes check when creating links table #586

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

r-akemii
Copy link
Collaborator

@r-akemii r-akemii commented Nov 7, 2024

In this PR we modify the direction check when creating "links" table.

Previously, checking the length raised a sqlite3.IntegrityError when updating/creating a link with direction -1.

We also add a test to check if the conditions are met and errors are raised when setting the direction values equal to -2, -1, 0, 1, 2.

@r-akemii r-akemii marked this pull request as ready for review November 7, 2024 12:46
@r-akemii r-akemii requested a review from pedrocamargo November 7, 2024 12:46
Copy link
Contributor

@jamiecook jamiecook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and tested too - lgtm

@jamiecook jamiecook merged commit 68b0119 into develop Nov 8, 2024
16 checks passed
@jamiecook jamiecook deleted the renata/fixes-check-when-creating-links-table branch November 8, 2024 02:08
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.

2 participants