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(FR-492): terminiate sessions in NEO session list #3163

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Feb 13, 2025

resolves #3127 (FR-492)

image.png

Adds multi-session termination functionality to the compute session list page. Users can now select multiple sessions and terminate them simultaneously. The termination process includes proper error handling and status tracking for each session.

Key changes:

  • Added checkbox selection to session list table
  • Implemented batch termination modal for multiple sessions
  • Created promise tracker hook to manage multiple termination requests
  • Added session count and terminate button in the list header when sessions are selected
  • Updated translations for selected item count across multiple languages

Checklist:

  • Test case(s) to demonstrate the difference of before/after
    • Select multiple sessions and verify they can be terminated together
    • Verify error handling when terminating multiple sessions
    • Check that session list updates correctly after batch termination
    • Validate selected sessions persist between page navigation
    • Confirm selections clear when filters change

@github-actions github-actions bot added the size:L 100~500 LoC label Feb 13, 2025
Copy link
Member Author

yomybaby commented Feb 13, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@yomybaby yomybaby changed the title feat: terminiate sessions in NEO session list feat(FR-492): terminiate sessions in NEO session list Feb 14, 2025
@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from 473f193 to a499b90 Compare February 14, 2025 02:57
@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from a499b90 to 5711de4 Compare February 14, 2025 03:01
Copy link

github-actions bot commented Feb 14, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.66% (-0.01% 🔻)
401/8609
🔴 Branches
4.05% (-0% 🔻)
239/5905
🔴 Functions
2.81% (-0.02% 🔻)
78/2776
🔴 Lines
4.58% (-0.01% 🔻)
386/8423
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴 usePromiseTracker.ts 0% 100% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 helper/index.tsx
47.85% (-2.73% 🔻)
43.18% (-0.25% 🔻)
34% (-6.48% 🔻)
48.78% (-2.85% 🔻)

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from e5b31e0

@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from 5711de4 to fb90a8a Compare February 14, 2025 03:12
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Feb 14, 2025
@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch 3 times, most recently from 577d4b0 to ade7485 Compare February 14, 2025 04:52
@yomybaby yomybaby marked this pull request as ready for review February 14, 2025 04:54
@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from ade7485 to 0e1ee52 Compare February 16, 2025 22:52
@github-actions github-actions bot added size:XL 500~ LoC and removed size:L 100~500 LoC labels Feb 16, 2025
@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from 0e1ee52 to 1ac91d3 Compare February 16, 2025 23:01
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

Please check the eslint errors. There're some unused variables.
And can you fix the typo too?

  • 상관 없이 -> 상관없이
  • 연산노드에 -> 연산 노드에

@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from 6e7f178 to 427bcd1 Compare February 17, 2025 02:45
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from 427bcd1 to edb8e62 Compare February 17, 2025 04:45
@yomybaby yomybaby requested a review from ironAiken2 February 17, 2025 04:45
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

Please resolve the conflicts

@yomybaby yomybaby force-pushed the feature/termnaite-session-in-neo-session-list branch from edb8e62 to 4253c88 Compare February 17, 2025 07:44
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

graphite-app bot commented Feb 17, 2025

Merge activity

resolves #3127 (FR-492)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/XqC2uNFuj0wg8I60sMUh/8faf53d2-e245-49ef-a6ba-ce7f03a8a214.png)

Adds multi-session termination functionality to the compute session list page. Users can now select multiple sessions and terminate them simultaneously. The termination process includes proper error handling and status tracking for each session.

Key changes:
- Added checkbox selection to session list table
- Implemented batch termination modal for multiple sessions
- Created promise tracker hook to manage multiple termination requests
- Added session count and terminate button in the list header when sessions are selected
- Updated translations for selected item count across multiple languages

**Checklist:**
- [ ] Test case(s) to demonstrate the difference of before/after
  - Select multiple sessions and verify they can be terminated together
  - Verify error handling when terminating multiple sessions
  - Check that session list updates correctly after batch termination
  - Validate selected sessions persist between page navigation
  - Confirm selections clear when filters change
@graphite-app graphite-app bot force-pushed the feature/termnaite-session-in-neo-session-list branch from 4253c88 to e5b31e0 Compare February 17, 2025 08:07
@graphite-app graphite-app bot merged commit e5b31e0 into main Feb 17, 2025
7 checks passed
@graphite-app graphite-app bot deleted the feature/termnaite-session-in-neo-session-list branch February 17, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:ux UI / UX issue. size:XL 500~ LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NEO: Terminate sessions in session list
3 participants