-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Providing API version header from server to caller when available. #2757
Conversation
|
||
@Override | ||
public String getApiVersion() { | ||
return apiVersion; |
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.
how about return requester.getApiVersion()
?
Also is this API version connect only or will also be added to non connect server calls ?
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.
Ah, excellent suggestion, I'll do that!
Currently both the ConnectId and Connect servers are returning this header. I'm not sure about any plans for HQ to use it.
…ttempting to parse it separately.
Addressed linter errors in several files
@damagatchi Retest this please |
…essor when call completed instead of implementing it as a class and passing 'this'. Lint.
…nto dv/api_versioning
@damagatchi retest this please |
3 similar comments
@damagatchi retest this please |
@damagatchi retest this please |
@damagatchi retest this please |
@damagatchi retest this please Since the core PR is merged without these changes we are now breaking the master build. Our integration tests are failing currently due to Password provisioning, hence I am running without integration tests to be able to merge this. |
Ah, yes, thanks for that. I'd considered skipping the integration tests as well since the failures didn't seem related to these changes, but wasn't sure whether that would be advised. |
Attempts to safely retrieve the x-api-current-version header from API response payloads so calling code can do version checking.
https://dimagi.atlassian.net/browse/CCCT-239
cross-request: dimagi/commcare-core#1409