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: disable edit button on App Details Summary and Parameters tabs multi-source apps #12048

Conversation

ishitasequeira
Copy link
Member

@ishitasequeira ishitasequeira commented Jan 19, 2023

fix: disable edit button on App Details Summary and Parameters tabs multi-source apps

fixes #11757 & #11758

  • Summary Tab
    image

  • Parameters Tab

image

Signed-off-by: ishitasequeira ishiseq29@gmail.com

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

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).
  • 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).

@ishitasequeira ishitasequeira added multi-source-apps Bugs or enhancements related to multi-source Applications. cherry-pick/2.6 labels Jan 19, 2023
@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Base: 47.44% // Head: 47.44% // No change to project coverage 👍

Coverage data is based on head (cb37920) compared to base (b17007b).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12048   +/-   ##
=======================================
  Coverage   47.44%   47.44%           
=======================================
  Files         246      246           
  Lines       41864    41864           
=======================================
  Hits        19862    19862           
  Misses      20004    20004           
  Partials     1998     1998           

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
Collaborator

@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 instead of disabling all edits in the App Summary page, we should only disable the fields which are related to the sources block. For example, editing the app's labels shouldn't be disabled.

@ishitasequeira ishitasequeira force-pushed the disable-edit-button-multiple-sources branch from 3cdf83b to a9c901c Compare February 2, 2023 17:59
…plications with multiple sources

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>
…le Source apps

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>
@ishitasequeira ishitasequeira force-pushed the disable-edit-button-multiple-sources branch from a9c901c to cb37920 Compare February 2, 2023 17:59
@ishitasequeira
Copy link
Member Author

ishitasequeira commented Feb 2, 2023

I think instead of disabling all edits in the App Summary page, we should only disable the fields which are related to the sources block. For example, editing the app's labels shouldn't be disabled.

I have addressed the comment.

@crenshaw-dev crenshaw-dev merged commit 9b86af1 into argoproj:master Feb 3, 2023
crenshaw-dev pushed a commit that referenced this pull request Feb 3, 2023
…ulti-source apps (#12048)

* disable edit button on App Details Summary and Parameters tabs for applications with multiple sources

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>

* disable editing specific fields in Application Summary Tab for Multiple Source apps

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>

---------

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this pull request Mar 14, 2023
…ulti-source apps (argoproj#12048)

* disable edit button on App Details Summary and Parameters tabs for applications with multiple sources

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>

* disable editing specific fields in Application Summary Tab for Multiple Source apps

Signed-off-by: ishitasequeira <ishiseq29@gmail.com>

---------

Signed-off-by: ishitasequeira <ishiseq29@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
cherry-pick/2.6 multi-source-apps Bugs or enhancements related to multi-source Applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.6 RC1: Editing repo URL, revision, or path of a multi-source app fails silently
2 participants