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

DM-41630: Improve controller models #220

Merged
merged 1 commit into from
Nov 7, 2023
Merged

DM-41630: Improve controller models #220

merged 1 commit into from
Nov 7, 2023

Conversation

rra
Copy link
Member

@rra rra commented Nov 7, 2023

Move the lab event model into controller.models.domain.lab, since the model itself is not returned by the API. It is only used to construct server-sent events.

Standardize Pydantic field parameter order to put title and description first, and flesh out descriptions for most fields since the Sphinx plugin really wants description to be set. Delete the now-unused FileserverUserMap class. Add explicit comments about which routes models are used in.

Move the lab event model into controller.models.domain.lab, since
the model itself is not returned by the API. It is only used to
construct server-sent events.

Standardize Pydantic field parameter order to put title and
description first, and flesh out descriptions for most fields since
the Sphinx plugin really wants description to be set. Delete the
now-unused FileserverUserMap class. Add explicit comments about
which routes models are used in.
@rra rra merged commit 76b5376 into main Nov 7, 2023
6 checks passed
@rra rra deleted the tickets/DM-41630 branch November 7, 2023 18:51
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.

1 participant