[PR #576] [MERGED] feat: install plugin should be idempotent #593

Closed
opened 2026-02-16 01:16:26 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/576
Author: @fatelei
Created: 1/22/2026
Status: Merged
Merged: 1/27/2026
Merged by: @Yeuoly

Base: mainHead: issue-575


📝 Commits (2)

  • fc61767 feat: install plugin should be idempotent
  • 80fb842 chore: add new test

📊 Changes

9 files changed (+148 additions, -21 deletions)

View changed files

📝 internal/cluster/plugin.go (+1 -1)
📝 internal/core/plugin_manager/packages.go (+25 -4)
📝 internal/db/cache.go (+1 -1)
📝 internal/service/unauthorized_langgenius_test.go (+6 -6)
📝 internal/types/app/default_test.go (+3 -3)
📝 internal/types/models/curd/atomic.go (+19 -4)
internal/types/models/curd/install_concurrency_test.go (+90 -0)
📝 internal/types/models/plugin.go (+2 -1)
📝 internal/types/models/trigger.go (+1 -1)

📄 Description

Description

fix #575

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/576 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 1/22/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `issue-575` --- ### 📝 Commits (2) - [`fc61767`](https://github.com/langgenius/dify-plugin-daemon/commit/fc61767a42df43eff7b230444b0dc58da8097bfc) feat: install plugin should be idempotent - [`80fb842`](https://github.com/langgenius/dify-plugin-daemon/commit/80fb8428ad1d83b8e6dd777a0520e563ed4f7a58) chore: add new test ### 📊 Changes **9 files changed** (+148 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `internal/cluster/plugin.go` (+1 -1) 📝 `internal/core/plugin_manager/packages.go` (+25 -4) 📝 `internal/db/cache.go` (+1 -1) 📝 `internal/service/unauthorized_langgenius_test.go` (+6 -6) 📝 `internal/types/app/default_test.go` (+3 -3) 📝 `internal/types/models/curd/atomic.go` (+19 -4) ➕ `internal/types/models/curd/install_concurrency_test.go` (+90 -0) 📝 `internal/types/models/plugin.go` (+2 -1) 📝 `internal/types/models/trigger.go` (+1 -1) </details> ### 📄 Description ## Description fix #575 ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [ ] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [ ] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:26 -05:00
yindo closed this issue 2026-02-16 01:16:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#593