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

Merged
merged 1 commit into from
Nov 12, 2024

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]>
@JenySadadia
Copy link
Collaborator Author

The PR is ready for the review.

@nuclearcat nuclearcat added this pull request to the merge queue Nov 12, 2024
Merged via the queue into kernelci:main with commit 61e6109 Nov 12, 2024
6 checks passed
@JenySadadia JenySadadia deleted the fix-node-ownership branch November 13, 2024 05:35
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
2 participants