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: introduce optional resolve_references method #206

Merged
merged 3 commits into from
Aug 24, 2022

Conversation

col
Copy link
Contributor

@col col commented Aug 21, 2022

This addresses the issues with using data loader in the existing resolve_reference method. (See: #205)
By grouping all the references of the same type into a single call to resolve_references the records can more easily be loaded as a batch. This can be done using a data loader (.load_all) or just a direct DB query as all the references are provided in a single method call.

The existing resolve_reference method is still supported but resolve_references will be the preferred approach.

This allows for easier implementation of batch loading when resolving federated entities
@col col force-pushed the resolve_reference_data_loading branch from e609105 to 3f84596 Compare August 21, 2022 07:01
.gitignore Outdated Show resolved Hide resolved
@geshwho
Copy link
Collaborator

geshwho commented Aug 22, 2022

@col Thank you for the PR! This is looking pretty good to me.

@geshwho geshwho changed the title Introduce optional resolve_references method feat: introduce optional resolve_references method Aug 24, 2022
Co-authored-by: Mangesh Tamhankar <[email protected]>
@geshwho geshwho merged commit 1e3b631 into Gusto:main Aug 24, 2022
rylanc pushed a commit that referenced this pull request Aug 24, 2022
# [3.3.0](v3.2.0...v3.3.0) (2022-08-24)

### Features

* introduce optional `resolve_references` method ([#206](#206)) ([1e3b631](1e3b631))
@rylanc
Copy link
Contributor

rylanc commented Aug 24, 2022

🎉 This PR is included in version 3.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants