Skip to content

Commit c833ff6

Browse files
committed
feat(FR-1405): version control of deployment features
1 parent f5eb8fe commit c833ff6

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

react/src/components/MainLayout/WebUISider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const WebUISider: React.FC<WebUISiderProps> = (props) => {
185185
key: 'serving',
186186
group: 'service',
187187
},
188-
{
188+
baiClient.supports('deployment') && {
189189
label: (
190190
<WebUILink to="/deployment">{t('webui.menu.Deployment')}</WebUILink>
191191
),

react/src/pages/DeploymentDetailPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const DeploymentDetailPage: React.FC = () => {
8787
const { deployment } = useLazyLoadQuery<DeploymentDetailPageQuery>(
8888
graphql`
8989
query DeploymentDetailPageQuery($deploymentId: ID!) {
90-
deployment(id: $deploymentId) {
90+
deployment(id: $deploymentId) @since(version: "25.13.0") {
9191
id @required(action: THROW)
9292
metadata {
9393
name

react/src/pages/DeploymentListPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const DeploymentListPage: React.FC = () => {
5353
const deployments = useLazyLoadQuery<DeploymentListPageQuery>(
5454
graphql`
5555
query DeploymentListPageQuery($filter: DeploymentFilter, $first: Int) {
56-
deployments(filter: $filter, first: $first) {
56+
deployments(filter: $filter, first: $first) @since(version: "25.13.0") {
5757
edges {
5858
node {
5959
id

src/lib/backend.ai-client-esm.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@ class Client {
804804
if (this.isManagerVersionCompatibleWith('25.12.0')) {
805805
this._features['mount-by-id'] = true;
806806
}
807+
if (this.isManagerVersionCompatibleWith('25.13.0')) {
808+
this._features['deployment'] = true;
809+
}
807810
}
808811

809812
/**

0 commit comments

Comments
 (0)