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(firestore): add the ability to enable debug logging #11019

Merged
merged 4 commits into from
May 23, 2023
Merged

Conversation

Lyokone
Copy link
Contributor

@Lyokone Lyokone commented May 22, 2023

Description

Adding a static function to enable debug logging.

Related Issues

closes #10995

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@@ -141,7 +141,7 @@ jobs:
run-bootstrap: false
melos-version: '3.0.1'
- name: 'Bootstrap package'
run: melos bootstrap --scope tests
run: melos bootstrap --scope tests && melos bootstrap --scope "cloud_firestore*"
Copy link
Member

Choose a reason for hiding this comment

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

any reason why this now fails on Firestore? I noticed this on my own PR 🤔

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've refactored the CI to use the same thing on test and cloud_firestore, but forgot to bootstrap those with melos. It would fail because it uses the pub.dev version :/

@@ -547,6 +549,14 @@ - (void)namedQueryGet:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallR
}];
}

- (void)setLoggingEnabled:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallResult *)result {
FIRFirestore *firestore = arguments[@"firestore"];
Copy link
Member

Choose a reason for hiding this comment

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

not needed

try {
await channel
.invokeMethod<void>('Firestore#setLoggingEnabled', <String, dynamic>{
'firestore': this,
Copy link
Member

Choose a reason for hiding this comment

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

not needed

@Lyokone Lyokone merged commit ec4c447 into master May 23, 2023
@Lyokone Lyokone deleted the fix/10995 branch May 23, 2023 11:22
@firebase firebase locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [cloud_firestore] Missing ability to enable debug logging
3 participants