Skip to content

fix: stop using mixed rxjs versions in Argo CD UI#12685

Merged
alexmt merged 1 commit intoargoproj:masterfrom
alexmt:rxjs-resolution
Mar 2, 2023
Merged

fix: stop using mixed rxjs versions in Argo CD UI#12685
alexmt merged 1 commit intoargoproj:masterfrom
alexmt:rxjs-resolution

Conversation

@alexmt
Copy link
Collaborator

@alexmt alexmt commented Mar 1, 2023

The rxjs library was upgraded to 7.x in argo-ui but in argocd-ui still uses 6.x. So as a result we are using both version. I cannot explain why build is not failing, but VSCode is showing errors:

image

PR overrides rxjs version to 6.x (it is not that easy to upgrade to 7.x) which makes VSCode usable again and reduces js bundle size by ~100kb:

before:

ui git:(master) ls -lah dist/app/main.faae1c5b3a1f8bc33b6f.js                                                                                                        (k3d-akuity/default)
-rw-r--r--  1 alexmt  staff   5.1M Mar  1 14:08 dist/app/main.faae1c5b3a1f8bc33b6f.js

after:

ls -lah dist/app/main.45675ccc95492ebf352f.js                                                                                               (k3d-akuity/default)
-rw-r--r--  1 alexmt  staff   5.0M Mar  1 14:12 dist/app/main.45675ccc95492ebf352f.js

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt requested a review from rbreeze March 1, 2023 22:19
}
if (params.get('autoSync') != null) {
viewPref.autosyncFilter = params
viewPref.autoSyncFilter = params
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

An old bug which was not noticed due to rxjs version mismatch.

@alexmt alexmt changed the title fix: stop using fixed rxjs in Argo CD UI fix: stop using mixed rxjs versions in Argo CD UI Mar 1, 2023
Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Mar 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (6971966) 47.78% compared to head (71542c1) 47.78%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12685   +/-   ##
=======================================
  Coverage   47.78%   47.78%           
=======================================
  Files         246      246           
  Lines       41944    41944           
=======================================
  Hits        20045    20045           
  Misses      19898    19898           
  Partials     2001     2001           
Impacted Files Coverage Δ
util/settings/settings.go 49.36% <0.00%> (ø)

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.

@alexmt alexmt merged commit f3a3a57 into argoproj:master Mar 2, 2023
@alexmt alexmt deleted the rxjs-resolution branch March 2, 2023 00:34
rumstead pushed a commit to rumstead/argo-cd that referenced this pull request Mar 3, 2023
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this pull request Aug 9, 2023
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
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