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): conflict resolution to properly import #13730

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

MasonM
Copy link
Contributor

@MasonM MasonM commented Oct 9, 2024

Motivation

Attempting to build the UI on main currently fails with the following error:

ERROR in ./src/app/workflows/components/retry-workflow-node-panel.tsx 26:0-43
Module not found: Error: Can't resolve '../../shared/utils' in '/home/vscode/go/src/github.com/argoproj/argo-workflows/ui/src/app/workflows/components'

This is happening due to a merge conflict between #13343 and #13339. The latter was merged first and deleted ui/src/app/shared/utils.ts, which the former is importing. The reason the CI build didn't fail for the former PR is that the branch wasn't up-to-date with main at the time of merge.

Modifications

Fixed src/app/workflows/components/retry-workflow-node-panel.tsx to use the new location of getValueFromParameter()

Verification

Verified http://localhost:8080/workflows?namespace=argo&limit=50 loads locally:
image

Attempting to build the UI on `main` currently fails with the following
error:
```
ERROR in ./src/app/workflows/components/retry-workflow-node-panel.tsx 26:0-43
Module not found: Error: Can't resolve '../../shared/utils' in '/home/vscode/go/src/github.com/argoproj/argo-workflows/ui/src/app/workflows/components'
```

This is happening due to a merge conflict between
argoproj#13343 and
argoproj#13339. The latter was
merged first and deleted `ui/src/app/shared/utils.ts`, which the former
is importing. The reason the CI build didn't fail for the former PR is that
the branch wasn't up-to-date with `main` at the time of merge.

Signed-off-by: Mason Malone <651224+MasonM@users.noreply.github.com>
Copy link
Contributor

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this Mason! I didn't have time to fix it yesterday when I noticed it in #13343 (comment), so I appreciate you getting to it in the interim!

@agilgur5 agilgur5 merged commit ceaabf1 into argoproj:main Oct 9, 2024
17 checks passed
@agilgur5 agilgur5 changed the title fix(ui): fix build failures due to conflict fix(ui): conflict resolution to properly import Oct 9, 2024
@Joibel
Copy link
Member

Joibel commented Oct 10, 2024

Thanks for fixing this.

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.

3 participants