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

UI service metadata allow GET requests only #253

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Conversation

msavela
Copy link
Contributor

@msavela msavela commented Oct 28, 2021

UI service exposes /metadata route as aiohttp subapp, which is used by Metaflow Client.

Since this is intended for read-only operations we should only allow GET requests.

@@ -17,10 +17,10 @@
from services.utils import DBConfiguration


def app(loop=None, db_conf: DBConfiguration = None):
def app(loop=None, db_conf: DBConfiguration = None, middlewares=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add a type hint as well, is middlewares supposed to be a list or something else?

@romain-intel
Copy link
Contributor

This LGTM. I am having @savingoyal also look to make sure they are aware of this change and then we can merge.

@romain-intel
Copy link
Contributor

@savingoyal is good with the change. Merging.

@romain-intel romain-intel merged commit 0bd7dc2 into master Oct 29, 2021
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