Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: UI validation functions #65

Closed

Conversation

SamiSousa
Copy link
Contributor

  • Fix name of 'Deep Insights' capability
  • Set key to 'capabilities' for error logging
  • Add regex for alternate version format
  • Change validation flag to use dashes instead of underscores

The first two issues I encountered when running the courier against
community-operators PRs.
The regex is important for versions that use a string after the
semver.
I also changed the validation CLI flag to use dashes as is the
convention for CLI flags. If using underscores was intended I can remove this change.

- Fix name of 'Deep Insights' capability
- Set key to 'capabilities' for error logging
- Add regex for alternate version format
- Change validation flag to use dashes instead of underscores

The first two issues I encountered when running the courier against
community-operators PRs.
The regex is important for versions that use a string after the
semver.
I also changed the validation CLI flag to use dashes as is the
convention for CLI flags.
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 13, 2019
@@ -59,7 +59,7 @@ def verify(self):
parser.add_argument('source_dir', help='Path of your directory of yaml '
'files to bundle. Either set this or '
'use the files argument for bundle data.')
parser.add_argument('--ui_validate_io',
parser.add_argument('--ui-validate-io',
Copy link
Member

Choose a reason for hiding this comment

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

This should be a separate pr, since we are introducing a breaking change on a released feature.

@@ -467,7 +468,7 @@ def get_alm_kinds(alm_examples):
# capabilities check
if not is_capability_level(annotations["capabilities"]):
self._log_error("metadata.annotations.capabilities %s is not a "
"valid capabilities level", annotations["capability"])
"valid capabilities level", annotations["capabilities"])
valid = False

return valid
Copy link
Member

Choose a reason for hiding this comment

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

The three changes in this file all seem unrelated. Can you please submit them as separate pull requests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing!

@SamiSousa
Copy link
Contributor Author

Following @kevinrizza 's suggestion and closing in favor of separate PRs for each change:
#67 for the capabilities change
#68 for the regex update
#69 for the CLI flag update

@SamiSousa SamiSousa closed this Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants