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

Fixes #34508 - Creating repo stop working after any validation error #9974

Merged
merged 1 commit into from Mar 1, 2022

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented Feb 23, 2022

What are the changes introduced in this pull request?

Creating a repo fails if there has been a validation error once. ex: create a repo with duplicate name.
Also, updating a docker repo fails if you add a comma at the end of include tags or exclude tags in the form.

Considerations taken when implementing this change?

What are the testing steps for this pull request?

  1. Create a repo with an existing name, or negative retain package count value etc to trigger a validation error.

  2. Correct the repo in the form to be valid

  3. It should be able to save properly.

  4. Create a docker repo with some include tags and exclude tags.

  5. You should be able to update the same repo with changes to the tag lists or otherwise.

@theforeman-bot
Copy link

Issues: #34508

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

ACK, was able to create a repo after changing the name and adjust the tags on a docker repo I made.

@sjha4 sjha4 merged commit 232dfc9 into Katello:master Mar 1, 2022
ianballou pushed a commit to ianballou/katello that referenced this pull request Mar 1, 2022
ianballou pushed a commit that referenced this pull request Mar 3, 2022
parthaa pushed a commit to parthaa/katello that referenced this pull request Apr 11, 2022
…e first save.

Fixes #34508 - Creating repo stop working after any validation error (Katello#9974)

(cherry picked from commit 232dfc9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants