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

api.main: do not reset node ownership fields #564

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

Conversation

JenySadadia
Copy link
Collaborator

@JenySadadia JenySadadia commented Oct 29, 2024

Fixes #563
Depends on kernelci/kernelci-core#2738

On update node operation, node ownership fields shouldn't be changed such as owner and submitter.

@JenySadadia
Copy link
Collaborator Author

This isn't working due to pydantic issue related to model_serializer.
See pydantic/pydantic#6575

On update node operation, node ownership fields
shouldn't be changed such as `owner` and `submitter`.
Replace pydantic v1 functions with pydantic v2
following the package upgrade. Use `model_dump`
and `model_copy` instead of older version functions.

Signed-off-by: Jeny Sadadia <[email protected]>
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.

PUT /node operation removes node owner
1 participant