firebase / firebase/extensions

Add --force option to @firebaseextensions/fs-bq-schema-views

Open
#882 4 comments 6 reactions 0 assignees View on GitHub
extension: firestore-bigquery-export type: feature request
Dominant language
TypeScript
Stars
979
Forks
433
Avg merge
1d 22h
Merged PRs (30d)
127

Description

This feature request is for extension: **firestore-bigquery-export**

### What feature would you like to see?

Adding a `--force` flag to the `@firebaseextensions/fs-bq-schema-views` would simplify matching the deployed views with version controlled configuration. Changes in the schema can lead the script to fail if the changes are in some way incompatible.
With the `--force` flag the view should always be created or replaced as with the SQL statement `CREATE OR REPLACE VIEW`.

### How would you use it?

I generate schema files from typescript interfaces that represent my current firestore datamodel. Upon changes I want to recreate the schema files and rerun `@firebaseextensions/fs-bq-schema-views` to update the views to match my latest configuration. Dropping and recreating the views should be no problem, as these are just views and the real data is kept in the changelog tables.

Currently the views have to be deleted manually, which is cumbersome and error prone.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.