Issue:
Existing code that used to work now shows an error.
Whenver I try to run Query in Raw mode, using an Firebase resource, I see the following error:
message:"ReferenceError: DEFAULT_FIREBASE_DATABASE_ID is not defined"
Steps I've taken to troubleshoot:
Query in GUI mode does work, creating a new Firebase resource with a new key didn't help, same error for existing app, and for a new app.
Additional info: (Cloud or Self-hosted, Screenshots)
This still seems to be an issue when using Firestore query in raw mode. The connection passes the test but running the query suddenly results in "ReferenceError: DEFAULT_FIREBASE_DATABASE_ID is not defined"
Hey everyone! Do you mind sharing the resource configuration for these queries? We recently added the ability to select non-default database IDs and want to see if this behavior is connected to that release.
Thanks for that context everyone! Looks like there is an issue with Firestore queries in raw mode using the default database name. I've notified our engineering team of this behavior and they are looking into a potential fix now.
In the meantime there is a feature flag that I could flip on that would potentially allow you to workaround this issue by declaring the database ID manually. Let me know if you would like to explore that route while we wait for the more permanent fix!
Any chance this feature flag could make things worse? And would we need to make a change on each query? It doesn't seem too viable. I'd rather wait for the permanent fix unless you think that can not be done today still.
Don't have an exact timeline but we have already identified a potential fix and are testing it locally right now.
Totally understand if you are wary of fiddling with things. The feature flag would just allow you to specify the database name in the resource settings, you would then set it to '(default)' to mimic the DEFAULT_FIREBASE_DATABASE_ID variable that is not being parsed correctly.
I'm curious though. If you don't mind, why wasn't it possible to simply revert the change that caused the issue in the first place, at least as the temporary fix?
And, more importantly, if the the feature flag doesn't work will it be as smooth flipping it off?