-
Notifications
You must be signed in to change notification settings - Fork 63
Merge all configuration #928
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
base: main
Are you sure you want to change the base?
Conversation
1460e56 to
e1da792
Compare
298f472 to
95aab6a
Compare
95aab6a to
bcdbe08
Compare
|
|
||
| app = build_app(MapAdapter({}), authentication={"authenticator": DummyAuthenticator()}) | ||
| app = build_app( | ||
| MapAdapter({}), server_settings=Settings(authenticator=DummyAuthenticator()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: move MapAdapter into Settings
| tree: catalog | ||
| args: | ||
| tree: | ||
| type: catalog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be fully qualified now
| tree: catalog | ||
| args: | ||
| tree: | ||
| type: catalog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be fully qualified now
Find and replace type: catalog
| }, | ||
| ) | ||
| return build_app(tree, authentication={"single_user_api_key": "secret"}) | ||
| return build_app(tree, server_settings=Settings(single_user_api_key="secret")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass tree into Settings
|
|
||
|
|
||
| class AccessPolicy(Protocol): | ||
| class AccessPolicy(ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: Can AccessPolicy impls be made BaseModels, like Authenticators are? To ensure deserialization behaves
| ) from err | ||
| context = Context.from_app( | ||
| build_app_from_config(config, source_filepath=filepath), | ||
| build_app_from_config(merged.pop("direct", {}), source_filepath=filepath), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "direct" another word like Authentication that needs to be excised?
| env_nested_delimiter="_", | ||
| ) | ||
|
|
||
| def check_scalable(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: Make this a validator for the class- currently only distinguishes the case where secret_keys has been explicitly set as an empty list or database uri has been explicitly set to blank, we need to check that those keys have been explicitly set at all.
|
We anticipate that |
Parked while I return to DLS work.
Checklist