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

# changes to get results from single/list of pages for estimator #1884

Merged
merged 8 commits into from
Dec 12, 2024

Conversation

matuszsmig
Copy link
Contributor

@matuszsmig matuszsmig commented Dec 9, 2024

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 the EstimatorsSelect component to handle estimator pages data, updating the ShSimulatorService to fetch and aggregate estimator results by pages, and updating the response types to include page dimension information.

Enhancements to EstimatorsSelect component:

Updates to ShSimulatorService:

Updates to ResultsPanel component:

Changes to response types:

  • src/types/ResponseTypes.ts: Added new types EstimatorItem, EstimatorPagesByDimensions, and ResponseGetEstimatorPageResult to support the new data structure for estimator pages. [1] [2]

Changes to request types:

@matuszsmig matuszsmig requested review from grzanka and tudde December 9, 2024 21:14
@matuszsmig matuszsmig self-assigned this Dec 9, 2024
@matuszsmig matuszsmig linked an issue Dec 9, 2024 that may be closed by this pull request
@grzanka
Copy link
Contributor

grzanka commented Dec 10, 2024

@matuszsmig before going with review of this PR may we merge first yaptide/yaptide#1243 ? there I have final requests for @SzymanskiBartlomiej

@matuszsmig
Copy link
Contributor Author

matuszsmig commented Dec 10, 2024

Yes, will there be something to change on frontend side? @grzanka

@grzanka
Copy link
Contributor

grzanka commented Dec 10, 2024

Yes, will there be something to change on frontend side? @grzanka

#1882

@matuszsmig
Copy link
Contributor Author

If it works, then no problem. I will fix merge conflicts later

@grzanka
Copy link
Contributor

grzanka commented Dec 10, 2024

#1882 was just merged
also yaptide/yaptide#1243 was merged on backend side

@matuszsmig matuszsmig requested a review from grzanka December 10, 2024 21:18
@matuszsmig matuszsmig requested a review from grzanka December 11, 2024 09:58
@matuszsmig matuszsmig requested a review from grzanka December 11, 2024 11:23
@grzanka
Copy link
Contributor

grzanka commented Dec 11, 2024

Do we have everything on backend to test this?

@matuszsmig
Copy link
Contributor Author

@grzanka this is PR on backend for my changes on frontend yaptide/yaptide#1171

@grzanka
Copy link
Contributor

grzanka commented Dec 11, 2024

See comment here: yaptide/yaptide#1171 (comment)

@grzanka
Copy link
Contributor

grzanka commented Dec 11, 2024

This is result of SH12A simulation, plot is missing

image

I would expect this result:

image

@grzanka
Copy link
Contributor

grzanka commented Dec 12, 2024

It seems the UI makes two request to backend, first for pages 0-3 and then another one only for page 1.
Why page 1 is being fetched twice ?

image
image
image

in the input we have first the 0-d scorer, then 1-d scorer, then again two 0-d scorers:

image

I deliberately changed order of quantities within an output to mix 0-d and 1-d ones...

@grzanka grzanka added this pull request to the merge queue Dec 12, 2024
Merged via the queue into master with commit 33333d8 Dec 12, 2024
8 checks passed
@grzanka grzanka deleted the 1883-get-results-from-estimators-pages branch December 12, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get results from estimator's pages
2 participants