Skip to content

Conversation

@dvcanton
Copy link

@dvcanton dvcanton commented Nov 29, 2024

Implements #20964 based on Proposal #17108.

Depends on a fix #581 in the FormField component.

Side note: that is my first contribution to ArgoCD, therefore I am open to improvement ideas, suggestions and discussion points on this PR.

After:

image

The button Add Source places a new SourcePanel component and increase a source counter.

image

Checklist:

  • [x ] 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.
  • 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.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@dvcanton dvcanton requested a review from a team as a code owner November 29, 2024 23:50
@bunnyshell
Copy link

bunnyshell bot commented Nov 29, 2024

❗ Preview Environment undeploy from Bunnyshell failed

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to try again to remove the environment

@dvcanton dvcanton changed the title feat: support creating multi-source applications in New App panel (DRAFT) feat: support creating multi-source applications in New App panel Nov 29, 2024
@dvcanton dvcanton force-pushed the multisource-new-app-panel branch 2 times, most recently from f5cc83b to 99bd9da Compare November 30, 2024 00:26
Copy link
Contributor

@andrii-korotkov-verkada andrii-korotkov-verkada left a comment

Choose a reason for hiding this comment

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

Please, fix the tests

@dvcanton dvcanton force-pushed the multisource-new-app-panel branch from 99bd9da to 8dc15a0 Compare December 2, 2024 10:30
@dvcanton dvcanton requested a review from a team as a code owner December 2, 2024 10:30
Copy link
Member

@nitishfy nitishfy left a comment

Choose a reason for hiding this comment

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

Can you fix the Lint issues and DCO check?

  • You can fix the lint issues by running the command
    golangci-lint run --timeout 10m --fix

  • If you click on “Details” next to the failed check for DCO, you’ll find instructions how to solve that.

Also, it can be helpful if you can paste a After section in the PR description.

@dvcanton dvcanton force-pushed the multisource-new-app-panel branch 2 times, most recently from 7c9e37d to 7968a5f Compare December 2, 2024 10:53
@dvcanton dvcanton force-pushed the multisource-new-app-panel branch from 7968a5f to 56f1d0d Compare December 2, 2024 11:03
@andrii-korotkov-verkada andrii-korotkov-verkada added the ready-for-review An approver should give a final review and merge the PR label Dec 2, 2024
@dvcanton
Copy link
Author

dvcanton commented Dec 2, 2024

Hi @nitishfy thanks a lot for the tip! I have been struggling with the UI lint and its requirements (spacing, line breaks, etc), hence the number of times I have rebased and repushed the same commit (btw sorry if you guys received a flood of notifications in the process @nitishfy @andrii-korotkov-verkada).

The UI tests now pass. I have also included source screenshoots in the PR description to show how the create new app panel looks like -- I hope that is what you meant with an After session, @nitishfy?

Thanks for the comments! :)

@andrii-korotkov-verkada
Copy link
Contributor

andrii-korotkov-verkada commented Dec 2, 2024

btw sorry if you guys received a flood of notifications in the process

You are good.

hence the number of times I have rebased and repushed the same commit

It may be better to not force push to be able to see your incremental changes.

@codecov
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.97%. Comparing base (02d6866) to head (680e005).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21005      +/-   ##
==========================================
- Coverage   55.03%   54.97%   -0.07%     
==========================================
  Files         324      324              
  Lines       55466    55466              
==========================================
- Hits        30526    30492      -34     
- Misses      22330    22350      +20     
- Partials     2610     2624      +14     

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

Copy link
Contributor

@keithchong keithchong left a comment

Choose a reason for hiding this comment

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

Could you rebase?

Also, try reconciling or synchronizing the changes made in the yaml editor with what is on the form, and vice versa.

Are you planning to make the source sections collapsible? (It could be a follow-on PR). That way it'll be consistent with what we already have.

@@ -0,0 +1,285 @@
import {AutocompleteField, DataLoader, DropDownMenu} from 'argo-ui';
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you take this source from

// This is similar to what is in application-create-panel.tsx. If the create panel
? The next step is to common this up.

Copy link
Contributor

@keithchong keithchong left a comment

Choose a reason for hiding this comment

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

Also, the source parameters section should dynamically update based on the app source type (eg. helm or kustomize) that we detect.

@nithin8702
Copy link

nithin8702 commented Sep 29, 2025

Hi @dvcanton

This PR is useful to us, Could you please resolve it and merge this changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review An approver should give a final review and merge the PR

Projects

Status: Changes Requested

Development

Successfully merging this pull request may close these issues.

6 participants