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

feat: Rollouts UI List view refresh #3118

Merged
merged 21 commits into from
Nov 30, 2023

Conversation

phclark
Copy link
Contributor

@phclark phclark commented Oct 19, 2023

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2023

Go Published Test Results

2 085 tests   2 085 ✔️  2m 47s ⏱️
   118 suites         0 💤
       1 files           0

Results for commit c93191d.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3e940a6) 81.85% compared to head (c93191d) 81.84%.
Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3118      +/-   ##
==========================================
- Coverage   81.85%   81.84%   -0.02%     
==========================================
  Files         134      134              
  Lines       20556    20558       +2     
==========================================
- Hits        16826    16825       -1     
- Misses       2866     2869       +3     
  Partials      864      864              

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2023

E2E Tests Published Test Results

    4 files      4 suites   3h 26m 24s ⏱️
103 tests   93 ✔️   6 💤 4
420 runs  388 ✔️ 24 💤 8

For more details on these failures, see this check.

Results for commit c93191d.

♻️ This comment has been updated with latest results.

Signed-off-by: Philip Clark <[email protected]>
@phclark
Copy link
Contributor Author

phclark commented Oct 23, 2023

Is it possible for these e2e tests to be flaky? My previous commit passed all tests, but last commit failed the 1.26 e2e test even though the change was completed unrelated (only a minor UI code change). Can we rerun the test (I don't believe I have permissions)

@zachaller
Copy link
Collaborator

Yea it looks like something failed at githubs level i restarted it

@zachaller zachaller added this to the v1.7 milestone Nov 1, 2023
@ashutosh16
Copy link
Contributor

@phclark Would you be able to provide a screenshot/video of the changes you propose?

@phclark
Copy link
Contributor Author

phclark commented Nov 8, 2023

Hi @ashutosh16 ! I've got a video demo for you, showing off the new functionality. We've got this running internally in our organization with a hundred or so engineers using it daily, so I've got a fair amount of confidence things work as intended but I do also encourage you to test it yourself to see if the functionality makes sense.

https://jmp.sh/s/yEe36uy2F8swAcYnthe3

@ashutosh16
Copy link
Contributor

ashutosh16 commented Nov 10, 2023

https://jmp.sh/s/yEe36uy2F8swAcYnthe3
link doesn't work for me

Would you able to confirm if these are intended change? look very promising..

Screenshot 2023-11-09 at 6 32 45 PM Screenshot 2023-11-09 at 6 32 38 PM

ui/src/app/components/header/header.tsx Outdated Show resolved Hide resolved
ui/src/app/components/rollouts-home/rollouts-home.tsx Outdated Show resolved Hide resolved
favoritesMatches = true;
}
if (filters.showRequiresAttention && (r.status === 'Degraded' || (r.status === 'Paused' && r.message !== 'CanaryPauseStep'))) {
requiresAttentionMatches = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

nice to have:
When filtering by name or !. Filter by health on the toolbar.

Screen.Recording.2023-11-09.at.8.10.12.PM.mov
Screenshot 2023-11-09 at 8 06 50 PM

sorter: (a: any, b: any) => a.strategy.localeCompare(b.strategy),
render: (strategy: string) => {
return (
<InfoItemRow label={''} items={{content: strategy, icon: strategy === 'BlueGreen' ? 'fa-palette' : 'fa-dove', kind: strategy.toLowerCase() as InfoItemKind}} />
Copy link
Contributor

@ashutosh16 ashutosh16 Nov 10, 2023

Choose a reason for hiding this comment

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

add css style to make it center
Screenshot 2023-11-09 at 9 42 31 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't able to get this to work with center alignment, but I think it looks really clean when aligned left

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

return false;
};

export const RolloutWidget = (props: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there is already a component with same name. Would it be better to rename it differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ashutosh16 I've renamed my new widget to RolloutGridWidget

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll review the PR today.

Copy link

sonarcloud bot commented Nov 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

No Coverage information No Coverage information
3.9% 3.9% Duplication

Copy link
Contributor

@ashutosh16 ashutosh16 left a comment

Choose a reason for hiding this comment

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

LGTM

@ashutosh16
Copy link
Contributor

@zachaller I have verified the UI and the changes look good to me. Do you want to merge the PR?

Copy link
Collaborator

@zachaller zachaller 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 the contributions!

@zachaller zachaller merged commit 8cae284 into argoproj:master Nov 30, 2023
24 checks passed
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