Skip to content

Conversation

@RockChinQ
Copy link
Member

Summary

  • implement plugins auto upgrade strategy

Tip

Close issue syntax: Fixes #<issue number> or Resolves #<issue number>, see documentation for more details.

Screenshots

Before After
... ...

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

@RockChinQ RockChinQ force-pushed the feat/plugin-auto-upgrade branch from d36a81d to 46df95d Compare July 2, 2025 07:03
@RockChinQ RockChinQ marked this pull request as ready for review July 2, 2025 07:03
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jul 2, 2025
@RockChinQ RockChinQ force-pushed the feat/plugin-auto-upgrade branch 2 times, most recently from 4e79e87 to 5e7a7cc Compare July 10, 2025 06:29
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jul 10, 2025
@crazywoola crazywoola requested a review from Copilot July 11, 2025 07:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A comprehensive plugin auto-upgrade feature implementation that allows administrators to configure automatic plugin updates with customizable strategies, timing, and plugin selection modes.

  • Implements a plugin auto-upgrade strategy system with support for fix-only and latest version update strategies
  • Adds a complete UI for configuring auto-update settings including time selection and plugin selection
  • Integrates background tasks for automatic plugin upgrade checking and execution

Reviewed Changes

Copilot reviewed 55 out of 309 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
web/app/components/plugins/reference-setting-modal/auto-update-setting/index.tsx Main auto-update settings component with strategy, time, and plugin selection configuration
api/models/account.py Database model for tenant plugin auto-upgrade strategies with configurable options
api/services/plugin/plugin_auto_upgrade_service.py Service layer for managing plugin auto-upgrade strategy configuration
api/tasks/process_tenant_plugin_autoupgrade_check_task.py Background task for checking and executing plugin upgrades
api/schedule/check_upgradable_plugin_task.py Celery scheduled task for triggering upgrade checks
web/app/components/plugins/plugin-detail-panel/detail-header.tsx UI updates to show auto-upgrade status indicators

@RockChinQ RockChinQ mentioned this pull request Jul 18, 2025
23 tasks
@RockChinQ RockChinQ force-pushed the feat/plugin-auto-upgrade branch 3 times, most recently from a839d7b to f68a28b Compare July 22, 2025 14:33
@RockChinQ RockChinQ force-pushed the feat/plugin-auto-upgrade branch from 5652d77 to 78a952f Compare July 23, 2025 02:57
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 23, 2025
@Nov1c444 Nov1c444 self-requested a review July 23, 2025 07:21
Copy link
Contributor

@Yeuoly Yeuoly left a comment

Choose a reason for hiding this comment

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

LGTM

@Nov1c444 Nov1c444 merged commit eaae79a into main Jul 23, 2025
15 checks passed
@Nov1c444 Nov1c444 deleted the feat/plugin-auto-upgrade branch July 23, 2025 07:33
@hieheihei
Copy link
Contributor

It appears that a few files were inadvertently modified in this PR, the icon files for aliyun and weave were affected.

image

tutkun pushed a commit to tutkun/dify that referenced this pull request Aug 15, 2025
Co-authored-by: Joel <[email protected]>
Co-authored-by: crazywoola <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Novice <[email protected]>
tutkun pushed a commit to tutkun/dify that referenced this pull request Aug 16, 2025
Co-authored-by: Joel <[email protected]>
Co-authored-by: crazywoola <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Novice <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants