Skip to content

feat(151): add long-running-operation example#66

Merged
toumorokoshi merged 5 commits into
aep-dev:mainfrom
toumorokoshi:yft/lro2
Apr 30, 2025
Merged

feat(151): add long-running-operation example#66
toumorokoshi merged 5 commits into
aep-dev:mainfrom
toumorokoshi:yft/lro2

Conversation

@toumorokoshi
Copy link
Copy Markdown
Member

@toumorokoshi toumorokoshi commented Apr 28, 2025

Adding an example of a long-running-operation (archiveBook), to illustrate how LROs would work from a user interface standpoint.

This change currently implements the google.aip.Operation service to return the operation resource - in the future this will be replaced by an operation service that will be generated by aep-lib-go/aepc.

This change also upstreams the proto generation functionality, as well as the resource model for aepc, up to aep-lib-go. This simplifies end-to-end testing of changes to the resource model, as well as it's maintenance.

current errors: example/bookstore/v1/bookstore.proto:5:8:import "aep/api/operation.proto": file does not exist
now that proto generation has been properly upstreamed, we can leverage LROs
from the aep-lib-go instead. This vastly reduces the code in aepc.
@toumorokoshi toumorokoshi force-pushed the yft/lro2 branch 4 times, most recently from ab91d47 to 3297266 Compare April 29, 2025 06:04
Copy link
Copy Markdown
Member

@rambleraptor rambleraptor left a comment

Choose a reason for hiding this comment

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

Looks great!

Comment thread example/bookstore/v1/bookstore.proto
@toumorokoshi toumorokoshi merged commit 30d17fe into aep-dev:main Apr 30, 2025
1 check passed
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.

2 participants