-
Notifications
You must be signed in to change notification settings - Fork 26
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
[#4397] Add query parameter to pass reference to existing object in the Objects API #4521
[#4397] Add query parameter to pass reference to existing object in the Objects API #4521
Conversation
399c345
to
43451be
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4521 +/- ##
=======================================
Coverage 96.57% 96.57%
=======================================
Files 719 719
Lines 24065 24077 +12
Branches 2860 2862 +2
=======================================
+ Hits 23241 23253 +12
Misses 560 560
Partials 264 264 ☔ View full report in Codecov by Sentry. |
52f5cad
to
0720c04
Compare
0720c04
to
cfe3771
Compare
df4b7a3
to
600aae2
Compare
600aae2
to
32ad9fb
Compare
This is done in order to save the initial data reference which comes from the frontend as a query parameter. It will be used to retreive additional information for the object from the Objects API (we are going to support only this for now)
32ad9fb
to
c83cfb8
Compare
self.assertEqual( | ||
submission.initial_data_reference, body["initialDataReference"] | ||
) |
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.
in tests, please make assertions with the literal values instead of referring to variables in tests, that makes it clear what is being compared to what.
so do this instead:
self.assertEqual(submission.initial_data_reference, "of-or-3452fre3")
Closes #4397
Changes
object_reference
to theSubmission
model in order to save the reference we get from the frontend.This will be used to retrieve further information for the real object
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Commit hygiene