fix(firestore-bigquery-export): kit/extension parity - DATABASE_REGION offers europe-north2, northamerica-south1 and asia-southeast3, which can't deploy
Maintainers usually reply within 8 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- firebase, typescript
Research direction
Start with the kit's kits/firestore-bigquery-export/src/config.ts, especially the DATABASE_REGION choices at lines 158, 172, and 181. Compare those choices with the Cloud Functions regions available to deploy, then check how #3283 handles rejecting unsupported options. Done means the three regions are removed and rejected when set in .env; verify the affected configuration behavior.
Written by the indexing model from the issue text.
Description
firestore-bigquery-export kit/extension parity. Three DATABASE_REGION choices can never deploy.
Difference
The kit deploys its functions to the region set in DATABASE_REGION. It offers europe-north2, northamerica-south1 and asia-southeast3, but Cloud Functions has no location in any of them: gcloud functions regions list does not include them, while gcloud run regions list does. The extension offers the first two, but it only uses DATABASE_REGION for the trigger region and deploys the function to LOCATION. This is the same problem as #3268 in storage-resize-images.
Reproduced
With DATABASE_REGION=europe-north2 in .env, firebase deploy --only functions (firebase-tools 15.32.0, with the kit's engines.node changed from >=22 to 22, which this CLI version requires) fails before any function is created:
Error: Request to https://cloudfunctions.googleapis.com/v2/projects/<project>/locations/europe-north2/functions:generateUploadUrl had HTTP Error: 403, Location europe-north2 is not found or access is unauthorized.
northamerica-south1 and asia-southeast3 fail with the same error. With europe-west1, the deploy gets past this step. The project's Firestore database was in us-central1, which does not affect the result, since the deploy fails before any trigger is set up.
Code
- Kit: config.ts#L158, #L172, #L181.
Resolution
Remove the three options and reject them when set in .env, as #3283 does for storage-resize-images. Mapping them to a nearby region may also work if a Firestore trigger can reach a function in another region, as the extension's does, but that has not been tested for the kit.
- Dominant language
- TypeScript
- Stars
- 979
- Forks
- 434
- Avg merge
- 10d 8h
- Merged PRs (30d)
- 28
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/extensions
-
kits parity type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
firebase/extensions#3303 ·
Maintainers usually reply within 8 days
-
kits parity type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/extensions#3301 ·
Maintainers usually reply within 8 days
-
kits parity type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
firebase/extensions#3296 ·
Maintainers usually reply within 8 days
-
kits parity type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/extensions#3294 ·
Maintainers usually reply within 8 days
-
kits type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
firebase/extensions#3270 ·
Maintainers usually reply within 8 days
All issues in firebase/extensions
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#865 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
outline/outline#14638 · 1 comment ·
Maintainers usually reply within 1 day
-
wayfinder:grilling
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
patricktree/cup#484 ·
-
bot:ai-assisted component:platform-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
midnightntwrk/platform-js#69 ·
Maintainers usually reply within 1 day