-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add db parameter to split_by_square after recent changes to fmtm-splitter #2020
Conversation
src/backend/tests/conftest.py
Outdated
@@ -230,6 +230,7 @@ async def task_event(db, project, tasks, admin_user): | |||
new_event = TaskEventIn( | |||
task_id=task.id, | |||
user_id=user.id, | |||
username=user.username, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this isn't calculated in the SQL, using the user id?
If you insert both the user id and username, then it opens the potential for inconsistency: inserting a username that does not match the user id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah you are right , I got what you meant to say. I was trying to solve the test case failure issue, but it seems to have github action issue?
What type of PR is this? (check all applicable)
Related Issue
Describe this PR
After a recent upgrade of split by square in the fmtm-splitter, it now requires an extra db parameter as a unicode string of db url, which fixes the mentioned issue.
Screenshots
N/A
Checklist before requesting a review
[optional] What gif best describes this PR or how it makes you feel?