-
Notifications
You must be signed in to change notification settings - Fork 244
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
Safty-data api involved #2760
Safty-data api involved #2760
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #2760 +/- ##
==========================================
+ Coverage 52.57% 54.06% +1.49%
==========================================
Files 122 125 +3
Lines 10232 10586 +354
==========================================
+ Hits 5379 5723 +344
- Misses 4853 4863 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
@ziv17 all in all looks good. Well done!
I added a few comments.
In addition:
-
I suggest using AccidentMarker instead of AccidentMarkerView. I assume that we won't have road_segment number for this table, but I suggest we'll handle this in a later PR, and for now I suggest keeping a placeholder for road_segment.
Let me know if there are other challenges from using AccidentMarker instead of AccidentMarkerView. -
Do we keep data consistency for DB for these tables?
(We had a similar discussion here)
I think that in the case abovewith db.get_engine().begin() as conn:
kept data consistency.
I believe it can also be done with using db.session.commit() only after finishing deletions insertions. -
For better practice, I suggest you consider adding relationships for dimension tables. However I suggest adding it in a future pr, when we decide to handle the issue across our db, and not in this issue. I opened an issue for it here
@ziv17 all in all looks good. Added a few comments, we can also discuss in tomorrow's meeting |
91740a7
to
2a3c4fe
Compare
Load sd data chuncked.
2a3c4fe
to
ec2e884
Compare
Hi, I added |
… vcli filters in /involved/broupby
@ziv17 I added relevant comments in this pr: #2768 I suggest that:
After 1 and 2 we'll merge all prs. |
This PR is superseded by #2768 |
WIP, /involved api implementing Atalya's comment from 9-Jan on issue 2734.
Added load of safety_data involved and accident tables to the
main.py process cbs
command line.No fine detail testing yet. Just to verify the query parameter and returned data.
You can view the API in swagger hub