-
Notifications
You must be signed in to change notification settings - Fork 78
fix(FR-1851): show reservoir page without error boundary #4935
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
base: feat/create-BAIVFolderSelect
Are you sure you want to change the base?
fix(FR-1851): show reservoir page without error boundary #4935
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
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 | 63.5% | 254/400 |
| 🔴 | Branches | 42.3% | 151/357 |
| 🔴 | Functions | 50% | 46/92 |
| 🟡 | Lines | 65.16% | 230/353 |
Test suite run success
186 tests passing in 9 suites.
Report generated by 🧪jest coverage report action from 4507e03
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.9% (+0% 🔼) |
587/11984 |
| 🔴 | Branches | 4.47% (-0% 🔻) |
377/8429 |
| 🔴 | Functions | 2.75% | 101/3675 |
| 🔴 | Lines | 4.73% (+0% 🔼) |
553/11703 |
Test suite run success
173 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from 4507e03
d695012 to
174cab3
Compare
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.
Pull request overview
This PR resolves an error boundary issue on the Reservoir page by making GraphQL query parameters optional and removing limit/offset from the total artifacts count query. The changes align with a backend API update that allows fetching total artifact counts without pagination parameters.
Key Changes:
- Feature flag for reservoir moved from manager version 25.12.0 to 25.14.0
- GraphQL query parameters (
limit,offset,filter) changed from required to optional - Total artifacts query no longer passes limit/offset parameters
- Deprecated Ant Design
valueStyleprop replaced withstylesobject - Added 'use memo' directive for React Compiler optimization
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/lib/backend.ai-client-esm.ts | Moved reservoir feature flag from version 25.12.0 to 25.14.0 to match actual backend API availability |
| react/src/pages/ReservoirPage.tsx | Made GraphQL query parameters optional, removed limit/offset from total count query, updated deprecated Ant Design prop, added React Compiler directive, improved type safety with filterOutEmpty |
| packages/backend.ai-ui/src/components/fragments/BAIArtifactTable.tsx | Removed commented-out code |
| data/schema.graphql | Updated schema with new types and made query parameters optional to support getting total counts without pagination |
174cab3 to
ae20552
Compare
nowgnuesLee
left a comment
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.
LGTM
ae20552 to
9fb1e60
Compare
9fb1e60 to
325b9e6
Compare
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
325b9e6 to
5e01a45
Compare
5e01a45 to
705732f
Compare
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
705732f to
ad64b31
Compare
c888801 to
8ccc994
Compare
ad64b31 to
bf4c404
Compare
8ccc994 to
1f8120a
Compare
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| onClickPull={(artifactId: string, revisionId: string) => { | ||
| artifacts.edges.forEach((artifact) => { | ||
| if (artifact.node.id === artifactId) { |
Copilot
AI
Jan 8, 2026
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.
Inconsistent nullable handling. While line 381-383 correctly uses optional chaining e?.node and filterOutEmpty to handle nullable nodes, line 385 in the event handler uses artifact.node.id directly without null checks. This inconsistency could lead to runtime errors if edges contain nullable nodes.
Since the GraphQL query now has nullable parameters, the edges may contain null nodes. Consider applying the same defensive approach throughout, or filter nulls before passing to event handlers.
bf4c404 to
4507e03
Compare
1f8120a to
922a8c7
Compare

Resolves #4927 (FR-1851)
valueStyle).Checklist: