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

[change] Remove support for restoring FirmwareBuild objects #170

Closed
nemesifier opened this issue Jan 18, 2022 · 0 comments · Fixed by #173
Closed

[change] Remove support for restoring FirmwareBuild objects #170

nemesifier opened this issue Jan 18, 2022 · 0 comments · Fixed by #173
Labels
enhancement New feature or request
Milestone

Comments

@nemesifier
Copy link
Member

When firmware builds are deleted, related images are deleted too (let's double check this), therefore restoring FirmwareBuild objects does not make sense because firmware images will be missing.

@nemesifier nemesifier added the enhancement New feature or request label Jan 18, 2022
AbhigyaShridhar added a commit to AbhigyaShridhar/openwisp-firmware-upgrader that referenced this issue Jan 25, 2022
Replaced Version Admin with ModelAdmin as a superclass in admin.py/BuildAdmin,
Also removed the reversion_register function which was meant to register the model
associated with BuildAdmin (Firmware Build), for recovery option.

Fixes openwisp#170
@pandafy pandafy added this to the Release 0.2.0 milestone Jan 26, 2022
AbhigyaShridhar added a commit to AbhigyaShridhar/openwisp-firmware-upgrader that referenced this issue Feb 13, 2022
In admin.py, replaced BaseVersionAdmin from BaseAdmin,
as a superclass for 'BuildAdmin', as it is no longer
desired to add a recovery option for firmware builds and images

Fixes openwisp#170
AbhigyaShridhar added a commit to AbhigyaShridhar/openwisp-firmware-upgrader that referenced this issue Feb 15, 2022
Replaced BaseVersionAdmin from BaseAdmin as a super class
in BuildAdmin and removed reversion support from BuildAdmin,
thus no longer allowing recovery of deleted Firmware Builds.

Also removed the overriding of the 'reversion_register' method
in CategoryAdmin to avoid failure of tests.

Fixes openwisp#170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
2 participants