applicationset icon indicating copy to clipboard operation
applicationset copied to clipboard

Bug: RepositoryMatch filter is not working in combination with other filters

Open fardin01 opened this issue 2 years ago • 1 comments

Specifying a RepositoryMatch AND a PathsExist filter does not work as expected. The ListRepos function will still fetch all the available repos, because compileFilters function does not return the correct filters.

compileFilters function first checks for RepositoryMatch and sets the FilterType to 1, then it checks for PathsExist and overwrites the FilterType to 2. So when we reach this line, repoFilters has a length of 0.

fardin01 avatar Feb 28 '22 08:02 fardin01

A fix is being worked on in https://github.com/argoproj/applicationset/pull/511.

fardin01 avatar Feb 28 '22 13:02 fardin01