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-17): update desired_session_count field name to replicas #2963

Merged
merged 1 commit into from
Jan 14, 2025

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
4.95% (-0% 🔻)
398/8033
🔴 Branches
4.26% (-0.02% 🔻)
237/5558
🔴 Functions
2.97% (-0% 🔻)
78/2627
🔴 Lines
4.87% (-0% 🔻)
383/7860

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from a84073a

@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 2 times, most recently from 6451393 to d30759e Compare December 31, 2024 05:45
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from d30759e to 8883415 Compare January 8, 2025 04:37
react/src/pages/EndpointDetailPage.tsx Outdated Show resolved Hide resolved
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 8883415 to 15159d9 Compare January 8, 2025 08:35
@ironAiken2 ironAiken2 requested a review from agatha197 January 8, 2025 08:35
react/src/pages/EndpointListPage.tsx Outdated Show resolved Hide resolved
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 15159d9 to 9e5eeb9 Compare January 10, 2025 02:05
@ironAiken2 ironAiken2 requested a review from agatha197 January 10, 2025 02:06
react/src/pages/EndpointDetailPage.tsx Outdated Show resolved Hide resolved
react/src/pages/EndpointDetailPage.tsx Outdated Show resolved Hide resolved
react/src/pages/EndpointListPage.tsx Show resolved Hide resolved
react/src/pages/EndpointListPage.tsx Outdated Show resolved Hide resolved
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch 3 times, most recently from f49d41a to e150168 Compare January 13, 2025 05:37
@ironAiken2 ironAiken2 requested a review from yomybaby January 13, 2025 05:37
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM!

@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from e150168 to 9238ad9 Compare January 14, 2025 02:40
@ironAiken2 ironAiken2 requested a review from agatha197 January 14, 2025 02:40
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 9238ad9 to 8221836 Compare January 14, 2025 04:54
@ironAiken2 ironAiken2 requested a review from agatha197 January 14, 2025 04:57
react/src/pages/EndpointListPage.tsx Outdated Show resolved Hide resolved
@ironAiken2 ironAiken2 changed the title [FR-17] feat: update desired_session_count field name to replicas feat(FR-17): update desired_session_count field name to replicas Jan 14, 2025
@agatha197 agatha197 self-requested a review January 14, 2025 10:08
@ironAiken2 ironAiken2 force-pushed the feat/deprecated-session-routing-count branch from 8221836 to f8b4738 Compare January 14, 2025 10:37
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 Jan 14, 2025

Merge activity

…2963)

### This PR resolves [#2957](#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.
@agatha197 agatha197 force-pushed the feat/deprecated-session-routing-count branch from f8b4738 to a84073a Compare January 14, 2025 10:52
@graphite-app graphite-app bot merged commit a84073a into main Jan 14, 2025
7 checks passed
@graphite-app graphite-app bot deleted the feat/deprecated-session-routing-count branch January 14, 2025 10:54
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
3 participants