Skip to content

fix: 6776 show publish version validation error - #7074

Merged
Pyatakov merged 2 commits into
developfrom
feat/6776-add-validation-error-on-publish-dialog-for-version-text-box
Oct 7, 2026
Merged

Pyatakov merged 2 commits into
developfrom
feat/6776-add-validation-error-on-publish-dialog-for-version-text-box

Conversation

@ihar-tsykala

@ihar-tsykala ihar-tsykala commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description:

In the Publish dialog for a policy or a tool, a version the dialog does not accept (a letter, an empty field, or a version not greater than the previous one) only turned the Publish button grey, with no reason shown. For tools the "not greater" case was not even caught: the dialog let it through and the backend rejected the publish afterwards.

Both dialogs now show a message under the version field once it has been edited or touched: "Version is required", "Version must contain only numbers separated by dots, for example 1, 1.0 or 1.0.0", or "Version must be greater than ". The field gets the existing red border, and the message and the button read the same check, so they always agree. The tool dialog now compares with previousVersion, as the policy dialog and the backend do, and the tool list and tool editor now pass the tool into the dialog.

The accepted version format and the publish request are unchanged. The schema-template publish and schema set-version dialogs are not touched.

Fixes #6776

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@ihar-tsykala
ihar-tsykala requested a review from Pyatakov October 5, 2026 12:43
@ihar-tsykala ihar-tsykala self-assigned this Oct 5, 2026
@ihar-tsykala
ihar-tsykala requested review from a team as code owners October 5, 2026 12:43
@ihar-tsykala
ihar-tsykala marked this pull request as draft October 5, 2026 12:44
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Test Results

 33 files   66 suites   3m 13s ⏱️
 35 tests  35 ✅ 0 💤 0 ❌
173 runs  173 ✅ 0 💤 0 ❌

Results for commit 1b72ec5.

♻️ This comment has been updated with latest results.

@ihar-tsykala
ihar-tsykala marked this pull request as ready for review October 7, 2026 12:11
@Pyatakov
Pyatakov merged commit 24217a6 into develop Oct 7, 2026
21 checks passed
@Pyatakov
Pyatakov deleted the feat/6776-add-validation-error-on-publish-dialog-for-version-text-box branch October 7, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants