Skip to content

fix(plugin): restore disabled etag installs as active replacement#498

Merged
FinleyGe merged 1 commit into
labring:mainfrom
FinleyGe:codex/update-disabled-plugin
Jul 7, 2026
Merged

fix(plugin): restore disabled etag installs as active replacement#498
FinleyGe merged 1 commit into
labring:mainfrom
FinleyGe:codex/update-disabled-plugin

Conversation

@FinleyGe

@FinleyGe FinleyGe commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • allow direct URL install to reactivate a disabled plugin with the target ETag
  • enforce only one active ETag per pluginId/version by disabling replaced active plugins
  • keep plugin_installations aligned by deleting old ETag installations and upserting the restored system installation
  • keep usecase replacement cleanup focused on runtime unregister after repo-level DB replacement

Tests

  • ./node_modules/.bin/vitest run packages/infrastructure/src/plugin/plugin.repo.test.ts packages/usecase/src/usecase.test.ts
  • ./node_modules/.bin/tsc --noEmit
  • git diff --check

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Build Successful - Preview Server image for this PR:

ghcr.io/labring/fastgpt-plugin-pr:server_7a4cecb06cc2b44a18cab0eb7334967bf19e8182

Time: 2026-07-07 17:08:41 (UTC+8)

@FinleyGe
FinleyGe merged commit 143ddbd into labring:main Jul 7, 2026
3 checks passed
@FinleyGe
FinleyGe deleted the codex/update-disabled-plugin branch July 7, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant