Commit 1d45035
Fdc brownfield setup (#8150)
* Helper functions and basic setup for dataconnect:sql:setup
* Refactor setupIamUsers for better composability
* FDC MVP brownfield and greenfield to brownfield schema setup
* Add required logic inside schemaMigration for handling brownfield
* Cleanup and fix bugs in brownfield setup
* Use firebasesuperuser instead of cloudsqlsuper user for brownfield migration success
* Add default permissions for brownfield
* Fix lint/format
* Refactor to allow setup reruns
* Fix small things and address comments
* Fix bug in role grants
* Add logging that database setup completed
* Make grant command not go through setup if roles can be granted in brownfield
* bug fix from changing the getting schema owner command
* Simplify getSchemaMetaData in permissions.ts
* Fix log statement
* Split permissions.ts into front facing permissions_setup.ts and keep backend permissions there
* No need to ask user if they want to rerun greenfield setup
* Make setupSQLPermissions return a setup status instead of a boolean
* Change an if statment to switch statement
* Keep upserting new user in grant command
* Bump FDC local toolkit to v1.8.0. (#8210)
* Bump FDC local toolkit to v1.8.0.
* Update changelog.
* First pass at auto generating sdk configs (#7833)
* First pass at auto generating sdk configs
* Fixed formatting issues
* Removed extra command
* Deleted unnecessary files
* Fixed more linting'
* Removed test assertion
* Fixed formatting
* Updated erros
* Misc
* Updated platforms list
* Undid last changes
* Addressed comments
* Fixed client test
* Driveby type fixing
* missed a spot
* Fixed test
* Fix issue where if a user passes in an empty 'out' parameter, the CLI crashes
* Added intelligent sensing where app should be
* Fixed formatting
* Fixed lint
* Fixed app dir
* Misc
* Wrote tests
* Reverted apps sdkconfig changes
* Fixed formatting
* Small changes
* Revert shrinkwrap changes
* Updated test:management script
* Fixed apps-sdkconfig boolean check
* Fixed more boolean
* Fixed formatting
* Added changelog
* Added new options
* Removed unused var
* Added experimental flag
* Moved apps:init behind a flag
* Added apps:init command
* Removed unnecessary experiments
* Addressed comments
---------
Co-authored-by: Joe Hanley <[email protected]>
* 13.31.0
* [firebase-release] Removed change log and reset repo after 13.31.0 release
* FDC Emulator Update v1.8.1(#8216)
* 13.31.1
* [firebase-release] Removed change log and reset repo after 13.31.1 release
* Update formatting of connector evolution and insecure operation issues. (#8204)
* Format INTERACTIVE_ACK issues as table as well and add extra "type" column to table.
* Update warning and prompt wording to reflect insecure operations as well as connector evolution issues.
* Wording.
* Sort issues in table by category and some formatting fixes.
* Use correct import path for data connect emulator (#8220)
* Use correct import path for data connect emulator
* Actually fix it this time
* fix the thing i broke and format
* Update src/emulator/dataconnect/pgliteServer.ts
Co-authored-by: Maneesh Tewani <[email protected]>
---------
Co-authored-by: Maneesh Tewani <[email protected]>
* Don't surface insecure operations errors in VSCode. (#8215)
* Don't surface connector evolution or insecure operation issues in VSCode.'
* Fix
* Filter by "INSECURE" substring rather than warningLevel.
* Add path information to formatted GraphqlError. (#8228)
* App Hosting Emulator bug - apphosting emulator info is not complete when env vars for emulators are set (#8231)
* fix bug where apphosting emulator info is not complete when env vars for other emulators are set
* add proper fix and test
* fix
* remove async from non-async test func
* address comments
* Bump FDC local toolkit to v1.8.2. (#8232)
* Bump FDC local toolkit to v1.8.2.
* Update changelog.
* 13.31.2
* [firebase-release] Removed change log and reset repo after 13.31.2 release
* fix: #8168 - enforce webframeworks only when needed (#8169)
* fix: #8168 - enforce webframeworks only when needed
In deployments where `--only hosting:boo` is used, enforce webframeworks
enablement only when the target actually uses webframeworks.
* remove console
* add changelog, add tests
* Add matchesHostingTarget to improve readability
---------
Co-authored-by: Chalo Salvador <[email protected]>
* Added env var to magically import data connect service from console (#8237)
* Added env var to magically import data connect service from console
* actually check location too
* formats
* Formats
* Add initial delay when loading python functions (#8239)
* Improve robustness of function discovery for python
Anecdotally, python function discovery is flakey. We propose 2 change in
this PR:
1. For python discovery, add a small initial delay for python's admin
server to boot.
2. Add a request timeout to retry call to retrieve trigger information.
Previously, the default timeout would've been set to OS-level TCP
timeout, which in my laptop was between 20~30s.
* Add changelog.
* Remove per-req timeout to accomodate loading large/slow main.py.
* Update changelog.
* Revert timeout bump.
* Update vscode to 0.13.1 (#8236)
* update vscode to 0.13.1
* remove changelog line
* Propagate overrides (#8253)
* Apply ajv and ajv-formats overrides to shrinkwrap
* Apply whatwg-url override to shrinkwrap
* npm i to stabilize shrinkwrap
---------
Co-authored-by: Joe Hanley <[email protected]>
* Print warning about --location removal from apphosting commands. (#8229)
`--location` will be removed from apphosting commands in the next major CLI release. Before then, the CLI will print a warning about this removal whenever `--location` is used.
* Fix issue where apps:init breaks on app creation (#8258)
* Rename MetaData to Metadata
* Change setup to set up in firebase error
* Improve logger message
* Fix bugs in brownfield setup status checks
* fix lint issues
---------
Co-authored-by: Rosalyn Tan <[email protected]>
Co-authored-by: Maneesh Tewani <[email protected]>
Co-authored-by: Joe Hanley <[email protected]>
Co-authored-by: Google Open Source Bot <[email protected]>
Co-authored-by: Mathusan Selvarajah <[email protected]>
Co-authored-by: Philip Su <[email protected]>
Co-authored-by: Chalo Salvador <[email protected]>
Co-authored-by: Daniel Lee <[email protected]>
Co-authored-by: Harold Shen <[email protected]>
Co-authored-by: Sarah Clark <[email protected]>
Co-authored-by: annajowang <[email protected]>1 parent 34674ac commit 1d45035
File tree
9 files changed
+567
-186
lines changed- src
- commands
- dataconnect
- gcp/cloudsql
9 files changed
+567
-186
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | | - | |
240 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
241 | 261 | | |
242 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
243 | 270 | | |
244 | 271 | | |
245 | 272 | | |
| |||
351 | 378 | | |
352 | 379 | | |
353 | 380 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
358 | 396 | | |
359 | 397 | | |
360 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
19 | 41 | | |
20 | 42 | | |
21 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
181 | | - | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 202 | | |
216 | 203 | | |
217 | 204 | | |
| |||
0 commit comments