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

feat(Google Cloud Firestore Node): Add support for service account and document creation with id #9713

Merged

Conversation

adrian-martinez-onestic
Copy link
Contributor

@adrian-martinez-onestic adrian-martinez-onestic commented Jun 12, 2024

Summary

This PR adds two features:

  • Allows to use Google Service Accounts for Firestore nodes authentication.
  • Allows to create Firestore documents with specific ids (optionally).

Details

While its possible to use Firestore using a service account, it is currently not supported by n8n, as noted at https://docs.n8n.io/integrations/builtin/credentials/google/#compatible-nodes. Allowing to use a service account in this node allows not depending on a personal account, and provides a reliable way to connect to Firestore.

In this way, proposed changes are backwards compatible, and offer the possibility of using either Oauth2 or Service Account authentication, and optionally, supply a document id, as it is possible while calling API or creating the document manually through the UI:

Captura de pantalla 2024-06-12 a las 12 43 00 Captura de pantalla 2024-06-12 a las 12 43 34 Captura de pantalla 2024-06-12 a las 12 47 35 Captura de pantalla 2024-06-12 a las 12 53 57 Captura de pantalla 2024-06-12 a las 12 56 35 Captura de pantalla 2024-06-12 a las 13 03 32 Captura de pantalla 2024-06-12 a las 13 03 49

@CLAassistant
Copy link

CLAassistant commented Jun 12, 2024

CLA assistant check
All committers have signed the CLA.

@adrian-martinez-onestic adrian-martinez-onestic changed the title Feature/firestore sa document create with Firestore - Service Account creds + document create with specific id Jun 12, 2024
@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request in linear Issue or PR has been created in Linear for internal review labels Jun 12, 2024
@Joffcom Joffcom changed the title Firestore - Service Account creds + document create with specific id feat(Google Cloud Firestore Node): Add support for service account and document creation with id Jul 1, 2024
@Joffcom Joffcom self-requested a review July 1, 2024 15:46
Joffcom
Joffcom previously approved these changes Jul 1, 2024
Copy link
Member

@Joffcom Joffcom left a comment

Choose a reason for hiding this comment

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

Tested and looks good, Thanks for this.

@netroy
Copy link
Member

netroy commented Jul 4, 2024

Since maintainers aren't allowed to edit this PR, I'm unable to fix the CI issues.
Can you please cherry-pick this commit, and merge the latest master back in 🙏🏽.
Once the CI is green, we can merge.

When creating any future PRs, please make sure that this checkbox is checked
Screenshot from 2024-06-26 13-32-22

@adrian-martinez-onestic adrian-martinez-onestic force-pushed the feature/firestore-SA-document-create-with-id branch from 429d248 to 5d86664 Compare July 8, 2024 08:42
@adrian-martinez-onestic
Copy link
Contributor Author

Cherry-picked commit with CI fixes, also updated branch with latest master changes

@netroy netroy merged commit cb1bbf5 into n8n-io:master Jul 8, 2024
9 checks passed
@adrian-martinez-onestic adrian-martinez-onestic deleted the feature/firestore-SA-document-create-with-id branch July 8, 2024 14:01
@janober
Copy link
Member

janober commented Jul 10, 2024

Got released with [email protected]

jeanpaul pushed a commit that referenced this pull request Jul 11, 2024
…d document creation with id (#9713)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants