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

Fix plugin pickeling #5412

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

wolflu05
Copy link
Contributor

@wolflu05 wolflu05 commented Aug 8, 2023

This is a simple fix that just removes the plugin from the model state for pickling, as pickling somehow does not work for views. But afaik the actual plugin instance is not needed to be stored in cache.

resolves #5408

@netlify
Copy link

netlify bot commented Aug 8, 2023

Deploy Preview for inventree canceled.

Name Link
🔨 Latest commit 70e6a32
🔍 Latest deploy log https://app.netlify.com/sites/inventree/deploys/64d2257ee6df280008d199b4

@wolflu05 wolflu05 added bug Identifies a bug which needs to be addressed plugin Plugin ecosystem labels Aug 8, 2023
@SchrodingersGat SchrodingersGat merged commit 1fe382e into inventree:master Aug 9, 2023
20 checks passed
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Aug 9, 2023
@SchrodingersGat
Copy link
Member

@wolflu05 thanks for this fix. I still think we need to assess whether the entire setting object should be cached. I'll open a new issue to discuss.

@wolflu05 wolflu05 deleted the fix/plugin-pickeling branch August 16, 2023 09:02
@wolflu05
Copy link
Contributor Author

@SchrodingersGat Are we gonna backport this fix?

@wolflu05 wolflu05 added backport Apply this label to a PR to enable auto-backport action backport-to-0.12.x labels Aug 17, 2023
@github-actions
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
0.12.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

github-actions bot pushed a commit that referenced this pull request Aug 17, 2023
(cherry picked from commit 1fe382e)
SchrodingersGat pushed a commit that referenced this pull request Aug 17, 2023
(cherry picked from commit 1fe382e)

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Apply this label to a PR to enable auto-backport action bug Identifies a bug which needs to be addressed plugin Plugin ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings do not work in combination with api views
2 participants