Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vectorvalue docs #8453

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix vectorvalue docs #8453

wants to merge 3 commits into from

Conversation

dlarocque
Copy link
Contributor

@dlarocque dlarocque commented Aug 22, 2024

In response to comments in cl/665934159

Copy link

changeset-bot bot commented Aug 22, 2024

⚠️ No Changeset found

Latest commit: d39a66c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 22, 2024

Size Report 1

Affected Products

  • @firebase/app

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser18.3 kB18.4 kB+68 B (+0.4%)
    esm524.0 kB24.1 kB+70 B (+0.3%)
    main25.1 kB25.2 kB+70 B (+0.3%)
    module18.3 kB18.4 kB+68 B (+0.4%)
  • @firebase/auth

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser182 kB182 kB+81 B (+0.0%)
    cordova209 kB209 kB+85 B (+0.0%)
    esm5236 kB236 kB+85 B (+0.0%)
    main179 kB179 kB+71 B (+0.0%)
    module182 kB182 kB+81 B (+0.0%)
    react-native199 kB199 kB+71 B (+0.0%)
  • @firebase/auth-cordova

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser209 kB209 kB+85 B (+0.0%)
    module209 kB209 kB+85 B (+0.0%)
  • @firebase/auth-web-extension

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser137 kB137 kB+81 B (+0.1%)
    main152 kB152 kB+69 B (+0.0%)
    module137 kB137 kB+81 B (+0.1%)
  • @firebase/auth/internal

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser193 kB193 kB+81 B (+0.0%)
    esm5249 kB249 kB+85 B (+0.0%)
    main214 kB214 kB+73 B (+0.0%)
    module193 kB193 kB+81 B (+0.0%)
  • @firebase/data-connect

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser?19.8 kB? (?)
    esm5?22.5 kB? (?)
    main?24.3 kB? (?)
    module?19.8 kB? (?)
  • @firebase/firestore

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser381 kB381 kB-329 B (-0.1%)
    esm5366 kB366 kB+107 B (+0.0%)
    main587 kB587 kB+357 B (+0.1%)
    module381 kB381 kB-329 B (-0.1%)
    react-native382 kB381 kB-328 B (-0.1%)
  • @firebase/firestore-lite

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser111 kB111 kB+179 B (+0.2%)
    esm5108 kB108 kB+399 B (+0.4%)
    main153 kB153 kB+193 B (+0.1%)
    module111 kB111 kB+179 B (+0.2%)
    react-native111 kB111 kB+179 B (+0.2%)
  • @firebase/messaging

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser21.3 kB21.3 kB-84 B (-0.4%)
    esm526.8 kB26.7 kB-84 B (-0.3%)
    main27.4 kB27.4 kB-84 B (-0.3%)
    module21.3 kB21.3 kB-84 B (-0.4%)
  • @firebase/messaging-sw

    TypeBase (c6a8851)Merge (3a85abd)Diff
    main30.4 kB30.4 kB-59 B (-0.2%)
    module23.6 kB23.5 kB-59 B (-0.3%)
  • @firebase/util

    TypeBase (c6a8851)Merge (3a85abd)Diff
    browser23.2 kB23.4 kB+131 B (+0.6%)
    esm524.9 kB25.0 kB+131 B (+0.5%)
    main30.7 kB30.9 kB+233 B (+0.8%)
    module23.2 kB23.4 kB+131 B (+0.6%)
  • bundle

    46 size changes

    TypeBase (c6a8851)Merge (3a85abd)Diff
    analytics (logEvent)44.5 kB44.6 kB+60 B (+0.1%)
    app-check (CustomProvider)37.4 kB37.5 kB+60 B (+0.2%)
    app-check (ReCaptchaEnterpriseProvider)39.9 kB40.0 kB+60 B (+0.2%)
    app-check (ReCaptchaV3Provider)39.9 kB40.0 kB+60 B (+0.2%)
    auth (Anonymous)76.1 kB76.3 kB+179 B (+0.2%)
    auth (EmailAndPassword)84.4 kB84.6 kB+179 B (+0.2%)
    auth (GoogleFBTwitterGitHubPopup)103 kB103 kB+178 B (+0.2%)
    auth (GooglePopup)100 kB100 kB+179 B (+0.2%)
    auth (GoogleRedirect)100 kB100 kB+179 B (+0.2%)
    auth (Phone)86.8 kB86.9 kB+179 B (+0.2%)
    database (Append to a list of data)149 kB149 kB+60 B (+0.0%)
    database (Filtering data)148 kB148 kB+60 B (+0.0%)
    database (Listen for child events)164 kB164 kB+60 B (+0.0%)
    database (Listen for value events + Detach listeners)164 kB164 kB+60 B (+0.0%)
    database (Listen for value events)164 kB164 kB+60 B (+0.0%)
    database (Read data once)164 kB164 kB+60 B (+0.0%)
    database (Save data as transactions)166 kB166 kB+60 B (+0.0%)
    database (Sort data)150 kB150 kB+60 B (+0.0%)
    database (Write data)148 kB148 kB+60 B (+0.0%)
    firestore (CSI Auto Indexing Disable and Delete)270 kB270 kB-596 B (-0.2%)
    firestore (CSI Auto Indexing Enable)270 kB270 kB-596 B (-0.2%)
    firestore (Persistence)305 kB303 kB-1.76 kB (-0.6%)
    firestore (Query Cursors)242 kB242 kB+322 B (+0.1%)
    firestore (Query)240 kB240 kB+322 B (+0.1%)
    firestore (Read data once)228 kB228 kB+322 B (+0.1%)
    firestore (Read Write w Persistence)325 kB325 kB+29 B (+0.0%)
    firestore (Realtime updates)230 kB230 kB+315 B (+0.1%)
    firestore (Transaction)207 kB207 kB+315 B (+0.2%)
    firestore (Write data)207 kB207 kB+315 B (+0.2%)
    firestore-lite (Query Cursors)91.3 kB91.5 kB+236 B (+0.3%)
    firestore-lite (Query)87.4 kB87.6 kB+236 B (+0.3%)
    firestore-lite (Read data once)62.9 kB63.1 kB+236 B (+0.4%)
    firestore-lite (Transaction)88.1 kB88.4 kB+239 B (+0.3%)
    firestore-lite (Write data)72.5 kB72.7 kB+236 B (+0.3%)
    functions (call)32.0 kB32.0 kB+60 B (+0.2%)
    messaging (send + receive)46.9 kB46.9 kB-13 B (-0.0%)
    performance (trace)51.8 kB51.8 kB+60 B (+0.1%)
    remote-config (getAndFetch)46.3 kB46.3 kB+60 B (+0.1%)
    storage (getBytes)42.1 kB42.1 kB+60 B (+0.1%)
    storage (getDownloadURL)44.1 kB44.2 kB+60 B (+0.1%)
    storage (getMetadata)43.6 kB43.7 kB+60 B (+0.1%)
    storage (list + listAll)43.0 kB43.1 kB+60 B (+0.1%)
    storage (updateMetadata)43.9 kB43.9 kB+60 B (+0.1%)
    storage (uploadBytes)48.7 kB48.8 kB+60 B (+0.1%)
    storage (uploadBytesResumable)58.7 kB58.7 kB+60 B (+0.1%)
    storage (uploadString)48.9 kB49.0 kB+60 B (+0.1%)

  • firebase

    16 size changes

    TypeBase (c6a8851)Merge (3a85abd)Diff
    firebase-app-compat.js31.8 kB31.8 kB+46 B (+0.1%)
    firebase-app.js103 kB103 kB+81 B (+0.1%)
    firebase-auth-compat.js139 kB139 kB+88 B (+0.1%)
    firebase-auth-cordova.js177 kB177 kB+124 B (+0.1%)
    firebase-auth-web-extension.js117 kB117 kB+128 B (+0.1%)
    firebase-auth.js151 kB151 kB+128 B (+0.1%)
    firebase-compat.js788 kB788 kB-129 B (-0.0%)
    firebase-data-connect.js?16.5 kB? (?)
    firebase-firestore-compat.js344 kB344 kB-118 B (-0.0%)
    firebase-firestore-lite.js119 kB119 kB+179 B (+0.2%)
    firebase-firestore.js440 kB440 kB-292 B (-0.1%)
    firebase-messaging-compat.js38.4 kB38.3 kB-143 B (-0.4%)
    firebase-messaging-sw.js30.2 kB30.1 kB-71 B (-0.2%)
    firebase-messaging.js28.7 kB28.7 kB-96 B (-0.3%)
    firebase-performance-standalone-compat.es2017.js93.6 kB93.7 kB+46 B (+0.0%)
    firebase-performance-standalone-compat.js70.8 kB70.8 kB+50 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/XsHXPhmYOe.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 22, 2024

Size Analysis Report 1

This report is too large (1,243,472 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/6xlysD0MwA.html

@@ -19,7 +19,7 @@ import { isPrimitiveArrayEqual } from '../util/array';

/**
* Represents a vector type in Firestore documents.
* Create an instance with {@link FieldValue.vector}.
* Create an instance with `VectorValue.fromArray(array)`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the correct link should be {@link vector}? I think when we moved from compat to modular, we took a lot of symbols that used to be on the FieldValue namespace (serverTimestamp, arrayUnion, etc) and moved them to top level exports and this fits the pattern. @MarkDuckworth - confirm?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct. Good catch @hsubox76. May be copy-pasta or just a mix up when moving between Firestore SDK.

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LG from a doc string perspective.

Copy link
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to make the change @hsubox76 suggested. Otherwise this is good. Thank you for helping clean this up.

@@ -19,7 +19,7 @@ import { isPrimitiveArrayEqual } from '../util/array';

/**
* Represents a vector type in Firestore documents.
* Create an instance with {@link FieldValue.vector}.
* Create an instance with `VectorValue.fromArray(array)`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct. Good catch @hsubox76. May be copy-pasta or just a mix up when moving between Firestore SDK.

@@ -19,7 +19,7 @@ import { isPrimitiveArrayEqual } from '../util/array';

/**
* Represents a vector type in Firestore documents.
* Create an instance with {@link FieldValue.vector}.
* Create an instance with `{@link vector}`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is right, there shouldn't be backticks? If you use the correct format, the resulting markdown files shouldn't have the word "@link" in them anymore, it should be a markdown link (brackets then parens)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, this is the way to have something that is both a link and code formatted - you have to use the code tags here in the comment, you can't use backticks:

<code>{@link vector}</code>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrapped this in <code></code> in my latest commit and it has applied both link and code formatting, but I'm not sure if the link itself is correct. When I click it, it doesn't redirect me to the vector() function in the docs. Is this expected?

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.

6 participants