Skip to content

Refactor providers to remove duplicate implementations#1876

Merged
feast-ci-bot merged 8 commits into
feast-dev:masterfrom
achals:achal/remove-dupe-providers
Sep 17, 2021
Merged

Refactor providers to remove duplicate implementations#1876
feast-ci-bot merged 8 commits into
feast-dev:masterfrom
achals:achal/remove-dupe-providers

Conversation

@achals

@achals achals commented Sep 16, 2021

Copy link
Copy Markdown
Member

Signed-off-by: Achal Shah achals@gmail.com

What this PR does / why we need it:

Currently, the AWS, GCP and Local providers have the exact same implementation - and the implementation only defers actual business logic of setting up infrastructure and materializing data to the offline/online store interfaces.

This is confusing for users, and is unnecessary code to maintain. Instead, this PR refactors the implementations into a single implementation, with a dummy subclass for the 3 existing providers for backwards compatibility.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

none

@codecov-commenter

codecov-commenter commented Sep 16, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1876 (6ab8c3f) into master (8a49a65) will decrease coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1876      +/-   ##
==========================================
- Coverage   83.96%   83.81%   -0.16%     
==========================================
  Files          95       96       +1     
  Lines        7392     7316      -76     
==========================================
- Hits         6207     6132      -75     
+ Misses       1185     1184       -1     
Flag Coverage Δ
integrationtests 74.48% <100.00%> (-0.25%) ⬇️
unittests 62.35% <100.00%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdk/python/feast/infra/aws.py 81.66% <100.00%> (-7.23%) ⬇️
sdk/python/feast/infra/gcp.py 87.50% <100.00%> (-5.29%) ⬇️
sdk/python/feast/infra/local.py 86.36% <100.00%> (-6.14%) ⬇️
sdk/python/feast/infra/passthrough_provider.py 100.00% <100.00%> (ø)
sdk/python/feast/infra/provider.py 90.43% <100.00%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a49a65...6ab8c3f. Read the comment docs.

@woop

woop commented Sep 16, 2021

Copy link
Copy Markdown
Member

Would you mind adding a description to your PR please?

@adchia adchia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: achals, adchia

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@achals achals force-pushed the achal/remove-dupe-providers branch from 1f32026 to 7cacc3c Compare September 17, 2021 16:26
@feast-ci-bot

Copy link
Copy Markdown
Collaborator

New changes are detected. LGTM label has been removed.

@feast-ci-bot feast-ci-bot removed the lgtm label Sep 17, 2021
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
@achals achals force-pushed the achal/remove-dupe-providers branch from 7cacc3c to a2c0e9d Compare September 17, 2021 16:52
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
@achals achals force-pushed the achal/remove-dupe-providers branch from a2c0e9d to 99ec0e2 Compare September 17, 2021 16:56
Signed-off-by: Achal Shah <achals@gmail.com>
@achals

achals commented Sep 17, 2021

Copy link
Copy Markdown
Member Author

Would you mind adding a description to your PR please?

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants