1530 enable mutiple types for the same location and assignment of multiple locations of one type#1548
Open
jubicker wants to merge 5 commits into
Conversation
Open
2 tasks
Member
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) |
Member
There was a problem hiding this comment.
I'd stay consistent and always call it activity_type (check also other functions).
Suggested change
| 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; |
Member
There was a problem hiding this comment.
Suggested change
| m_activity_type = type; | |
| m_activity_type = activity_type; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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