Skip to content

chore!: Delete unused code in feature view#3016

Merged
feast-ci-bot merged 18 commits into
feast-dev:masterfrom
felixwang9817:fix_feature_view
Aug 5, 2022
Merged

chore!: Delete unused code in feature view#3016
feast-ci-bot merged 18 commits into
feast-dev:masterfrom
felixwang9817:fix_feature_view

Conversation

@felixwang9817

@felixwang9817 felixwang9817 commented Aug 4, 2022

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

BREAKING CHANGE: Deprecate feature view parameters such as batch_source and stream_source and deprecate the option to use positional arguments

@codecov-commenter

codecov-commenter commented Aug 4, 2022

Copy link
Copy Markdown

Codecov Report

Merging #3016 (cbb6016) into master (b1660aa) will decrease coverage by 18.24%.
The diff coverage is 89.18%.

@@             Coverage Diff             @@
##           master    #3016       +/-   ##
===========================================
- Coverage   77.59%   59.35%   -18.25%     
===========================================
  Files         194      194               
  Lines       16267    16094      -173     
===========================================
- Hits        12622     9552     -3070     
- Misses       3645     6542     +2897     
Flag Coverage Δ
integrationtests ?
unittests 59.35% <89.18%> (-0.07%) ⬇️

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

Impacted Files Coverage Δ
sdk/python/feast/batch_feature_view.py 100.00% <ø> (ø)
sdk/python/feast/feature_store.py 67.13% <ø> (-15.73%) ⬇️
sdk/python/tests/doctest/test_all.py 89.83% <ø> (ø)
...tegration/feature_repos/universal/feature_views.py 34.72% <ø> (-47.72%) ⬇️
...fline_store/test_universal_historical_retrieval.py 28.75% <0.00%> (-71.25%) ⬇️
.../integration/online_store/test_universal_online.py 17.41% <0.00%> (-38.57%) ⬇️
...sts/integration/registration/test_feature_store.py 44.15% <ø> (-55.85%) ⬇️
...on/tests/integration/registration/test_registry.py 40.29% <ø> (-59.71%) ⬇️
...python/tests/unit/cli/test_cli_apply_duplicates.py 100.00% <ø> (ø)
sdk/python/tests/unit/diff/test_registry_diff.py 100.00% <ø> (ø)
... and 91 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@felixwang9817 felixwang9817 changed the title chore: Delete unused code in feature view chore: Delete unused code in feature view [WIP] Aug 5, 2022

@achals achals left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this still a WIP PR? Looks pretty good to me.

Comment on lines 114 to 215

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
… odfv

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
@felixwang9817 felixwang9817 changed the title chore: Delete unused code in feature view [WIP] chore: Delete unused code in feature view Aug 5, 2022
@felixwang9817 felixwang9817 changed the title chore: Delete unused code in feature view chore!: Delete unused code in feature view Aug 5, 2022
@adchia adchia self-assigned this Aug 5, 2022
this group of features lives forever. Note that large ttl's or a ttl of 0
can result in extremely computationally intensive queries.
batch_source (optional): The batch source of data where this group of features
batch_source: The batch source of data where this group of features

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.

huh did you do this in reverse? the docs suggest we want source instead of batch_source vs stream_source

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.

oh these are attributes. Maybe remove the two lines on "deprecated in favor of source"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@adchia the __init__ takes in source as a parameter; it then sets batch_source and stream_source as attributes

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

good catch

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.

yep. just remove the two lines here saying "This is deprecated in favor of source" ?

@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.

just a nit

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

@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: adchia, felixwang9817

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:
  • OWNERS [adchia,felixwang9817]

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

@feast-ci-bot feast-ci-bot merged commit de8babe into feast-dev:master Aug 5, 2022
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