Skip to content

Commit 5860b60

Browse files
authored
chore!(cloud_auth): Rename all entities with cloud_auth_ prefix (#302)
For all except `cedar` entities: - Rename tables to `cloud_auth_<table>` - Rename indexes to `cloud_auth_<index>_idx` - Rename triggers to `cloud_auth_<trigger>_trg` - Rename files to `cloud_auth_<file>.drift` This allows complete namespacing and consistency for Cloud Auth tables to avoid conflicts and provide easier discoverability for end-users.
1 parent fe48203 commit 5860b60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+8007
-2841
lines changed

apps/cli/fixtures/standalone/auth/goldens/ast.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/cli/fixtures/standalone/auth/goldens/ast.resolved.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/cli/fixtures/standalone/auth/goldens/celest.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/cli/fixtures/standalone/data/client/lib/src/functions.dart

Lines changed: 106 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -284,256 +284,256 @@ class CelestFunctionsTasks {
284284
.deserialize<JsonUnsupportedObjectError>(errorValue),
285285
stackTrace,
286286
);
287-
case 'dart.io.OSError':
287+
case 'drift.DriftWrappedException':
288288
Error.throwWithStackTrace(
289-
_$celest.Serializers.instance.deserialize<OSError>(errorValue),
289+
_$celest.Serializers.instance
290+
.deserialize<_$drift_exceptions.DriftWrappedException>(
291+
errorValue),
290292
stackTrace,
291293
);
292-
case 'dart.io.FileSystemException':
294+
case 'drift.CouldNotRollBackException':
293295
Error.throwWithStackTrace(
294296
_$celest.Serializers.instance
295-
.deserialize<FileSystemException>(errorValue),
297+
.deserialize<_$drift_exceptions.CouldNotRollBackException>(
298+
errorValue),
296299
stackTrace,
297300
);
298-
case 'dart.io.PathAccessException':
301+
case 'cedar.AuthorizationException':
299302
Error.throwWithStackTrace(
300-
_$celest.Serializers.instance
301-
.deserialize<PathAccessException>(errorValue),
303+
_$celest.Serializers.instance.deserialize<
304+
_$cedar_authorization_response
305+
.AuthorizationException>(errorValue),
302306
stackTrace,
303307
);
304-
case 'dart.io.PathExistsException':
308+
case 'cedar.EntityNotFoundException':
305309
Error.throwWithStackTrace(
306310
_$celest.Serializers.instance
307-
.deserialize<PathExistsException>(errorValue),
311+
.deserialize<_$cedar_errors.EntityNotFoundException>(errorValue),
308312
stackTrace,
309313
);
310-
case 'dart.io.PathNotFoundException':
314+
case 'cedar.UnspecifiedEntityException':
311315
Error.throwWithStackTrace(
312316
_$celest.Serializers.instance
313-
.deserialize<PathNotFoundException>(errorValue),
317+
.deserialize<_$cedar_errors.UnspecifiedEntityException>(
318+
errorValue),
314319
stackTrace,
315320
);
316-
case 'dart.io.SignalException':
321+
case 'cedar.TypeException':
317322
Error.throwWithStackTrace(
318323
_$celest.Serializers.instance
319-
.deserialize<SignalException>(errorValue),
324+
.deserialize<_$cedar_errors.TypeException>(errorValue),
320325
stackTrace,
321326
);
322-
case 'dart.io.ProcessException':
327+
case 'cedar.AttributeAccessException':
323328
Error.throwWithStackTrace(
324329
_$celest.Serializers.instance
325-
.deserialize<ProcessException>(errorValue),
330+
.deserialize<_$cedar_errors.AttributeAccessException>(errorValue),
326331
stackTrace,
327332
);
328-
case 'dart.io.TlsException':
333+
case 'cedar.OverflowException':
329334
Error.throwWithStackTrace(
330-
_$celest.Serializers.instance.deserialize<TlsException>(errorValue),
335+
_$celest.Serializers.instance
336+
.deserialize<_$cedar_errors.OverflowException>(errorValue),
331337
stackTrace,
332338
);
333-
case 'dart.io.HandshakeException':
339+
case 'cedar.ArityException':
334340
Error.throwWithStackTrace(
335341
_$celest.Serializers.instance
336-
.deserialize<HandshakeException>(errorValue),
342+
.deserialize<_$cedar_errors.ArityException>(errorValue),
337343
stackTrace,
338344
);
339-
case 'dart.io.CertificateException':
345+
case 'cedar.UnknownExtensionException':
340346
Error.throwWithStackTrace(
341347
_$celest.Serializers.instance
342-
.deserialize<CertificateException>(errorValue),
348+
.deserialize<_$cedar_errors.UnknownExtensionException>(
349+
errorValue),
343350
stackTrace,
344351
);
345-
case 'dart.io.StdoutException':
352+
case 'string_scanner.StringScannerException':
346353
Error.throwWithStackTrace(
347354
_$celest.Serializers.instance
348-
.deserialize<StdoutException>(errorValue),
355+
.deserialize<_$string_scanner_exception.StringScannerException>(
356+
errorValue),
349357
stackTrace,
350358
);
351-
case 'dart.io.StdinException':
359+
case 'source_span.SourceSpanException':
352360
Error.throwWithStackTrace(
353-
_$celest.Serializers.instance.deserialize<StdinException>(errorValue),
361+
_$celest.Serializers.instance
362+
.deserialize<_$source_span_span_exception.SourceSpanException>(
363+
errorValue),
354364
stackTrace,
355365
);
356-
case 'dart._http.HttpException':
366+
case 'source_span.SourceSpanFormatException':
357367
Error.throwWithStackTrace(
358-
_$celest.Serializers.instance.deserialize<HttpException>(errorValue),
368+
_$celest.Serializers.instance.deserialize<
369+
_$source_span_span_exception
370+
.SourceSpanFormatException>(errorValue),
359371
stackTrace,
360372
);
361-
case 'dart._http.WebSocketException':
373+
case 'built_value.BuiltValueNullFieldError':
362374
Error.throwWithStackTrace(
363375
_$celest.Serializers.instance
364-
.deserialize<WebSocketException>(errorValue),
376+
.deserialize<_$built_value_built_value.BuiltValueNullFieldError>(
377+
errorValue),
365378
stackTrace,
366379
);
367-
case 'dart.isolate.IsolateSpawnException':
380+
case 'built_value.BuiltValueMissingGenericsError':
368381
Error.throwWithStackTrace(
369-
_$celest.Serializers.instance
370-
.deserialize<IsolateSpawnException>(errorValue),
382+
_$celest.Serializers.instance.deserialize<
383+
_$built_value_built_value
384+
.BuiltValueMissingGenericsError>(errorValue),
371385
stackTrace,
372386
);
373-
case 'http.ClientException':
387+
case 'built_value.BuiltValueNestedFieldError':
374388
Error.throwWithStackTrace(
375-
_$celest.Serializers.instance
376-
.deserialize<_$http_exception.ClientException>(errorValue),
389+
_$celest.Serializers.instance.deserialize<
390+
_$built_value_built_value.BuiltValueNestedFieldError>(errorValue),
377391
stackTrace,
378392
);
379-
case 'shelf.HijackException':
393+
case 'corks_cedar.InvalidCorkException':
380394
Error.throwWithStackTrace(
381395
_$celest.Serializers.instance
382-
.deserialize<_$shelf_hijack_exception.HijackException>(
396+
.deserialize<_$corks_cedar_exceptions.InvalidCorkException>(
383397
errorValue),
384398
stackTrace,
385399
);
386-
case 'chunked_stream.MaximumSizeExceeded':
387-
Error.throwWithStackTrace(
388-
_$celest.Serializers.instance.deserialize<
389-
_$chunked_stream_read_chunked_stream
390-
.MaximumSizeExceeded>(errorValue),
391-
stackTrace,
392-
);
393-
case 'cedar.AuthorizationException':
400+
case 'corks_cedar.MissingSignatureError':
394401
Error.throwWithStackTrace(
395-
_$celest.Serializers.instance.deserialize<
396-
_$cedar_authorization_response
397-
.AuthorizationException>(errorValue),
402+
_$celest.Serializers.instance
403+
.deserialize<_$corks_cedar_exceptions.MissingSignatureError>(
404+
errorValue),
398405
stackTrace,
399406
);
400-
case 'cedar.EntityNotFoundException':
407+
case 'dart.io.OSError':
401408
Error.throwWithStackTrace(
402-
_$celest.Serializers.instance
403-
.deserialize<_$cedar_errors.EntityNotFoundException>(errorValue),
409+
_$celest.Serializers.instance.deserialize<OSError>(errorValue),
404410
stackTrace,
405411
);
406-
case 'cedar.UnspecifiedEntityException':
412+
case 'dart.io.FileSystemException':
407413
Error.throwWithStackTrace(
408414
_$celest.Serializers.instance
409-
.deserialize<_$cedar_errors.UnspecifiedEntityException>(
410-
errorValue),
415+
.deserialize<FileSystemException>(errorValue),
411416
stackTrace,
412417
);
413-
case 'cedar.TypeException':
418+
case 'dart.io.PathAccessException':
414419
Error.throwWithStackTrace(
415420
_$celest.Serializers.instance
416-
.deserialize<_$cedar_errors.TypeException>(errorValue),
421+
.deserialize<PathAccessException>(errorValue),
417422
stackTrace,
418423
);
419-
case 'cedar.AttributeAccessException':
424+
case 'dart.io.PathExistsException':
420425
Error.throwWithStackTrace(
421426
_$celest.Serializers.instance
422-
.deserialize<_$cedar_errors.AttributeAccessException>(errorValue),
427+
.deserialize<PathExistsException>(errorValue),
423428
stackTrace,
424429
);
425-
case 'cedar.OverflowException':
430+
case 'dart.io.PathNotFoundException':
426431
Error.throwWithStackTrace(
427432
_$celest.Serializers.instance
428-
.deserialize<_$cedar_errors.OverflowException>(errorValue),
433+
.deserialize<PathNotFoundException>(errorValue),
429434
stackTrace,
430435
);
431-
case 'cedar.ArityException':
436+
case 'dart.io.SignalException':
432437
Error.throwWithStackTrace(
433438
_$celest.Serializers.instance
434-
.deserialize<_$cedar_errors.ArityException>(errorValue),
439+
.deserialize<SignalException>(errorValue),
435440
stackTrace,
436441
);
437-
case 'cedar.UnknownExtensionException':
442+
case 'dart.io.ProcessException':
438443
Error.throwWithStackTrace(
439444
_$celest.Serializers.instance
440-
.deserialize<_$cedar_errors.UnknownExtensionException>(
441-
errorValue),
445+
.deserialize<ProcessException>(errorValue),
442446
stackTrace,
443447
);
444-
case 'mustache_template.TemplateException':
448+
case 'dart.io.TlsException':
445449
Error.throwWithStackTrace(
446-
_$celest.Serializers.instance.deserialize<
447-
_$mustache_template_template_exception
448-
.TemplateException>(errorValue),
450+
_$celest.Serializers.instance.deserialize<TlsException>(errorValue),
449451
stackTrace,
450452
);
451-
case 'corks_cedar.InvalidCorkException':
453+
case 'dart.io.HandshakeException':
452454
Error.throwWithStackTrace(
453455
_$celest.Serializers.instance
454-
.deserialize<_$corks_cedar_exceptions.InvalidCorkException>(
455-
errorValue),
456+
.deserialize<HandshakeException>(errorValue),
456457
stackTrace,
457458
);
458-
case 'corks_cedar.MissingSignatureError':
459+
case 'dart.io.CertificateException':
459460
Error.throwWithStackTrace(
460461
_$celest.Serializers.instance
461-
.deserialize<_$corks_cedar_exceptions.MissingSignatureError>(
462-
errorValue),
462+
.deserialize<CertificateException>(errorValue),
463463
stackTrace,
464464
);
465-
case 'drift.DriftWrappedException':
465+
case 'dart.io.StdoutException':
466466
Error.throwWithStackTrace(
467467
_$celest.Serializers.instance
468-
.deserialize<_$drift_exceptions.DriftWrappedException>(
469-
errorValue),
468+
.deserialize<StdoutException>(errorValue),
470469
stackTrace,
471470
);
472-
case 'drift.CouldNotRollBackException':
471+
case 'dart.io.StdinException':
473472
Error.throwWithStackTrace(
474-
_$celest.Serializers.instance
475-
.deserialize<_$drift_exceptions.CouldNotRollBackException>(
476-
errorValue),
473+
_$celest.Serializers.instance.deserialize<StdinException>(errorValue),
477474
stackTrace,
478475
);
479-
case 'drift.CancellationException':
476+
case 'dart._http.HttpException':
480477
Error.throwWithStackTrace(
481-
_$celest.Serializers.instance
482-
.deserialize<_$drift_cancellation_zone.CancellationException>(
483-
errorValue),
478+
_$celest.Serializers.instance.deserialize<HttpException>(errorValue),
484479
stackTrace,
485480
);
486-
case 'sqlite3.SqliteException':
481+
case 'dart._http.WebSocketException':
487482
Error.throwWithStackTrace(
488483
_$celest.Serializers.instance
489-
.deserialize<_$sqlite3_exception.SqliteException>(errorValue),
484+
.deserialize<WebSocketException>(errorValue),
490485
stackTrace,
491486
);
492-
case 'sqlite3.VfsException':
487+
case 'dart.isolate.IsolateSpawnException':
493488
Error.throwWithStackTrace(
494489
_$celest.Serializers.instance
495-
.deserialize<_$sqlite3_vfs.VfsException>(errorValue),
490+
.deserialize<IsolateSpawnException>(errorValue),
496491
stackTrace,
497492
);
498-
case 'string_scanner.StringScannerException':
493+
case 'http.ClientException':
499494
Error.throwWithStackTrace(
500495
_$celest.Serializers.instance
501-
.deserialize<_$string_scanner_exception.StringScannerException>(
502-
errorValue),
496+
.deserialize<_$http_exception.ClientException>(errorValue),
503497
stackTrace,
504498
);
505-
case 'source_span.SourceSpanException':
499+
case 'shelf.HijackException':
506500
Error.throwWithStackTrace(
507501
_$celest.Serializers.instance
508-
.deserialize<_$source_span_span_exception.SourceSpanException>(
502+
.deserialize<_$shelf_hijack_exception.HijackException>(
509503
errorValue),
510504
stackTrace,
511505
);
512-
case 'source_span.SourceSpanFormatException':
506+
case 'mustache_template.TemplateException':
513507
Error.throwWithStackTrace(
514508
_$celest.Serializers.instance.deserialize<
515-
_$source_span_span_exception
516-
.SourceSpanFormatException>(errorValue),
509+
_$mustache_template_template_exception
510+
.TemplateException>(errorValue),
517511
stackTrace,
518512
);
519-
case 'built_value.BuiltValueNullFieldError':
513+
case 'drift.CancellationException':
520514
Error.throwWithStackTrace(
521515
_$celest.Serializers.instance
522-
.deserialize<_$built_value_built_value.BuiltValueNullFieldError>(
516+
.deserialize<_$drift_cancellation_zone.CancellationException>(
523517
errorValue),
524518
stackTrace,
525519
);
526-
case 'built_value.BuiltValueMissingGenericsError':
520+
case 'sqlite3.SqliteException':
527521
Error.throwWithStackTrace(
528-
_$celest.Serializers.instance.deserialize<
529-
_$built_value_built_value
530-
.BuiltValueMissingGenericsError>(errorValue),
522+
_$celest.Serializers.instance
523+
.deserialize<_$sqlite3_exception.SqliteException>(errorValue),
531524
stackTrace,
532525
);
533-
case 'built_value.BuiltValueNestedFieldError':
526+
case 'sqlite3.VfsException':
527+
Error.throwWithStackTrace(
528+
_$celest.Serializers.instance
529+
.deserialize<_$sqlite3_vfs.VfsException>(errorValue),
530+
stackTrace,
531+
);
532+
case 'chunked_stream.MaximumSizeExceeded':
534533
Error.throwWithStackTrace(
535534
_$celest.Serializers.instance.deserialize<
536-
_$built_value_built_value.BuiltValueNestedFieldError>(errorValue),
535+
_$chunked_stream_read_chunked_stream
536+
.MaximumSizeExceeded>(errorValue),
537537
stackTrace,
538538
);
539539
case 'petitparser.ParserException':

0 commit comments

Comments
 (0)