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

[WIP] Update service invocation examples #3642

Merged
merged 22 commits into from
Aug 24, 2023
Merged

Conversation

hhunter-ms
Copy link
Collaborator

@hhunter-ms hhunter-ms commented Jul 26, 2023

Description

Update code examples in service invocation how-to for using HTTP clients to align with quickstarts
Update dapr run commands to match

Issue reference

PR will close: #3599

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
@hhunter-ms hhunter-ms requested a review from a team as a code owner July 26, 2023 20:46
@hhunter-ms hhunter-ms self-assigned this Jul 26, 2023
@hhunter-ms hhunter-ms requested a review from a team as a code owner July 26, 2023 20:46
@hhunter-ms hhunter-ms changed the title Update service invocation examples [WIP] Update service invocation examples Jul 26, 2023
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
hhunter-ms and others added 7 commits July 27, 2023 15:04
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Copy link
Member

@msfussell msfussell left a comment

Choose a reason for hiding this comment

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

Couple of comments

orderId = random.randint(1, 1000)
#Invoke a service
result = requests.post(
url='%s/orders' % (base_url),
Copy link
Member

Choose a reason for hiding this comment

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

In all the examples you are now showing how the /orders method on the order processing service is called. If that is the change then
1)The diagram at the start needs to change to be more like the Quickstart. In other words Checkout calls order processing, not the other way around currently in this article.
2) This Javascript example still shows checkout and not orders on the order-processing service
3) Check any changes in the other code

Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Stale PR, paging all reviewers

@github-actions github-actions bot added the stale label Aug 8, 2023
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
@msfussell msfussell removed the stale label Aug 15, 2023
@github-actions
Copy link

Stale PR, paging all reviewers

@msfussell msfussell added this to the 1.11 milestone Aug 23, 2023
@yaron2 yaron2 merged commit 69d9813 into dapr:v1.11 Aug 24, 2023
7 checks passed
@yaron2 yaron2 deleted the issue_3599 branch August 24, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update service invocation examples
4 participants