-
Notifications
You must be signed in to change notification settings - Fork 75
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-360): add max_pending_session_count
, max_concurrent_sftp_sessions
to keypair resource policy.
#3025
base: main
Are you sure you want to change the base?
feat(FR-360): add max_pending_session_count
, max_concurrent_sftp_sessions
to keypair resource policy.
#3025
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 4.95% (-0.01% 🔻) |
398/8043 |
🔴 | Branches | 4.26% (-0.02% 🔻) |
237/5565 |
🔴 | Functions | 2.96% (-0.01% 🔻) |
78/2631 |
🔴 | Lines | 4.87% (-0.01% 🔻) |
383/7869 |
Test suite run success
124 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from b8ee0c8
73e6232
to
27be261
Compare
…essions` to keypair resource policy.
27be261
to
b8ee0c8
Compare
@@ -702,6 +702,8 @@ class Client { | |||
} | |||
if (this.isManagerVersionCompatibleWith('24.03.4')) { | |||
this._features['endpoint-extra-mounts'] = true; | |||
this._features['max-pending-session-count'] = true; | |||
this._features['max-concurrent-sftp-sessions'] = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the schema, it says that the max_concurrent_sftp_sessions field was added as of 23.03.3. Please check :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above. please refer lablup/backend.ai#3413
@@ -30,19 +27,19 @@ const FormItemWithUnlimited: React.FC<FormItemWithUnlimitedProps> = ({ | |||
}, [form, name, unlimitedValue]); | |||
|
|||
// Disable children when isUnlimited is true. | |||
const childrenWithProps = isValidElement(children) | |||
const childrenWithProps = React.isValidElement(children) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. it is okay to revert it.
@@ -82,6 +81,8 @@ const KeypairResourcePolicyList: React.FC<KeypairResourcePolicyListProps> = ( | |||
max_containers_per_session | |||
idle_timeout | |||
allowed_vfolder_hosts | |||
max_pending_session_count @since(version: "24.03.4") | |||
max_concurrent_sftp_sessions @since(version: "24.03.4") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also looks to be 23.03.3 in the schema.
backend.ai-webui/react/data/schema.graphql
Lines 980 to 988 in a48214d
"""Added in 23.03.3.""" | |
max_concurrent_sftp_sessions: Int | |
"""Added in 24.03.4.""" | |
max_pending_session_count: Int | |
"""Added in 24.03.4.""" | |
max_pending_session_resource_slots: JSONString | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer lablup/backend.ai#3413
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave comment. It occurs error when testing in 23.03.3
const useStyles = createStyles(({ css }) => ({ | ||
label: css` | ||
.ant-form-item | ||
.ant-form-item-label | ||
> label.ant-form-item-required:not( | ||
.ant-form-item-required-mark-optional | ||
)::before { | ||
display: none; | ||
} | ||
`, | ||
})); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to use createStyles. Just set requiredMark={false}
resolves #3017
related PR: https://lablup.atlassian.net/browse/FR-317
refer: lablup/backend.ai#3413
Added support for two new resource policy fields in keypair resource policy:
max_pending_session_count
: Controls maximum number of sessions that can be in pending statemax_concurrent_sftp_sessions
: Controls maximum number of concurrent SFTP sessionsChecklist:
The PR also includes:
Screenshots: