fix service invite flow and skip tests for now #1462
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.
Description
The service invite was working locally and failing on staging.
The reason was determined to be that the service invite workflow was trying to write to redis in the back end, and then read from redis on the front end, assuming that the redis instance was shared. The redis instance actually is shared in local development. But it is not shared on staging.
So the solution is to write an API that returns the value in redis containing all the service invite information. This ultimately resulted in the following work being necessary:
NOTA BENE:
There is also some weirdness here. See the service_api_client.py. For some reason the method belonging to ServiceAPIClient could not called directly from verify.py (pycharm said the method didn't belong to the class), so I had to make the wrapper method retrieve_service_invite_data at the bottom of that file.
Security Considerations
N/A