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

Plugins: Add baseMiddleware support #87799

Merged
merged 3 commits into from
May 14, 2024
Merged

Plugins: Add baseMiddleware support #87799

merged 3 commits into from
May 14, 2024

Conversation

ryantxu
Copy link
Member

@ryantxu ryantxu commented May 14, 2024

Currently the plugins middleware has a lot of boilderplate duplication. This is OK, but it makes adding/exploring new services have a comically large set of things to implement.

This PR introduces a base class for middleware so they are only implementing the functions that change.

@ryantxu ryantxu added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels May 14, 2024
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.1.x milestone May 14, 2024
@ryantxu ryantxu marked this pull request as ready for review May 14, 2024 13:02
@ryantxu ryantxu requested a review from a team as a code owner May 14, 2024 13:02
@ryantxu ryantxu requested review from wbrowne, oshirohugo, xnyo, marefr and a team and removed request for a team May 14, 2024 13:02
@ryantxu
Copy link
Member Author

ryantxu commented May 14, 2024

@wbrowne -- this is motivated by wanting to explore a few new service endpoints, but there is a LOT of boilerplate code. See #87718. (that PR actually does nothing... just boilerplate)

Copy link
Member

@marefr marefr left a comment

Choose a reason for hiding this comment

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

LGTM

@ryantxu ryantxu merged commit 62d326c into main May 14, 2024
13 checks passed
@ryantxu ryantxu deleted the plugin-base-middleware branch May 14, 2024 13:27
@ephemeral-instances-bot
Copy link

Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs

Error message

handling pull request closed event: deleting instance by slug: unexpected response status: status=502 responseBody=

<title>502 Server Error</title>

Error: Server Error

The server encountered a temporary error and could not complete your request.

Please try again in 30 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants