Skip to content

[78923] Fix saveRequestBody() for Model class#309

Merged
mrashed-dev merged 5 commits into
mainfrom
mostafarashed/sc-78923/fix-logic-with-saving-request-body-for-model
Jan 19, 2022
Merged

[78923] Fix saveRequestBody() for Model class#309
mrashed-dev merged 5 commits into
mainfrom
mostafarashed/sc-78923/fix-logic-with-saving-request-body-for-model

Conversation

@mrashed-dev
Copy link
Copy Markdown
Contributor

Description

saveRequestBody() was introduced prior to the v6.0 release to enforce read-only attributes not being serialized for outgoing API calls. With the introduction of the Model superclass in v6.0 a lot of objects got refactored from extending RestfulModel to Model, but saveRequestBody() remained on RestfulModel. This broke the serialization of Model properties. To resolve this, we moved saveRequestBody() to the Model superclass.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #78923: Fix logic with saving request body for Model types.

@mrashed-dev mrashed-dev requested review from a team, arjunkalburgi and ozsivanov and removed request for a team January 19, 2022 20:11
@mrashed-dev mrashed-dev merged commit 0f6a209 into main Jan 19, 2022
@mrashed-dev mrashed-dev deleted the mostafarashed/sc-78923/fix-logic-with-saving-request-body-for-model branch January 19, 2022 20:39
@mrashed-dev mrashed-dev mentioned this pull request Jan 28, 2022
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.

2 participants