r/GoogleAssistantDev • u/goldzulu • Aug 29 '19
Continuous development and testing best practice for Dialogflow and Firebase Node.js backend
UPDATE: For those of you interested, I've managed to tackle this by moving to Google App Engine node.js environment. It's a bit of a tweak and setup but i think in the long run it will be easier. App engine handles versioning very well. Every time you deploy you get a version stamp on an internal url so i can easily deploy with that version stamped url! I ended up then needing to only use one google action project for both test and production!. A good read on this https://medium.com/weareservian/migrating-dialogflow-webhook-from-cloud-function-to-app-engine-6835a3dd52c1 by Scott Shellien-Walker on Medium. Also seems my issue has been posted before in Stack Overflow here https://stackoverflow.com/questions/51459430/how-do-i-synchronize-aog-releases-to-versions-of-my-fulfillment-on-firebase-func by wolak
Hi,
I am new to Google Actions and currently just submitted an action that is under review.
The action I am developing currently uses DialogFlow and Firebase node.js back end. I want the development work and testing to continue rather than wait for the review to be completed. As the development is moving quite quickly, the cycle of submission and testing will be quite frequent.
What are your thoughts on making sure that I am not compromising production DialogFlow and Firebase functions backend?
i.e. Do i create two action, one always for production and another for test? like Action Name and Action Name Testing?
Or is there any other way like I've read somewhere that one the app is in production, the Dialog flow updates will not affect production, if that's the case, how do I "See" a production version of DialogFlow?
Thanks in advance for your thoughts!
1
u/cgilhoi Aug 29 '19
I would create two actions as you have suggested. Technically, the changes you make in Dialogflow should not impact the production version of the app but as far as I know there isn't a way to create a production and test version of the same action (versions and environments is still in beta).