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

Separate MultiUser configuration #1708

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

khk-globus
Copy link
Contributor

@khk-globus khk-globus commented Nov 6, 2024

To date, we've been comingling the MEP and UEP configurations in Config. At this time, the two implementations are starting to diverge in their overlap, so bite the bullet and be clear about the differences. This implementation uses BaseConfig for the shared attributes, maintains Config for backward compatability, and introduces UserEndpointConfig for the user endpoint and ManagerEndpointConfig for the endpoint manager configuration.

The core of the changes start in endpoint/config/config.py, where UserEndpointConfig (for UEPs) and ManagerEndpointConfig (for MEPs) are defined. These are backed up by requisite changes to the Pydantic model in config/model.py, Just about every other change is in support of the now-distinct configuration classes.

Notes:

  • test coverage has increased around the configurations
  • the YAML facade shouldn't change at all from the user perspective. This is an internal organization detail

[sc-37362]

Type of change

  • Code maintenance/cleanup

@khk-globus khk-globus added the no-news-is-good-news This change does not require a news file label Nov 6, 2024
@khk-globus khk-globus force-pushed the sc-37362/create_templateconfig branch from 0839cab to 38e2577 Compare November 6, 2024 22:00
@khk-globus khk-globus requested a review from rjmello November 7, 2024 17:49
@khk-globus khk-globus force-pushed the sc-37362/create_templateconfig branch from 3174b48 to 7a6adbc Compare November 8, 2024 16:08
Copy link
Member

@rjmello rjmello left a comment

Choose a reason for hiding this comment

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

Nice work!

Copy link
Contributor

@chris-janidlo chris-janidlo left a comment

Choose a reason for hiding this comment

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

🔥

To date, we've been comingling the MEP and UEP configurations in `Config`.  At
this time, the two implementations are starting to diverge in their overlap, so
bite the bullet and be clear about the differences.  This implementation uses
`BaseConfig` for the shared attributes, maintains `Config` for backward
compatability, and introduces `UserEndpointConfig` for the user endpoint and
`ManagerEndpointConfig` for the endpoint manager configuration.

The core of the changes start in `endpoint/config/config.py`, where
`UserEndpointConfig` (for UEPs) and `ManagerEndpointConfig` (for MEPs) are
defined.  These are backed up by requisite changes to the Pydantic model in
`config/model.py`,  Just about every other change is in support of the
now-distinct configuration classes.

Notes:
 - test coverage has increased around the configurations
 - the YAML facade shouldn't change at all from the user perspective.  This is
   an internal organization detail

[sc-37362]
@khk-globus khk-globus force-pushed the sc-37362/create_templateconfig branch from 7a6adbc to 9f1408a Compare November 9, 2024 04:47
@khk-globus khk-globus merged commit f12b50b into main Nov 9, 2024
9 checks passed
@khk-globus khk-globus deleted the sc-37362/create_templateconfig branch November 9, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-news-is-good-news This change does not require a news file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants