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

feat(cli): Added example to admin-cluster.go and projectwindow.go files #16128

Merged
merged 24 commits into from
Nov 30, 2023
Merged

feat(cli): Added example to admin-cluster.go and projectwindow.go files #16128

merged 24 commits into from
Nov 30, 2023

Conversation

surajyadav1108
Copy link
Contributor

@surajyadav1108 surajyadav1108 commented Oct 26, 2023

part of the issue #15690
and part of the PR #16103

resolved issues

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
@surajyadav1108 surajyadav1108 requested review from a team as code owners October 26, 2023 17:46
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Attention: 73 lines in your changes are missing coverage. Please review.

Comparison is base (1600c03) 49.53% compared to head (8f4f67c) 49.46%.

Files Patch % Lines
cmd/argocd/commands/projectwindows.go 0.00% 43 Missing ⚠️
cmd/argocd/commands/admin/cluster.go 0.00% 30 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #16128      +/-   ##
==========================================
- Coverage   49.53%   49.46%   -0.08%     
==========================================
  Files         269      269              
  Lines       47222    47289      +67     
==========================================
  Hits        23392    23392              
- Misses      21530    21597      +67     
  Partials     2300     2300              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@crenshaw-dev crenshaw-dev changed the title feat: Added example to admin-cluster.go and projectwindow.go files (RESOLVED) feat(cli): Added example to admin-cluster.go and projectwindow.go files Oct 28, 2023
Copy link
Member

@crenshaw-dev crenshaw-dev left a comment

Choose a reason for hiding this comment

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

I think many of these examples rely too heavily on demonstrating global flags. Can you rework the examples to rely only on flags specific to the command?

@surajyadav1108
Copy link
Contributor Author

@crenshaw-dev hmm looking back to it yes you are correct, I will do the required changes

@surajyadav1108
Copy link
Contributor Author

surajyadav1108 commented Oct 30, 2023

@crenshaw-dev made the changes. up for review

cmd/argocd/commands/admin/cluster.go Outdated Show resolved Hide resolved
cmd/argocd/commands/projectwindows.go Outdated Show resolved Hide resolved
cmd/argocd/commands/projectwindows.go Outdated Show resolved Hide resolved
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
cmd/argocd/commands/admin/cluster.go Outdated Show resolved Hide resolved
cmd/argocd/commands/projectwindows.go Outdated Show resolved Hide resolved
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
@surajyadav1108
Copy link
Contributor Author

@ishitasequeira build test UI code is failing even after retriggering. You can try a manual build to check for errors. I haven't changed anything apart from correcting a spelling mistake, so this check should pass.

@surajyadav1108
Copy link
Contributor Author

surajyadav1108 commented Nov 8, 2023

@ishitasequeira ok found out why the Build test UI code was failing and fixed it but after updating the branch by pulling in from upstream there were some issues in code that has already been merged into upstream master and that's why my master update check fails for lint and tests but there is a open PR correcting this issue
#16275 I believe after that PR merge it will resolve these errors too.

Copy link
Member

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

@surajyadav1108 , Please rebase the PR again. The PR #16275 is merged.

@ishitasequeira ishitasequeira enabled auto-merge (squash) November 9, 2023 03:03
ishitasequeira and others added 2 commits November 8, 2023 22:03
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
auto-merge was automatically disabled November 9, 2023 07:58

Head branch was pushed to by a user without write access

@surajyadav1108
Copy link
Contributor Author

surajyadav1108 commented Nov 11, 2023

Updating the master branch had no issues as it should be. @ishitasequeira

Copy link
Member

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

Thanks @surajyadav1108 !! LGTM!!

@ishitasequeira ishitasequeira enabled auto-merge (squash) November 16, 2023 12:32
@surajyadav1108
Copy link
Contributor Author

@ishitasequeira is there anything stopping auto-merge?

Copy link
Member

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

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

Thanks @surajyadav1108 for addressing all the comments. Will merge the PR.

@ishitasequeira ishitasequeira merged commit 8070725 into argoproj:master Nov 30, 2023
25 checks passed
vladfr pushed a commit to vladfr/argo-cd that referenced this pull request Dec 13, 2023
…es (argoproj#16128)

* cluster.go, projectwindow.go

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* updated-examples

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-corrected

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* spell-mistake

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-correction

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger-2

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retirgger-3

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* update

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

---------

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
tesla59 pushed a commit to tesla59/argo-cd that referenced this pull request Dec 16, 2023
…es (argoproj#16128)

* cluster.go, projectwindow.go

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* updated-examples

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-corrected

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* spell-mistake

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-correction

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger-2

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retirgger-3

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* update

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

---------

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
JulienFuix pushed a commit to JulienFuix/argo-cd that referenced this pull request Feb 6, 2024
…es (argoproj#16128)

* cluster.go, projectwindow.go

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* updated-examples

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-corrected

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* spell-mistake

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-correction

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger-2

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retirgger-3

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* update

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

---------

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
lyda pushed a commit to lyda/argo-cd that referenced this pull request Mar 28, 2024
…es (argoproj#16128)

* cluster.go, projectwindow.go

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* updated-examples

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-corrected

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* spell-mistake

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-correction

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger-2

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retirgger-3

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* update

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

---------

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
Signed-off-by: Kevin Lyda <kevin@lyda.ie>
Hariharasuthan99 pushed a commit to AmadeusITGroup/argo-cd that referenced this pull request Jun 16, 2024
…es (argoproj#16128)

* cluster.go, projectwindow.go

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* updated-examples

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-corrected

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* spell-mistake

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* format-correction

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retrigger-2

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* retirgger-3

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

* update

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>

---------

Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants