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

App repository update form fix for filters (#3447) #3931

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

castelblanque
Copy link
Collaborator

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

This PR fixes a problem with updating an app repository with filters.
Repo filter data is now processed correctly both in backend and frontend.

Benefits

App repository filters are no longer gone after repo data update.

Possible drawbacks

N/A

Applicable issues

Additional information

I have added a test file for AppRepository given that none was existing.

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks, especially for the test. Since we plan to refactor this AppRepo thing at some point, I guess this test was missed or covered in another place, I don't know.
Anyway, great to have it !

@@ -59,7 +59,7 @@ export class AppRepository {
ociRepositories,
tlsInsecureSkipVerify: skipTLS,
passCredentials: passCredentials,
filter,
filterRule: filter,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wish every bug was that simple to solve :P

@castelblanque castelblanque merged commit d3317cd into master Dec 14, 2021
@castelblanque castelblanque deleted the 3447-apprepository-filters branch December 14, 2021 07:57
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.

front: edition of an apprepository filter clears it
2 participants