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

NAS-131559 / 25.04 / Remove accepts style decorator from apps plugin #15225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Qubad786
Copy link
Contributor

Context

Removes accept style decorator from app plugin.

@Qubad786 Qubad786 requested a review from a team December 17, 2024 20:33
@bugclerk bugclerk changed the title Remove accepts style decorator from apps plugin NAS-131559 / 25.04 / Remove accepts style decorator from apps plugin Dec 17, 2024
@bugclerk
Copy link
Contributor



class AppConfigResult(BaseModel):
result: AppConfig
Copy link
Contributor

Choose a reason for hiding this comment

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

To save the extra model this could be result: dict, same as AlertEntry.metadata unless we know at least one of the fields in AppConfig.

result: AppEntry


class AppUpdate(BaseModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

No ForUpdateMetaclass? Setting defaults here may clear out the fields not provided in the call params depending on how app.update updates the fields.

pass


class AppContainerIDResult(BaseModel):
Copy link
Contributor

Choose a reason for hiding this comment

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

We should try and keep Args and Result model pairs together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants