Skip to content
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

OpenAPI demo option for no-auto and events #375

Merged
merged 4 commits into from
Feb 18, 2020

Conversation

amanji
Copy link
Contributor

@amanji amanji commented Feb 16, 2020

Adds event logger to agent.py that is activated when running run_demo with the --events option.

Adds a --no-auto option to run_demo that deactivates --auto-... arguments in agent.

Updates OpenAPI demo documentation for invitation scenarios when --no-auto option is set

PR for: #361

when `--no-auto` option is enabled.

See openwallet-foundation#361 for more details.

Signed-off-by: Akiff Manji <[email protected]>
Will display:
Agent API requests with method, path and request body (pretty printed)
Agent API responses with method, path and response body (pretty printed)
Controller webhook calls with handler name and payload (pretty printed)

See openwallet-foundation#361 for more details.

Signed-off-by: Akiff Manji <[email protected]>
Will enable event logging in Cloudagent

Signed-off-by: Akiff Manji <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #375 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #375   +/-   ##
=======================================
  Coverage   89.14%   89.14%           
=======================================
  Files         236      236           
  Lines       11222    11222           
=======================================
  Hits        10004    10004           
  Misses       1218     1218

@swcurran
Copy link
Contributor

Ran the demo and it looks good. There are still some revisions to be made to the tutorial but it's looking good.

@amanji - is this ready for merging?

Thanks!

Updates I'm planning:

  • use the --events and --no-auto in this demo
  • make the description assume those options are set (vs. the two options)
  • direct the user to watch the webhooks that we displayed on the terminal
  • instead of using the /send endpoint for the credential, start with the /offer and walk through the whole thing
  • Overall - adjust the lay tutorial layout to separate the steps to execute (and copy/paste items) from the commentary.

Looking good!

@amanji
Copy link
Contributor Author

amanji commented Feb 18, 2020

Functionally it’s complete, but the docs need to be updated (as you mentioned). Should those changes be made first before merging?

@swcurran
Copy link
Contributor

swcurran commented Feb 18, 2020 via email

@swcurran swcurran marked this pull request as ready for review February 18, 2020 15:47
Copy link
Contributor

@swcurran swcurran left a comment

Choose a reason for hiding this comment

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

Looks good. We can further update the docs after merging.

@swcurran swcurran merged commit 90e5afb into openwallet-foundation:master Feb 18, 2020
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.

3 participants