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

Paging #15

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Paging #15

merged 3 commits into from
Sep 25, 2024

Conversation

hillalex
Copy link
Member

@hillalex hillalex commented Sep 25, 2024

The endpoint GET /dataset/<name>/indidivudal returns plotly config for a multi-panel plot; one panel per individual. This PR modifies that endpoint to take a page query string parameter and return a given page of (up to)f 20 panels.

@@ -14,68 +14,61 @@ target_post_dataset <- function(req, res) {
parsed <- mime::parse_multipart(req)
xcol <- get_xcol(parsed)
name <- get_dataset_name(parsed)
if (is.null(xcol)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

reactoring this function not related to other changes but just opportunistic

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.25%. Comparing base (ec8bfad) to head (fc0c48c).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   93.20%   94.25%   +1.04%     
==========================================
  Files           4        5       +1     
  Lines         368      383      +15     
==========================================
+ Hits          343      361      +18     
+ Misses         25       22       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hillalex hillalex marked this pull request as ready for review September 25, 2024 15:14
@hillalex hillalex merged commit 36abddb into main Sep 25, 2024
10 checks passed
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.

1 participant