Remove support for returnMeta query param #335
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
returnMeta
query param was introduced in order to handle a response format update from the server. There was a time that we would return the data from the resources without making any change. WhenreturnMeta
was introduced, we started formatting the response as following:returnMeta
was then added to prevent outdated clients to break because of the new format. Years have passed and all browsers should have a fresh copy of fetchr by now. Therefore, we can remove the support for it as requested in the TODO comments (ex.fetchr/libs/fetcher.client.js
Line 272 in 241a71c
One caveat though: when the new format was added, we forgot to update the POST error responses. This PR also addresses this issue.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.