1530 enable mutiple types for the same location and assignment of multiple locations of one type#1548
Conversation
DavidKerkmann
left a comment
There was a problem hiding this comment.
Thanks, I don't have much to criticize.
One could think about adding a few teacher to the minimal example such that location_type and activity_type are different. There should be a small test that covers this possibility in any case.
| } | ||
|
|
||
| void Person::set_location(LocationType type, LocationId id, int model_id) | ||
| void Person::set_location(ActivityType type, LocationType location_type, LocationId id, int model_id) |
There was a problem hiding this comment.
I'd stay consistent and always call it activity_type (check also other functions).
| void Person::set_location(ActivityType type, LocationType location_type, LocationId id, int model_id) | |
| void Person::set_location(ActivityType activity_type, LocationType location_type, LocationId id, int model_id) |
| m_location = id; | ||
| m_location_type = type; | ||
| m_location_type = location_type; | ||
| m_activity_type = type; |
There was a problem hiding this comment.
| m_activity_type = type; | |
| m_activity_type = activity_type; |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1548 +/- ##
==========================================
- Coverage 97.48% 97.47% -0.02%
==========================================
Files 190 190
Lines 16030 16040 +10
==========================================
+ Hits 15627 15635 +8
- Misses 403 405 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Benchmarks: Main: Branch: |
Changes and Information
Please briefly list the changes (main added features, changed items, or corrected bugs) made:
If need be, add additional information and what the reviewer should look out for in particular:
Merge Request - Guideline Checklist
Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.
Checks by code author
Checks by code reviewer(s)
closes #1530