Code Monkey home page Code Monkey logo

Comments (7)

Ehesp avatar Ehesp commented on August 29, 2024

Hey @tbillington thanks for the report.

I've just imported a fresh dataset myself and I don't see any IAM related private keys. Would you be able to take a screenshot of where the data is (hiding any private info)? Do you mean the keys are within the exported data from Firestore, or are they visible within the BigQuery console?

from extensions.

tbillington avatar tbillington commented on August 29, 2024

They are in the data in the XXXX_raw_changelog and XXXX_raw_latest (the view over changelog)

This has happened in 3 of the 5 collections I've connected through the extension in firebase. Two of the collections just have their document data (which I assume is the expected default behaviour).

Group 1

from extensions.

Ehesp avatar Ehesp commented on August 29, 2024

Thanks for posting that. I'll do some more investigation and get back to you.

from extensions.

russellwheatley avatar russellwheatley commented on August 29, 2024

Hi @tbillington, I've tried to reproduce this issue without any luck. Here is the line of code that sets the data property that is eventually stringified for BigQuery import: https://github.com/firebase/extensions/blob/next/firestore-bigquery-export/scripts/import/src/index.ts#L207

As you can see it calls snapshot.data() which is the correct Firestore call to make if you want just the data from a Firestore record. What you are seeing in your sessions_raw_latest table is a snapshot which has not had its data() method called.

Could you please take a look at the experience property in your Firestore sessions collection and let me know if you see a _firestore object contained within, please? Thank you.

from extensions.

tbillington avatar tbillington commented on August 29, 2024

@russellwheatley Yes, I see a _firestore object. It has fields like _settings and _projectId.

from extensions.

russellwheatley avatar russellwheatley commented on August 29, 2024

@tbillington Ok, good to know we've found the issue! Somewhere in your codebase, you're storing the snapshot on an experience property. You ought to change it to snapshot.data() as referenced here

from extensions.

tbillington avatar tbillington commented on August 29, 2024

Ah, ok. This stuff can be easy to miss in JS land. Would have much preferred something like this crash/throw when it tried to be saved. Don't know if there's anything on your end you can do though.

Regardless, I appreciate you getting back on this 😃 cheers

from extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.