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

Add: runtime plugin placeholder code to Smithy Orchestrator #2465

Merged

Conversation

Velfi
Copy link
Contributor

@Velfi Velfi commented Mar 15, 2023

update: add placeholder impl of runtime plugins
update: separate client and operation interceptors

I thought I had already added this in the other PR but these changes must have become lost somehow.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

update: separate client and operation interceptors
@Velfi Velfi requested a review from a team as a code owner March 15, 2023 18:16
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.


pub fn read_before_execution(
pub fn operation_read_before_execution(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: I think we should make a macro to generate all these functions since they're completely identical except for the function names...

Comment on lines +25 to +26
client_plugins: Vec<Box<dyn RuntimePlugin>>,
operation_plugins: Vec<Box<dyn RuntimePlugin>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Vec would be a good start. We may later want to change them to VecDeque if we need to prepend plugins.

}
}

impl RuntimePlugin for GetObjectEndpointOrc {
Copy link
Contributor

Choose a reason for hiding this comment

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

Haven't fully decided yet but we may need to define a separate struct GetObjectEndpointPlugin and impl RuntimePlugin on that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to get this merged and then assign you to that task.

@Velfi Velfi enabled auto-merge March 17, 2023 14:45
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.

@Velfi Velfi added this pull request to the merge queue Mar 17, 2023
@Velfi Velfi merged commit b4a9698 into main Mar 17, 2023
@Velfi Velfi deleted the update/add-runtime-plugins-placeholder-api-to-orchestrator branch March 17, 2023 15:33
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