Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firestore-sentiment-analysis] Reconfiguring collection path causes Error deploying extension #18

Open
agau4779 opened this issue Jan 14, 2021 · 4 comments
Assignees
Labels

Comments

@agau4779
Copy link

agau4779 commented Jan 14, 2021

Expected Behavior

It is possible to create a Firestore collection with spaces and punctuation.

I would expect reconfiguring COLLECTION_PATH for firestore-stentiment-analysis to either support spaces and punctuation as firestore does OR the reconfigure action fails the regex validation.

Actual Behavior

Reconfiguring firestore-sentiment-analysis doesn't stop me from configuring COLLECTION_PATH with spaces and punctuation, but it results in "error deploying Extension" with the following error output:

Error saving configuration:

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-sentiment-analysis/resources/fssentiment: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"500","ResourceErrorMessage":"Failed to configure trigger providers/cloud.firestore/eventTypes/[email protected] (__gcf__.europe-west2.ext-firestore-sentiment-analysis-fssentiment)"}

Steps to Reproduce the Problem

Install firestore-sentiment-analysis, setting the collection path to something including spaces and punctuation. In my case, this is a collection!.

Specifications

  • Extension name: firestore-sentiment-analysis
  • Version: 0.0.1
@jhuleatt
Copy link
Collaborator

@PaulTR can you please take a look at this? Here's an example of collection validation we use in the other extensions repo to avoid deployment issues.

Also fyi @kevinthecheung we may want to document (in the Extensions docs) the limitations of the types of Firestore paths that can be specified

@PaulTR
Copy link
Collaborator

PaulTR commented Jan 19, 2021

👍 Will grab this as the same time as the other issue.

@PaulTR
Copy link
Collaborator

PaulTR commented Jan 20, 2021

Looks like that's actually the validation I'm already using. We should check to see if this issue exists on other Firestore extensions.

@PaulTR
Copy link
Collaborator

PaulTR commented Jan 20, 2021

Confirmed the error exists across the board by trying to install the translation extension using the collection path 'this is a collection!'

@cabljac cabljac self-assigned this Jun 13, 2023
@pr-Mais pr-Mais added the bug Something isn't working label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants