Skip to content

Comments

Feature/edited recipes in firebase#350

Merged
ascibisz merged 15 commits intomainfrom
feature/edited-recipes-in-firebase
Aug 13, 2025
Merged

Feature/edited recipes in firebase#350
ascibisz merged 15 commits intomainfrom
feature/edited-recipes-in-firebase

Conversation

@ascibisz
Copy link
Collaborator

@ascibisz ascibisz commented Jul 7, 2025

Problem

In the cellpack-client, we want to allow users to edit recipes. Those edited recipes are uploaded to a new firebase collection, recipes_edited, in this cellpack-client PR. Some changes are required on the cellpack side to work with this new flow, and those are in this PR.

Link to story or ticket

Solution

  • Accept references to the recipes_edited collection
  • Recipes in this collection are formatted more like local recipe files than other firebase files, so some changes were made to handle that

rugeli and others added 11 commits July 7, 2025 16:03
* Add basic Dockerfile and docker-entrypoint file

* draft aws cli inside of docker container

* access aws s3 with saved cred

* update readme

* update docker commands

* update readme

* update readme

---------

Co-authored-by: ascibisz <alli.scibisz@alleninstitute.org>
* draft aws cli inside of docker container

* access aws s3 with saved cred

* update readme

* update docker commands

* update readme

* update readme

* add parameter for when we're using docker to default to using the staging firebase db

* read recipe and config in from docker run params

* use dockerignore file to prevent bloat in docker image

* add `batch_job_id` to result metadata (#295)

* retrieve job id

* formatting

* add a bucket for batch jobs

* formatting

* remove print statement and add comments

---------

Co-authored-by: Ruge Li <rugeli0605@gmail.com>
Co-authored-by: Ruge Li <91452427+rugeli@users.noreply.github.com>
* Add Dockerfile.ecs for our ECS image and rename old Dockerfile to Dockerfile.batch

* add intentional error handling for if packing fails

* change messaging from /hello endpoint
@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2025

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 force-pushed the feature/edited-recipes-in-firebase branch from 1f11992 to b27a817 Compare July 7, 2025 23:05
@ascibisz ascibisz marked this pull request as ready for review July 16, 2025 21:34
if collection == "recipes_edited":
database_name = "firebase_edited"
return downloaded_recipe_data, database_name
return downloaded_recipe_data, database_name, collection == "recipes_edited"
Copy link
Collaborator

Choose a reason for hiding this comment

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

returning collection == "recipes_edited" here might not be immediately clear to first time reviewers regarding how this relates to "unnested". how about using something like is_unnested_firebase or unnested_collection to clarify our intent?

Copy link
Collaborator Author

@ascibisz ascibisz Aug 6, 2025

Choose a reason for hiding this comment

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

  • add local variable to clarify what's happening

@ascibisz ascibisz requested a review from rugeli August 7, 2025 23:54
@ascibisz ascibisz merged commit 565df85 into main Aug 13, 2025
7 checks passed
@ascibisz ascibisz deleted the feature/edited-recipes-in-firebase branch August 13, 2025 17:05
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.

3 participants