-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Object ID validation - Custom Fields #319
Conversation
Removed gon. Hardcoded URL for to check if tests will pass. |
Invoice Items search added. To do:
|
Next: Try to fill form and get flash error
will add more tests later today |
Test done. Ready for review and merge if all good. thanks |
Last commit address fallowing issue: |
rescue StandardError | ||
ensure | ||
if !test_uuid.blank? | ||
msg = { status: '200', message: I18n.translate('custom_field_uuid_exist_in_invoice_item_db') } |
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.
Few thoughts:
- I don't think we should display anything if the object (e.g. invoice item) exists, just a warning if it doesn't
- If the target object for the custom field doesn't exist, we should prevent the user from being able to save it
- Can we send the object type to the back-end? That way, we don't have to try all endpoints (invoice item, bundle, etc.). That might take a while 😅
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.
Yes, good points. Got it.
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.
- Done.
- Pending.
- Done. Way better.
There will be some improvements.
11b43ff
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.
- Done
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.
- Was already done but response was from KillBill API without I18N and raw data.
To do:
|
todo: tests
Fixed tests To do test and review before re-PR |
#317