Skip to content

Conversation

@ascibisz
Copy link
Collaborator

@ascibisz ascibisz commented Oct 22, 2025

Problem

Currently, when a user wants to pack an edited recipe via the cellpack client, we upload the edited recipe to firebase, pass that reference to the server, and then the server retrieves the recipe from firebase. To minimize firebase calls and improve efficiency of the client, we're changing that flow to instead send the edited recipe JSON as the body of the packing request to the server.

This PR is to set up the server to be able to accept a recipe JSON blob instead of just handling file paths.

Part of this ticket

Solution

Added in the functionality for the server to read the recipe data from the request body, instead of only being able to handle firebase paths or local file paths.

We are still keeping the functionality of reading recipes from firebase paths and local file paths of course, so nothing should change for those use cases.

@ascibisz ascibisz changed the title Feature/server passed recipe json Server should Accept Recipe JSON Oct 23, 2025
3. Try hitting the test endpoint on the server, by navigating to `http://0.0.0.0:8443/hello` in your browser.
4. Try running a packing on the server, by hitting the `http://0.0.0.0:80/pack?recipe=firebase:recipes/one_sphere_v_1.0.0` in your browser.
3. Try hitting the test endpoint on the server, by navigating to `http://0.0.0.0:80/hello` in your browser.
4. Try running a packing on the server, by hitting the `http://0.0.0.0:80/start-packing?recipe=firebase:recipes/one_sphere_v_1.0.0` in your browser.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These instructions were just slightly incorrect, this has nothing to do with the other code changes, I just ran into it when testing my code and I wanted to fix it

@github-actions
Copy link
Contributor

Packing analysis report

Analysis for packing results located at cellpack/tests/outputs/test_spheres/spheresSST

Ingredient name Encapsulating radius Average number packed
ext_A 25 236.0

Packing image

Packing image

Distance analysis

Expected minimum distance: 50.00
Actual minimum distance: 50.01

Ingredient key Pairwise distance distribution
ext_A Distance distribution ext_A

@ascibisz ascibisz marked this pull request as ready for review November 5, 2025 17:12
@ascibisz ascibisz marked this pull request as draft November 20, 2025 17:39
Base automatically changed from feature/client-upload-script to main December 1, 2025 18:11
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.

2 participants