Skip to content

Patch management: plugin -> core - #12862

Merged
hius07 merged 7 commits into
koreader:masterfrom
hius07:patch-mgmt
Dec 8, 2024
Merged

Patch management: plugin -> core#12862
hius07 merged 7 commits into
koreader:masterfrom
hius07:patch-mgmt

Conversation

@hius07

@hius07 hius07 commented Dec 7, 2024

Copy link
Copy Markdown
Member

Discussed in #12841.


This change is Reviewable

@ghost

ghost commented Dec 7, 2024

Copy link
Copy Markdown

Just a question. Isn't there a one_time_migration necessary to delete an already installed plugin?

@hius07

hius07 commented Dec 7, 2024

Copy link
Copy Markdown
Member Author

Sure, thanks!

Comment thread frontend/ui/data/onetime_migration.lua Outdated
Comment on lines +763 to +768
-- 20241207, Move PatchManagement plugin to the core
-- https://github.com/koreader/koreader/pull/12862
if last_migration_date < 20241207 then
logger.info("Performing one-time migration for 20241207")

ffiUtil.purgeDir(DataStorage:getDataDir() .. "/plugins/patchmanagement.koplugin")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wording of the comment should probably read as:
-- We moved patch management to core. Remove the original plugin.

(This migration step does not "Move PatchManagement plugin to the core", you did :))

@poire-z

poire-z commented Dec 7, 2024

Copy link
Copy Markdown
Contributor

Wondering:
#12809 did not remove via onetime_migration the plugins it has disabled.
This PR does.
For consistency, would/should there be a preferred method ?

@hius07

hius07 commented Dec 7, 2024

Copy link
Copy Markdown
Member Author

local OBSOLETE_PLUGINS = {
autofrontlight = true,
backgroundrunner = true,

They will not be loaded in any case, I can add purging them here. @pazos ?

@pazos

pazos commented Dec 7, 2024

Copy link
Copy Markdown
Member

I'm not an expert in migrations.

All the removed plugins until now we're not actively removed, just blacklisted. I'm fine with this approach but if you think it worths to remove them we can do delete them all and remove the obsolete array

@Frenzie

Frenzie commented Dec 7, 2024

Copy link
Copy Markdown
Member

Some of them might have data that's important for a move to contrib. (Emphasis on might, if they don't they can probably be deleted.)

@ghost

ghost commented Dec 7, 2024

Copy link
Copy Markdown

I would be fine with not deleting previously installed plugins, as they are disabled. But the patchmanagement should be removed, other ways we have it twice.

@hius07

hius07 commented Dec 7, 2024

Copy link
Copy Markdown
Member Author

The OBSOLETE plugins are not just disabled, they are not visible in the Plugin management and cannot be enabled.

@hius07
hius07 merged commit 0386e26 into koreader:master Dec 8, 2024
@hius07
hius07 deleted the patch-mgmt branch December 8, 2024 07:33
@hius07 hius07 added this to the 2025.01 milestone Dec 8, 2024
@hius07

hius07 commented Dec 8, 2024

Copy link
Copy Markdown
Member Author

Purging Patch management only.

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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.

4 participants