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

Fix version being required on create for rides #55

Merged

Conversation

rmehner
Copy link
Collaborator

@rmehner rmehner commented Jan 6, 2022

This was accidentally introduced in #54 and prevented us from creating
rides, since they don't have a version then as they are just about to be
created.

In the long run, we might wanna sort those attributes alphabetically, so that these kind of double definitions are easier to spot.

@rmehner rmehner requested a review from eikes January 6, 2022 13:44
This was accidentally introduced in #54 and prevented us from creating
rides, since they don't have a version then as they are just about to be
created.
@rmehner rmehner force-pushed the fix-ride-version-being-wrongly-required-on-ride-creation branch from fb1810a to 3370323 Compare January 6, 2022 13:45
@eikes
Copy link
Collaborator

eikes commented Jan 6, 2022

What does the version field represent?

@rmehner
Copy link
Collaborator Author

rmehner commented Jan 6, 2022

The current version of the ride. It will be increased if any of the attributes change. This is important for conflict detection as every update needs to provide the version it tries to update or else it will fail.

Also note that version had been defined already a couple of lines down and was accidentally defined again there, but with create scope added.

Copy link
Collaborator

@eikes eikes 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!

@rmehner rmehner merged commit 0e177e7 into master Jan 6, 2022
@rmehner rmehner deleted the fix-ride-version-being-wrongly-required-on-ride-creation branch January 6, 2022 21:27
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.

None yet

2 participants