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: Session owner setting panel in Neo session launcher #2693

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Sep 5, 2024

TL;DR

Added session owner setter functionality and improved resource group selection.

image image

What changed?

  • Introduced SessionOwnerSetterCard and SessionOwnerSetterPreviewCard components for setting session owners
  • Added BAISelect component for enhanced select functionality
  • Updated ResourceGroupSelect to use project name instead of ID
  • Modified AvailableResourcesCard to use ResourceGroupSelectForCurrentProject
  • Updated SessionLauncherPage to include session owner setter for admin and superadmin roles
  • Added new words to the spell checker configuration
  • Add ErrorBoundary with empty fallback to ignore SessionLauncherValidationTour's error

How to test?

  1. Log in as an admin or superadmin user
  2. Navigate to the session launcher page
  3. Verify that the session owner setter card is visible
  4. Test the functionality of setting a session owner:
    • Enter an owner's email
    • Select an access key
    • Choose a group and resource group
  5. Confirm that the preview card updates correctly
  6. Launch a session and verify that the owner settings are applied

Why make this change?

This change enhances the session management capabilities for administrators, allowing them to launch sessions on behalf of other users.

Copy link
Member Author

yomybaby commented Sep 5, 2024

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

Join @yomybaby and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the size:L 100~500 LoC label Sep 5, 2024
Copy link

graphite-app bot commented Sep 5, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

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

@yomybaby yomybaby force-pushed the feat/session-owner-setter-in-neo branch 2 times, most recently from 730b466 to 70a922f Compare September 9, 2024 03:38
Copy link

github-actions bot commented Sep 9, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.28% (-0.04% 🔻)
340/6441
🔴 Branches
4.77% (-0.05% 🔻)
214/4491
🔴 Functions
2.97% (-0.02% 🔻)
63/2121
🔴 Lines
5.18% (-0.03% 🔻)
326/6293
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / BAISelect.tsx
0% 0% 0% 0%
🔴
... / HiddenFormItem.tsx
0% 100% 0% 0%
🔴
... / SessionOwnerSetterCard.tsx
0% 0% 0% 0%

Test suite run success

90 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from c1f51bd

@yomybaby yomybaby marked this pull request as ready for review September 9, 2024 03:42
@yomybaby yomybaby marked this pull request as draft September 9, 2024 09:49
@yomybaby yomybaby force-pushed the feat/session-owner-setter-in-neo branch from c8adf42 to 64b9811 Compare October 2, 2024 04:06
@yomybaby yomybaby force-pushed the feat/session-owner-setter-in-neo branch from 64b9811 to c1f51bd Compare October 2, 2024 04:50
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Oct 2, 2024
@yomybaby yomybaby marked this pull request as ready for review October 2, 2024 04:50
Comment on lines 141 to +146
onDropdownVisibleChange={(open) => {
if (open) {
startLoadingTransition(() => {
updateFetchKey();
});
}
// if (open) {
// startLoadingTransition(() => {
// updateFetchKey();
// });
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you commented this out?

Copy link
Member Author

Choose a reason for hiding this comment

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

The ResourceGroup does not change frequently. It is not necessary to refetch it every time the dropdown is opened.

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.

The User Email of the delegated session is showing as the email of the user who actually requested the creation.

Relatedly, there are cases where the user who has taken over the privileges is unable to use the control functions within the session list (running the terminal, checking logs, etc...), partly because email is registered as the creation requestor and not the user.

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.

It looks only changes the owner access key. I cannot access any application such as terminal.

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

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:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants