You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The following functions are unsafely changing event types: "+
140
+
clc.bold(
141
+
unsafeUpdates
142
+
.map((eu)=>eu.endpoint)
143
+
.sort(backend.compareFunctions)
144
+
.map(getFunctionLabel)
145
+
.join(", "),
146
+
)+
147
+
". "+
148
+
"While automatic migration is allowed for these functions, updating the underlying event type may result in data loss. "+
149
+
"To avoid this, consider the best practices outlined in the migration guide: https://firebase.google.com/docs/functions/manage-functions?gen=2nd#modify-trigger";
"Skipping updates for functions that may be unsafe to update. To update these functions anyway, deploy again in interactive mode or use the --force option.",
159
+
);
160
+
returnsafeUpdates;
161
+
}
162
+
163
+
for(consteuofunsafeUpdates){
164
+
constshouldUpdate=awaitpromptOnce({
165
+
type: "confirm",
166
+
name: "confirm",
167
+
default: false,
168
+
message: `[${getFunctionLabel(
169
+
eu.endpoint,
170
+
)}] Would you like to proceed with the unsafe migration?`,
171
+
});
172
+
if(shouldUpdate){
173
+
safeUpdates.push(eu);
174
+
}
175
+
}
176
+
returnsafeUpdates;
177
+
}
178
+
122
179
/**
123
180
* Checks whether a deploy will increase the min instance idle time bill of
0 commit comments