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(data): add custom primary key and related model tests #11836

Merged
merged 9 commits into from
Aug 25, 2023

Conversation

david-mcafee
Copy link
Member

@david-mcafee david-mcafee commented Aug 18, 2023

Description of changes

Successful test run of new E2E tests

DataStore custom primary key E2E tests were recently disabled due to test flakiness after migrating to GitHub Actions. Our existing related model tests have sufficient overlap with CPK tests, so we were able to perform the update without significant loss of test coverage.

This PR adds test configuration to use the new custom primary key + related models sample app. The new sample app is a fork of the existing related model app, with the inclusion of the following missing test cases:

  1. Implicit bi-directional hasOne relationships where both the parent and child have custom primary keys
  2. Models where both the parent and child have one custom primary key and two sort keys.

Once this PR has been merged I will remove existing sample apps + tests for both custom primary keys and related models.

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@david-mcafee david-mcafee requested review from a team as code owners August 18, 2023 18:48
@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2023

Codecov Report

Merging #11836 (9b2cf65) into main (bdaee91) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main   #11836   +/-   ##
=======================================
  Coverage   83.65%   83.65%           
=======================================
  Files         341      341           
  Lines       21579    21579           
  Branches     4611     4611           
=======================================
  Hits        18051    18051           
  Misses       3241     3241           
  Partials      287      287           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@david-mcafee david-mcafee requested a review from a team August 18, 2023 19:09
@@ -9,6 +9,8 @@ on:
push:
branches:
- feat/example-integ-test-branch/main
# TODO: remove before merging PR - added for test run prior to merge
- cpk-related-models
Copy link
Member Author

Choose a reason for hiding this comment

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

.github/integ-config/integ-all.yml Show resolved Hide resolved
@david-mcafee david-mcafee changed the title feat(data): add Custom Primary Key and related model tests feat(data): add custom primary key and related model tests Aug 25, 2023
@david-mcafee david-mcafee merged commit bf80b0d into main Aug 25, 2023
32 checks passed
@david-mcafee david-mcafee deleted the cpk-related-models branch August 25, 2023 16:30
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.

None yet

6 participants