Skip to content

Load and deploy cloud function files from notebook#14

Merged
brycecr merged 12 commits intogoogle:mainfrom
tylere:cloud-function-folder
Mar 13, 2026
Merged

Load and deploy cloud function files from notebook#14
brycecr merged 12 commits intogoogle:mainfrom
tylere:cloud-function-folder

Conversation

@tylere
Copy link
Contributor

@tylere tylere commented Aug 8, 2025

No description provided.

@tylere
Copy link
Contributor Author

tylere commented Aug 8, 2025

@n-clinton for your review.

Copy link
Collaborator

@brycecr brycecr left a comment

Choose a reason for hiding this comment

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

can you rebase this on top of PR #12? It seems like the notebooks have similar content, or at least names, so it would be useful to understand the difference as a diff

tylere added a commit to tylere/forest-data-partnership that referenced this pull request Oct 13, 2025
…n.ipynb

The content of that notebook is addressed in
google#14
@tylere tylere force-pushed the cloud-function-folder branch from 6ac910b to 927aa9b Compare October 13, 2025 22:53
@tylere
Copy link
Contributor Author

tylere commented Oct 13, 2025

can you rebase this on top of PR #12? It seems like the notebooks have similar content, or at least names, so it would be useful to understand the difference as a diff

Done.
@brycecr let me know if this result is what you had in mind.

@tylere tylere requested a review from brycecr October 14, 2025 16:55
@brycecr
Copy link
Collaborator

brycecr commented Feb 6, 2026

I still see a full file diff for Sustainable_Sourcing_Layers_2025a.ipynb ? Not sure why if it was rebased 🤔

tylere added a commit to tylere/forest-data-partnership that referenced this pull request Feb 6, 2026
…n.ipynb

The content of that notebook is addressed in
google#14
@tylere tylere force-pushed the cloud-function-folder branch from 927aa9b to 1966d3c Compare March 12, 2026 17:06
@tylere
Copy link
Contributor Author

tylere commented Mar 12, 2026

@brycecr I tried rebasing again (against main because #12 was already merged). Sustainable_Sourcing_Layers_2025a.ipynb no longer shows up in the list of files changed.
Not sure what happened last time, but I suspect user error on my part.

Copy link
Collaborator

@brycecr brycecr left a comment

Choose a reason for hiding this comment

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

some minor chances mentioned that I can do post submit

"\n",
"The 2025a release of Forest Data Partnership sustainable sourcing layers including palm, rubber, cocoa and coffee are used for commodity information. For details on how these layers were produced, see [the technical documentation on GitHub](https://github.com/google/forest-data-partnership/tree/main/models). In particular, see [the limitations](https://github.com/google/forest-data-partnership/tree/main/models#limitations). See also the [Forest Data Partnership publisher catalog](https://developers.google.com/earth-engine/datasets/publisher/forestdatapartnership) for dataset descriptions. See [this Earth Engine Code Editor script](https://goo.gle/fodapa-layers) for a demonstration of how choice of thresholds affects the mapped results.\n",
"\n",
"Note that users of commercial projects will need to request access to the Forest Data Partnership datasets with [this form](https://docs.google.com/forms/d/e/1FAIpQLSe7L3eh6t2JIPqEtAQwXwY7ZmW52v8W5vrIi4QN_XYgTNJZLw/viewform).\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

no longer the case, can remove this

"\n",
"Use the following `gcloud` command to deploy the Cloud Run function.\n",
"\n",
"*Note that the Compute Engine default service account is being used for authentication to Earth Engine. For commercial access to the sustainable sourcing layers, ensure that the service account is approved for commercial access ([request form](https://docs.google.com/forms/d/e/1FAIpQLSe7L3eh6t2JIPqEtAQwXwY7ZmW52v8W5vrIi4QN_XYgTNJZLw/viewform)).*"
Copy link
Collaborator

Choose a reason for hiding this comment

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

can remove here too

"cell_type": "code",
"source": [
"# Set this to the target audience (Cloud Run service URL)\n",
"audience = \"https://us-west1-vorgeo-training.cloudfunctions.net/suso_function\"\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we could make this clearer that you need to replace the url here

@brycecr brycecr merged commit f87ca87 into google:main Mar 13, 2026
2 checks passed
@tylere tylere deleted the cloud-function-folder branch March 13, 2026 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.

2 participants