Skip to content

Conversation

@morrieinmaas
Copy link
Collaborator

  • takes in an explanation string
  • constructs the explanation reuqest json object
  • uses the created object for the request

* takes in an explanation string
* constructs the explanation reuqest json object
* uses the created object for the request
@morrieinmaas morrieinmaas linked an issue Apr 21, 2021 that may be closed by this pull request
@morrieinmaas morrieinmaas self-assigned this Apr 21, 2021
# Send a problem report for presentation exchange
async def send_problem_report(self, pres_ex_id, request):
async def send_problem_report(self, pres_ex_id, explanation: str):
explanation_request = {"explain_ltxt": explanation}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know that this should be called explanation_request. Maybe just body even would be fine

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked the code and the only other place regarding Problem_report is in issuer.py where there already is an explanation param that builds the body like that.

@wip-abramson
Copy link

This is good, but we need to also fix this for issue-credential I believe.

And maybe some other locations where we cause problem report to occur that I am not aware of.

@morrieinmaas
Copy link
Collaborator Author

This is good, but we need to also fix this for issue-credential I believe.

And maybe some other locations where we cause problem report to occur that I am not aware of.

I'll have a look at that

@morrieinmaas
Copy link
Collaborator Author

Actually, @wip-abramson , not sure what you mean/how this applies for issue-credential. Like I said above there is only two places send_problem_report and problem_report. B oth aren't used anywhere else in the code, there is just the defs aas far as I can see. Possibly I'm being daft here. Any further explanation on this appreciated.😬

@lohanspies
Copy link
Collaborator

@morrieinmaas you can include problem report into credential issuance for example to report back problems with the data. i.e. my name is spelt wrong as an example.

* Including sending problem report when
* issueing credentials fails
@morrieinmaas
Copy link
Collaborator Author

@lohanspies I've added problem reporting to issue_credentials in case that fails/catches an exception.

@wip-abramson wip-abramson merged commit ef2d05c into main Apr 30, 2021
@TimoGlastra TimoGlastra deleted the issue_18/prob_report_endpoints branch February 24, 2022 09:34
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.

Review and update problem-report endpoints

4 participants