Skip to content

fix: resolve merge conflict between Features removal and validation enhancement#24150

Merged
crazywoola merged 38 commits intolanggenius:feat/triggerfrom
lyzno1:feat/trigger
Aug 19, 2025
Merged

fix: resolve merge conflict between Features removal and validation enhancement#24150
crazywoola merged 38 commits intolanggenius:feat/triggerfrom
lyzno1:feat/trigger

Conversation

@lyzno1
Copy link
Copy Markdown
Member

@lyzno1 lyzno1 commented Aug 19, 2025

Problem

When merging upstream/main into the feat/trigger branch, a conflict occurred in the workflow header component due to simultaneous but independent changes:

  1. Our branch: Renamed features-trigger.tsx to app-publisher-trigger.tsx and removed the Features button functionality (PR Remove workflow features button #24085)
  2. Upstream/main: Enhanced validation logic in features-trigger.tsx by adding checklist validation before workflow publishing (PR fix: validate checklist before publishing workflow #24104)

The conflict arose because Git couldn't automatically handle the scenario where one side renamed the file while the other side modified its contents.

Solution

Successfully resolved the conflict by:

  1. Preserving the file rename: features-trigger.tsxapp-publisher-trigger.tsx
  2. Preserving the Features removal: Removed RiApps2AddLine icon, Button component, and handleShowFeatures function
  3. Merging the validation enhancement: Integrated the checklist validation logic from upstream
  4. Combining both improvements: Result is a simplified UI with enhanced safety validation

Changes Made

Merged from upstream/main (PR #24104):

  • Added useEdges, useNodes hooks from reactflow
  • Added useChecklist hook for workflow validation
  • Added CommonEdgeType, CommonNodeType type imports
  • Enhanced onPublish function with dual validation:
    • First check: Validate checklist for unresolved warnings
    • Second check: Existing detailed validation via handleCheckBeforePublish

Preserved from feat/trigger branch (PR #24085):

  • Component rename: FeaturesTriggerAppPublisherTrigger
  • Removed Features button UI complexity
  • Simplified component structure to focus on publishing functionality

hyongtao-code and others added 30 commits August 16, 2025 11:08
Signed-off-by: Yongtao Huang <yongtaoh@gmail.com>
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
…s#24052)

Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
…ages (langgenius#23992)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: stream <stream@dify.ai>
Co-authored-by: Stream <1542763342@qq.com>
Co-authored-by: Stream <Stream_2@qq.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Stream29 <36751053+Stream29@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
…ei Cloud RDS (langgenius#24093)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
…24110)

Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
whhe and others added 8 commits August 18, 2025 17:36
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
langgenius#23881)

Co-authored-by: shiyun.li973792 <shiyun.li@seres.cn>
Co-authored-by: 1wangshu <suewangswu@gmail.com>
Co-authored-by: Blackoutta <hyytez@gmail.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
- Preserve file rename from features-trigger.tsx to app-publisher-trigger.tsx
- Preserve removal of Features button functionality
- Merge upstream validation enhancements (useChecklist, needWarningNodes)
- Combine both changes for improved workflow publishing validation
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. 🌊 feat:workflow Workflow related stuff. labels Aug 19, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 19, 2025
@crazywoola crazywoola merged commit aacea16 into langgenius:feat/trigger Aug 19, 2025
1 check passed
@lyzno1 lyzno1 deleted the feat/trigger branch August 19, 2025 05:49
lyzno1 added a commit to lyzno1/dify that referenced this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌊 feat:workflow Workflow related stuff. 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.