mongodb / docs-realm

Realm Database SDK documentation
https://www.mongodb.com/docs/realm/
46 stars 88 forks source link

(DOCSP-33539): React Native: Update Create & Manage User API Keys to use auth hooks #3180

Closed dacharyc closed 4 months ago

dacharyc commented 9 months ago

Pull Request Info

Jira ticket: https://jira.mongodb.org/browse/DOCSP-33539

This PR adds to the React Native test suite, enabling us to test API user auth in a more robust way. The React Native tests in general are still somewhat flaky in CI - some of them are failing the CI for this PR but pass locally. These are mostly related to tests that make network requests. The pattern established in this PR should help address network issues and make tests more reliable in CI.

Essentially, the test is more an integration test than a unit test. I recommend we go to this higher-level testing for most networking aspects for examples that integrate with UI elements.

Reminder Checklist

Before merging your PR, make sure to check a few things.

Release Notes

Review Guidelines

REVIEWING.md

krollins-mdb commented 6 months ago

Currently getting the following error or one about no refresh token on the last bit of the test.

http error code considered fatal. Client Error: 403

This only happens in the Jest test. Everything works in the simulator. Trying to figure it out.

netlify[bot] commented 4 months ago

Deploy Preview for device-sdk ready!

Name Link
Latest commit fdda3b4d88a5a11a85683f3bff322ae7a33aaeba
Latest deploy log https://app.netlify.com/sites/device-sdk/deploys/66913c3fecdfe30007bb5be9
Deploy Preview https://deploy-preview-3180--device-sdk.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 4 months ago

Readability for Commit Hash: fdda3b4d88a5a11a85683f3bff322ae7a33aaeba

You can see any previous Readability scores (if they exist) by looking at the comment's history.

Readability scores for changed documents:

For Grade Level, aim for 8 or below.

For Reading Ease scores, aim for 60 or above:

Score Difficulty
90-100 Very Easy
80-89 Easy
70-79 Fairly Easy
60-69 Medium
50-59 Fairly Hard
30-49 Hard
0-29 Very Hard

For help improving readability, try Hemingway App.

docs-builder-bot commented 4 months ago

✨ Staging URL: https://preview-mongodbmongodb.gatsbyjs.io/realm/master/

🪵 Logs