You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Respondent Home currently implements a function to generate the required response_id, which is defined as:
defbuild_response_id(case_id, collex_id, iac):
""" Builds a response_id from a case ID, a collection exercise ID, and an IAC :param case_id: a case UUID :param collex_id: a collection exercise UUID :param iac: an IAC :return: a base-64 encoded sha-256 hash of case_id|collex_id|iac """hash_string=f'{case_id}|{collex_id}|{iac}'m=hashlib.sha256()
m.update(hash_string.encode('utf-8'))
logger.debug("Hash created", digest=m.hexdigest(), case_id=case_id, collex_id=collex_id)
returnbase64.urlsafe_b64encode(m.digest()).decode()
NB: this implementation imports and makes use of the stdlibs hashlib and base64.
The text was updated successfully, but these errors were encountered:
The eQ schema has changed to require a
response_id
field. The current payload - when launching a survey from Frontstage - is missing that key.Respondent Home currently implements a function to generate the required
response_id
, which is defined as:NB: this implementation imports and makes use of the stdlibs
hashlib
andbase64
.The text was updated successfully, but these errors were encountered: