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

location: adapt JSON schema for pickup_name required if is_pickup #842

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

zannkukai
Copy link
Contributor

Before this change, the location JSON schema accept that the location was a
pickup location (is_pickup=true) but without pickup_name. This fix change this
behavior ; when a location is defined as pickup location, then the 'pickup_name'
is now required.

Note : the schema already contains behavior for the formly editor

Co-Authored-by: Renaud Michotte [email protected]

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@zannkukai zannkukai added the WIP label Mar 11, 2020
@zannkukai zannkukai self-assigned this Mar 11, 2020
@zannkukai zannkukai force-pushed the fix-location-schema branch 2 times, most recently from 6552d3b to 1c11f0a Compare March 13, 2020 12:18
@zannkukai zannkukai removed the WIP label Mar 13, 2020
@zannkukai zannkukai force-pushed the fix-location-schema branch from 1c11f0a to 6e9de30 Compare March 13, 2020 13:14
Copy link

@BadrAly BadrAly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a test for this already? if not, please create one :-)

@iGormilhit iGormilhit self-requested a review March 16, 2020 15:24
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a cooooool commit message! I HAD to approve it!

@zannkukai zannkukai force-pushed the fix-location-schema branch 2 times, most recently from 8826c65 to 27d65bf Compare March 18, 2020 09:42
@zannkukai zannkukai requested a review from BadrAly March 18, 2020 09:42
Before this change, the location JSON schema accept that the location was a
pickup location (is_pickup=true) but without pickup_name. This fix change this
behavior ; when a location is defined as pickup location, then the 'pickup_name'
is now required.

Note : the schema already contains behavior for the formly editor

* Closes rero#794.

Co-Authored-by: Renaud Michotte <[email protected]>
@zannkukai zannkukai force-pushed the fix-location-schema branch from 27d65bf to e69162b Compare March 18, 2020 10:56
@zannkukai zannkukai merged commit 2577581 into rero:dev Mar 18, 2020
@zannkukai zannkukai deleted the fix-location-schema branch March 19, 2020 09:46
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.

5 participants