-
Notifications
You must be signed in to change notification settings - Fork 4
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
# changes to get results from single/list of pages for estimator #1884
Conversation
@matuszsmig before going with review of this PR may we merge first yaptide/yaptide#1243 ? there I have final requests for @SzymanskiBartlomiej |
Yes, will there be something to change on frontend side? @grzanka |
If it works, then no problem. I will fix merge conflicts later |
#1882 was just merged |
src/WrapperApp/components/Results/EstimatorsSelect/EstimatorsSelect.tsx
Outdated
Show resolved
Hide resolved
Do we have everything on backend to test this? |
@grzanka this is PR on backend for my changes on frontend yaptide/yaptide#1171 |
See comment here: yaptide/yaptide#1171 (comment) |
It seems the UI makes two request to backend, first for pages 0-3 and then another one only for page 1. in the input we have first the 0-d scorer, then 1-d scorer, then again two 0-d scorers: I deliberately changed order of quantities within an output to mix 0-d and 1-d ones... |
This pull request introduces several changes to the
EstimatorsSelect
component and related services to support fetching estimator data by page dimensions. The most important changes include modifying theEstimatorsSelect
component to handle estimator pages data, updating theShSimulatorService
to fetch and aggregate estimator results by pages, and updating the response types to include page dimension information.Enhancements to
EstimatorsSelect
component:src/WrapperApp/components/Results/EstimatorsSelect/EstimatorsSelect.tsx
: Modified the component to accept and useestimatorsPagesData
for fetching estimator results by page dimensions. [1] [2] [3]Updates to
ShSimulatorService
:src/services/ShSimulatorService.tsx
: ReplacedgetJobResult
withgetEstimatorsPages
to fetch estimator results by page dimensions, and added helper functions to prepare page numbers and aggregate results. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Updates to
ResultsPanel
component:src/WrapperApp/components/Results/ResultsPanel.tsx
: Updated to passestimatorsPagesData
to theEstimatorsSelect
component. [1] [2]Changes to response types:
src/types/ResponseTypes.ts
: Added new typesEstimatorItem
,EstimatorPagesByDimensions
, andResponseGetEstimatorPageResult
to support the new data structure for estimator pages. [1] [2]Changes to request types:
src/types/RequestTypes.ts
: UpdatedRequestGetJobResult
to includepageNumbers
for fetching estimator results by pages.