fix(firestore-send-email): kit/extension parity – kit cannot deploy for databases in northamerica-south1 or europe-north2
Maintainers usually reply within 8 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- firebase, typescript
Research direction
Start with kits/firestore-send-email/src/region.ts and compare its region handling with the existing nam5/eur3 mappings; check kits/firestore-send-email/src/config.ts for how DATABASE_REGION is used. Update the README wording at the cited section to match the behavior. Done means both unsupported regions deploy through a supported Cloud Functions location while the Firestore trigger remains in the database region.
Written by the indexing model from the issue text.
Description
firestore-send-email kit/extension parity. Priority: medium. The kit can't be deployed for databases in northamerica-south1 or europe-north2.
Difference
- Extension: the function runs in the extension's location (us-central1 by default). Only the Eventarc trigger uses
DATABASE_REGION, so both regions in its option list work. - Kit: the function itself is placed in
DATABASE_REGION. Only the multi-regions are remapped; regional values are used as-is. Cloud Functions (2nd gen) isn't available innorthamerica-south1oreurope-north2, so the deploy fails. Both regions are still offered in the kit'sDATABASE_REGIONlist, and there is no workaround: a blank value puts the function in us-central1, but no longer next to the database.
Reproduced
- The Cloud Functions v2 locations list for the test project (40 entries) includes neither region.
- A kit instance deployed with
DATABASE_REGION=europe-north2fails:generateUploadUrl had HTTP Error: 403, Location europe-north2 is not found or access is unauthorized.
Code
- Extension: extension.yaml#L63 (trigger region only), options at #L121-L122 and #L153-L154
- Kit: region.ts#L19-L40, config.ts#L383-L395, README #L171-L180
Resolution
Map these two locations to the nearest region that offers Cloud Functions, as is already done for nam5/eur3. The Firestore trigger still fires in the database's own region. Also correct the README's "used as-is" wording.
- 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 78/100
firebase/extensions#3294 ·
Maintainers usually reply within 8 days
-
kits parity type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
firebase/extensions#3291 ·
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