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: Argo CD doesn't detect the repo type when repository is scoped #11959

Merged
merged 1 commit into from Jan 12, 2023

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Jan 11, 2023

Signed-off-by: Alexander Matyushentsev AMatyushentsev@gmail.com

Closes #9580

The #8558 updated repository API to verify that repo is permitted in a project before returning list of applications/application details for given repository. The check loads project directly using project informer and does not take into account project scoped repositories. This PR fixes the issue.

@codecov
Copy link

codecov bot commented Jan 11, 2023

Codecov Report

Base: 47.28% // Head: 47.29% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (6c59b98) compared to base (cc2a27e).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11959      +/-   ##
==========================================
+ Coverage   47.28%   47.29%   +0.01%     
==========================================
  Files         245      245              
  Lines       41669    41670       +1     
==========================================
+ Hits        19702    19707       +5     
+ Misses      19981    19978       -3     
+ Partials     1986     1985       -1     
Impacted Files Coverage Δ
server/repository/repository.go 51.62% <100.00%> (+0.12%) ⬆️
server/server.go 54.03% <100.00%> (ø)
util/settings/settings.go 48.42% <0.00%> (+0.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Copy link
Member

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

LGTM

@alexmt alexmt enabled auto-merge (squash) January 12, 2023 01:05
@alexmt alexmt merged commit 3b05351 into argoproj:master Jan 12, 2023
alexmt added a commit that referenced this pull request Jan 12, 2023
…11959)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
emirot pushed a commit to emirot/argo-cd that referenced this pull request Jan 27, 2023
…rgoproj#11959)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: emirot <emirot.nolan@gmail.com>
sujeilyfonseca pushed a commit to sujeilyfonseca/argo-cd that referenced this pull request Mar 7, 2023
…rgoproj#11959)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this pull request Mar 14, 2023
…rgoproj#11959)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
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.

Argo CD doesn't detect the repo type when repository is scoped
3 participants