File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
- Fix Functions MCP log tool to normalize sort order and surface Cloud Logging error details (#9247 )
2
- - ` firebase init ` support a way to skip project setup and login via ` --project demo-no-project ` (#9251 )
2
+ - ` firebase init ` only requires ` firebase login ` when a valid project is passed. It accepts demo projects without login. (#9251 )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export enum DATA_CONNECT_EVENT_NAME {
27
27
MOVE_TO_CONNECTOR = "move_to_connector" ,
28
28
START_EMULATOR_FROM_EXECUTION = "start_emulator_from_execution" ,
29
29
REFUSE_START_EMULATOR_FROM_EXECUTION = "refuse_start_emulator_from_execution" ,
30
+ INIT = "init" ,
30
31
INIT_SDK = "init_sdk" ,
31
32
INIT_SDK_CLI = "init_sdk_cli" ,
32
33
INIT_SDK_CODELENSE = "init_sdk_codelense" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { upsertFile } from "../data-connect/file-utils";
14
14
import { registerWebhooks } from "./webhook" ;
15
15
import { createE2eMockable } from "../utils/test_hooks" ;
16
16
import { runTerminalTask } from "../data-connect/terminal" ;
17
- import { AnalyticsLogger } from "../analytics" ;
17
+ import { AnalyticsLogger , DATA_CONNECT_EVENT_NAME } from "../analytics" ;
18
18
import { EmulatorHub } from "../../../src/emulator/hub" ;
19
19
20
20
export async function registerCore (
@@ -67,6 +67,7 @@ export async function registerCore(
67
67
) ;
68
68
return ;
69
69
}
70
+ analyticsLogger . logger . logUsage ( DATA_CONNECT_EVENT_NAME . INIT ) ;
70
71
const projectId = currentProjectId . value || EmulatorHub . MISSING_PROJECT_PLACEHOLDER ;
71
72
const initCommand = `${ settings . firebasePath } init dataconnect --project ${ projectId } ` ;
72
73
initSpy . call ( "firebase init" , initCommand , { focus : true } ) ;
You can’t perform that action at this time.
0 commit comments