Skip to content

Update Firebase sample: .NET 10, current bucket domain, cleanups - #2120

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/90192-dotnet-firebase
Open

Update Firebase sample: .NET 10, current bucket domain, cleanups#2120
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/90192-dotnet-firebase

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Refresh of dotnet-client-libraries/Firebase, the sample for Introduction to Firebase in .NET.

  • Retarget to net10.0 (app and tests) with current packages: Google.Cloud.Firestore 4.4.0, Google.Cloud.Storage.V1 4.15.0, FirebaseAdmin 3.6.0, FirebaseAuthentication.net 4.1.0, Microsoft.AspNetCore.Authentication.JwtBearer / Mvc.Testing 10.0.11, and current test tooling.
  • Bucket domain fix. Firebase's Cloud Storage setup guide gives the current default bucket name format as PROJECT_ID.firebasestorage.app; PROJECT_ID.appspot.com applies only to buckets created before September 2024. BucketName is updated accordingly, so a reader who copies it gets a bucket that exists.
  • Drop the redundant [Required] on ShoeDto.Price. On a non-nullable decimal the model binder cannot distinguish "absent" from zero, so the attribute implies a validation guarantee it does not provide.
  • Replace the bare <label> elements in the shoe list with plain table cells. A <label> with no for and no associated control is meaningless markup and degrades screen-reader output.

Build and tests on net10.0: dotnet build succeeds with 0 errors; dotnet test passes 5/5.

- Retarget Firebase and Tests to net10.0 and bump packages
  (Google.Cloud.Firestore 4.4.0, Google.Cloud.Storage.V1 4.15.0,
  FirebaseAdmin 3.6.0, FirebaseAuthentication.net 4.1.0,
  JwtBearer/Mvc.Testing 10.0.11, test tooling to current).
- BucketName now uses the current default Cloud Storage domain
  PROJECT_ID.firebasestorage.app; appspot.com only applies to
  buckets created before September 2024.
- Drop the redundant [Required] from ShoeDto.Price: on a non-nullable
  decimal the model binder cannot tell "absent" from zero, so the
  attribute implies a guarantee it does not provide.
- Replace the bare <label> elements in the shoe list with plain table
  cells; a label with no for attribute and no associated control is
  meaningless markup and degrades screen-reader output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant