-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
StagedChange: SerializerNotFound #13640
Comments
I can implement some serializers for Branch and StagedChange models. |
Having looked how many staged changes there can be I dont think its worth having change ChangeLoggedModel on it. For example when ingesting some customer information using the staging method there can be up to 100k+ objects being altered. Deleting these takes very long due to the ChangeLoggedModel process. |
@minitriga the SerializerNotFound can remain in this issue, for removing ChangeLoggedModel on StagedChange - that should be opened as a feature-request as it will cause database changes and need to go into a point release. |
@minitriga creating new deprecation #14424 as this removes functionality it would need to be discussed as a deprecation. Marking this as blocked on that issue. Blocked by #14424 |
This is fixed via #14424 so closing. |
@arthanson This looks to be still broken in 3.7 I have upgraded and I get the same issue:
|
NetBox version
v3.5.8
Python version
3.8
Steps to Reproduce
Create a staged change and delete via the UI in a plugin. There is no UI for the StagedChange model but when using it in a plugin and deleting a staged change the following is raised:
netbox.api.exceptions.SerializerNotFound: Could not determine serializer for extras.StagedChange with prefix ''
Expected Behavior
I expect that the deletion of a branch or staged change would not fail. I think this is due to the model has the following mixin
ChangeLoggedModel
.Observed Behavior
The text was updated successfully, but these errors were encountered: