Skip to content

Conversation

@arya-girish-k
Copy link
Contributor

Description

https://github.ibm.com/GoldenEye/issues/issues/15220

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

This PR uses the new UI regex validation to enforce input rules on the frontend, making validation easier.

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@arya-girish-k
Copy link
Contributor Author

arya-girish-k commented Jul 30, 2025

Testing ss from UI:
Prefix must begin with a lowercase letter and may contain only lowercase letters, digits,
existing_kms_instance_crn (optional) ®
existing_cluster_kms_key_crn (optional) ©
existing_boot_volume_kms_key_crn (optional) ®

audit_webhook_listener_image_tag_digest (optional) ®

@arya-girish-k
Copy link
Contributor Author

Prefix variable validation

  1. It allows null value (if providing __NULL__ it will translate to null)
Pasted Graphic 16

2.It allows empty string
Pasted Graphic 15

3.It verifies the regex pattern
Prefix must begin with a lowercase letter and may contain only lowercase letters, digits,

@arya-girish-k arya-girish-k marked this pull request as ready for review August 1, 2025 03:08
@arya-girish-k
Copy link
Contributor Author

/run pipeline

@arya-girish-k
Copy link
Contributor Author

/run pipeline

type = string
nullable = true
description = "The prefix to be added to all resources created by this solution. To skip using a prefix, set this value to null or an empty string. The prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It should not exceed 16 characters, must not end with a hyphen('-'), and can not contain consecutive hyphens ('--'). Example: prod-0405-ocp. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
description = "The prefix to be added to all resources created by this solution. Example: prod-0405-ocp. [Learn more](https://terraform-ibm-modules.github.io/documentation/#/prefix.md)."
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have we removed the information of required format in the description?

Copy link
Contributor Author

@arya-girish-k arya-girish-k Aug 4, 2025

Choose a reason for hiding this comment

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

@ocofaigh The issue mentioned: “Simplify the description of these fields to avoid specifying the expected pattern, as error messages will be shown to the user dynamically while typing.”
I had removed the part that indicated the pattern accordingly, but now I have reverted those changes.

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

some comments

@arya-girish-k
Copy link
Contributor Author

/run pipeline

@arya-girish-k
Copy link
Contributor Author

/run pipeline

@arya-girish-k
Copy link
Contributor Author

Moving this PR to draft. The changes are not in production yet, so it should not be merged until they are live.

@arya-girish-k arya-girish-k marked this pull request as draft August 5, 2025 13:08
@ocofaigh
Copy link
Contributor

ocofaigh commented Aug 5, 2025

@arya-girish-k This is now in prod, can you test it there please?

@arya-girish-k arya-girish-k marked this pull request as ready for review August 6, 2025 01:24
@arya-girish-k
Copy link
Contributor Author

@arya-girish-k This is now in prod, can you test it there please?

@ocofaigh Tested in production,All the changes are reflected .
Prefix must begin with a lowercase letter and may contain only lowercase letters, digits,

@ocofaigh ocofaigh merged commit f94351d into main Aug 6, 2025
2 checks passed
@ocofaigh ocofaigh deleted the regex-validation branch August 6, 2025 06:57
@arya-girish-k arya-girish-k mentioned this pull request Aug 21, 2025
6 tasks
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.

4 participants