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

Bug 1738208 - Add runtime type check to args passed to setUploadEnabled API #968

Merged
merged 2 commits into from
Nov 18, 2021

Conversation

brizental
Copy link
Contributor

@brizental brizental commented Nov 18, 2021

The metrics public APIs already do type checking. The pings submit API also checks if reason is valid. Other Glean singletons APIs also do validation of arguments.

The only API missing was uploadEnabled really.

Pull Request checklist

  • Quality: Make sure this PR builds and runs cleanly.
    • Inside the glean/ folder, run:
      • npm run test Runs all tests
      • npm run lint Runs all linters
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry to CHANGELOG.md or an explanation of why it does not need one
  • Documentation: This PR includes documentation changes, an explanation of why it does not need that or a follow-up bug has been filed to do that work

@auto-assign auto-assign bot requested a review from badboy November 18, 2021 11:22
@brizental brizental merged commit b580b23 into mozilla:main Nov 18, 2021
@brizental brizental deleted the 1738208-runtime-type-checks branch November 18, 2021 13:28
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.

2 participants