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

Fixing SSRC Typos and Minor Bugs #841

Draft
wants to merge 8 commits into
base: ssrc
Choose a base branch
from
Draft

Fixing SSRC Typos and Minor Bugs #841

wants to merge 8 commits into from

Conversation

pijushcs
Copy link

Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:

Discussion

  • Read the contribution guidelines (CONTRIBUTING.md).
  • If this has been discussed in an issue, make sure to link to the issue here.
    If not, go file an issue about this before creating a pull request to discuss.

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. If you'd like to help
    us make Firebase APIs better, please propose your change in an issue so that we
    can discuss it together.

@pijushcs pijushcs marked this pull request as draft December 18, 2024 14:02
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thank you! Overall LGTM!

Left a few comments

@@ -197,7 +197,7 @@ def get_float(self, key):
return self.get_value(key).as_float()

def get_value(self, key):
if self._config_values[key]:
if key in self._config_values:
return self._config_values[key]
Copy link
Member

Choose a reason for hiding this comment

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

You might also be able to just do self._config_values.get(key, _Value('static')) here

@@ -197,7 +197,7 @@ def get_float(self, key):
return self.get_value(key).as_float()

def get_value(self, key):
Copy link
Member

Choose a reason for hiding this comment

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

Could we add type hints for all the functions where possible, please?
We are trying to add type hints to any new code. For example, see:

def verify_token(self, token: str) -> Dict[str, Any]:

Copy link
Member

Choose a reason for hiding this comment

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

Just noticed that you have added typehints to return types in most of the public functions. Thanks!

predicate_fn: A function that takes an integer and returns a boolean.
version1: The first semantic version string.
version2: The second semantic version string.
predicate_fn: A function that takes an integer and returns a boolean.
Copy link
Member

Choose a reason for hiding this comment

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

Let's get a TW review on these docstrings

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.

3 participants