feat: application watch opts#7
Conversation
Signed-off-by: pashavictorovich <pavel@codefresh.io>
Signed-off-by: pashavictorovich <pavel@codefresh.io> # Conflicts: # OWNERS
Signed-off-by: pashavictorovich <pavel@codefresh.io>
Signed-off-by: pashavictorovich <pavel@codefresh.io>
|
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (c312ef3)
|
|
/review |
|
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
|
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
|
/describe |
|
PR-Agent was enabled for this repository, but no eligible user found. Please link your git user with your CodiumAI identity here. |
|
/improve |
|
PR-Agent was enabled for this repository, but no eligible user found. Please link your git user with your CodiumAI identity here. |
|
/describe |
|
PR Description updated to latest commit (c312ef3)
|
|
/improve |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
|
/ask what this pr is solving ? |
|
Question: what this pr is solving ? Answer: The PR also introduces a new function This PR is solving the problem of handling multiple watch options in a more structured and efficient way. It improves the code quality by reducing redundancy and enhancing readability. ✨ Ask tool usage guide:Overview: Note that the tool does not have "memory" of previous questions, and answers each question independently.
See the ask usage page for a comprehensive guide on using this tool. |
|
This pull request has been marked as stale because it has had no activity for 90 days. Please comment if this is still relevant. |
User description
Checklist:
Type
enhancement
Description
watchOptsto consolidate watch options for applications, enhancing code readability and maintainability.watchOptsstruct, reducing the complexity of function signatures.Changes walkthrough
app.go
Refactor Application Watch Options into Structcmd/argocd/commands/app.go
watchOptsstruct to consolidate watch options.NewApplicationWaitCommandto usewatchOptsinstead ofindividual flags.
getWatchOptsfunction to set default watch options when none arespecified.
waitOnApplicationStatusandcheckResourceStatusfunctions toutilize
watchOpts.app_test.go
Add Tests for Application Watch Options Refactoringcmd/argocd/commands/app_test.go
watchOpts.