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(ui): Prevent versionId 0 Error on New Applications with No History #20574

Merged

Conversation

pasha-codefresh
Copy link
Member

Description:

For newly created applications without any history, an error occurs because versionId 0 is not found. This happens because the front-end currently sends a versionId even when there is no historical data available.

Expected Behavior:

The front-end should check for the presence of history before sending a versionId. If no history exists, it should avoid sending a versionId, ensuring no error appears on the UI.

Steps to Reproduce:

  1. Create a new application with no historical data.
  2. Attempt to load the application in the UI.
  3. Observe the error caused by versionId 0.

Снимок экрана 2024-10-29 в 15 04 39

Signed-off-by: pashakostohrys <pavel@codefresh.io>
@pasha-codefresh pasha-codefresh requested a review from a team as a code owner October 29, 2024 13:48
Copy link

bunnyshell bot commented Oct 29, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: pashakostohrys <pavel@codefresh.io>
Signed-off-by: pashakostohrys <pavel@codefresh.io>
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.

Looks good!!

@ishitasequeira ishitasequeira merged commit 33ecbbc into argoproj:master Oct 29, 2024
23 checks passed
pasha-codefresh added a commit to pasha-codefresh/argo-cd that referenced this pull request Oct 31, 2024
pasha-codefresh added a commit to pasha-codefresh/argo-cd that referenced this pull request Oct 31, 2024
pasha-codefresh added a commit to pasha-codefresh/argo-cd that referenced this pull request Oct 31, 2024
pasha-codefresh added a commit to pasha-codefresh/argo-cd that referenced this pull request Oct 31, 2024
ishitasequeira pushed a commit that referenced this pull request Oct 31, 2024
* Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)"

This reverts commit 33ecbbc.

* feat: add prompting to confirm app resource deletion

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* Revert "Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)""

This reverts commit cecf8f4.

---------

Signed-off-by: pashakostohrys <pavel@codefresh.io>
ishitasequeira pushed a commit that referenced this pull request Oct 31, 2024
* Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)"

This reverts commit 33ecbbc.

* feat: add prompting to confirm project deletion

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* Revert "Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)""

This reverts commit cecf8f4.

---------

Signed-off-by: pashakostohrys <pavel@codefresh.io>
ishitasequeira pushed a commit that referenced this pull request Oct 31, 2024
* Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)"

This reverts commit 33ecbbc.

* feat: add prompting to confirm project role deletion

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* Revert "Revert "fix(ui): Prevent versionId 0 Error on New Applications with No History (#20574)""

This reverts commit cecf8f4.

* feat: add prompting to confirm project role deletion

Signed-off-by: pashakostohrys <pavel@codefresh.io>

---------

Signed-off-by: pashakostohrys <pavel@codefresh.io>
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.

2 participants