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

[FR-17] feat: update desired_session_count field name to replicas #2963

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ironAiken2
Copy link
Contributor

@ironAiken2 ironAiken2 commented Dec 17, 2024

This PR resolves #2957 issue

Since Backend.AI Core version 24.12.0, the desired_session_count field has been replaced with replicas.

Changes:

  • Added replicas field to service creation and update interfaces
  • Deprecated desired_session_count field for manager version >= 24.12.0
  • Updated GraphQL queries to handle both desired_session_count and replicas fields
  • Added version-based field selection using @deprecatedSince and @since directives
  • Added replicas feature flag check in client capabilities

How to test:

  • Check whether desired_session_count or replicas is used when creating or modifying a service, depending on the manager version. (From 24.12.0 onwards, replicas is used.)
  • Check whether desired_session_count is displayed correctly on the Service page and Detail page.

@ironAiken2 ironAiken2 linked an issue Dec 17, 2024 that may be closed by this pull request
@github-actions github-actions bot added the size:L 100~500 LoC label Dec 17, 2024
Copy link
Contributor Author


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.

Copy link

github-actions bot commented Dec 17, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.03% (-0% 🔻)
398/7916
🔴 Branches
4.35% (-0.02% 🔻)
237/5445
🔴 Functions
3.02% (-0% 🔻)
78/2586
🔴 Lines
4.94% (-0% 🔻)
383/7748

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from d30759e

@ironAiken2 ironAiken2 changed the title feat: update desired_session_count field name to replicas [FR-17] feat: update desired_session_count field name to replicas Dec 30, 2024
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from ea9696c to cc9297b Compare December 30, 2024 05:40
@github-actions github-actions bot added the area:lib Library and SDK related issue. label Dec 30, 2024
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch 3 times, most recently from 70d4813 to 662efcf Compare December 30, 2024 06:51
@ironAiken2 ironAiken2 marked this pull request as ready for review December 30, 2024 06:55
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 662efcf to a8eabef Compare December 31, 2024 04:48
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Dec 31, 2024
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from a8eabef to 6451393 Compare December 31, 2024 04:55
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 6451393 to d30759e Compare December 31, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:lib Library and SDK related issue. area:ux UI / UX issue. size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updatedesired_session_count field name to replicas of a endpoint
1 participant