Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review of the diff
This diff removes a per-item validation rule for
keyfrom an<el-form-item>inside a nestedv-forloop. Everything else in the snippet is unchanged.Potential issues
Likely behavioral regression (validation removed)
The removed rule was
{ whitespace: true, required: true, message: ..., trigger: 'blur' }. Unless this rule was moved to another place (e.g., added dynamically viasetRules, a parent-level array of rules, or handled by a custom validator), thekeyfield will no longer be validated at all. This is the most important thing to verify.Dynamic prop path + rules removed
The
:prop="\group_list.${gIndex}.variable_list.${vIndex}.key`"` is still there, so the form model path is intact — but without rules it's effectively a no-op (unless validation is driven elsewhere).Loss of
whitespace: trueEven if
requiredis enforced elsewhere, droppingwhitespace: truemeans a key consisting only of spaces could pass. If whitespace-only keys are invalid, this check must be preserved somewhere.No new source of truth shown in the diff
If the intent was to centralize/refactor validation logic, the corresponding change is not visible here. Please confirm one of:
<el-form :rules="...">level (with matching dynamic property names), orformData-level validation runs before submit.Localized message reference removed
The
t('workflow.variableAggregation.key.requiredMessage')string may now be orphaned (unused i18n key). Consider cleaning it up — or verify it's reused elsewhere in the codebase.Test coverage
Confirm that e2e/unit tests cover "empty key" and "whitespace-only key" cases; otherwise this regression may go unnoticed.
Suggestion
If the goal was to remove the inline rule, ensure the same constraints (
required+whitespace) are enforced through a single authoritative mechanism, e.g.:and add a test asserting that an empty/whitespace key blocks submission.
Bottom line: The change is not obviously broken syntactically, but it silently drops required/whitespace validation on
variable_list[*].key. Verify that validation is still enforced elsewhere before merging.