Skip to content

Conversation

@achals
Copy link
Member

@achals achals commented Mar 18, 2022

The subdirectory only complicates structures because the proto generated imports are not correct (sine python 3 requires absolute imports, but the proto generated imports start with things like feast.core instead of feast.proto.feast.core.

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

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

…east dir

Signed-off-by: Achal Shah <achals@gmail.com>
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: achals

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

Signed-off-by: Achal Shah <achals@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2022

Codecov Report

Merging #2422 (f011855) into master (04dea73) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2422   +/-   ##
=======================================
  Coverage   85.42%   85.43%           
=======================================
  Files         122      122           
  Lines       10731    10735    +4     
=======================================
+ Hits         9167     9171    +4     
  Misses       1564     1564           
Flag Coverage Δ
integrationtests 75.28% <100.00%> (-0.21%) ⬇️
unittests 57.11% <100.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
sdk/python/feast/data_format.py 65.30% <100.00%> (ø)
sdk/python/feast/data_source.py 58.69% <100.00%> (ø)
sdk/python/feast/diff/infra_diff.py 75.30% <100.00%> (ø)
sdk/python/feast/diff/registry_diff.py 69.46% <100.00%> (ø)
sdk/python/feast/dqm/profilers/ge_profiler.py 87.30% <100.00%> (ø)
sdk/python/feast/entity.py 90.47% <100.00%> (ø)
sdk/python/feast/feast_object.py 100.00% <100.00%> (ø)
sdk/python/feast/feature.py 90.24% <100.00%> (ø)
sdk/python/feast/feature_server.py 30.55% <100.00%> (ø)
sdk/python/feast/feature_service.py 87.87% <100.00%> (ø)
... and 42 more

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 04dea73...f011855. Read the comment docs.

achals added 2 commits March 19, 2022 23:12
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
@achals achals marked this pull request as ready for review March 20, 2022 07:46
@achals achals requested a review from a team as a code owner March 20, 2022 07:46
@achals achals requested review from kevjumba and removed request for a team March 20, 2022 07:46
@achals achals requested review from felixwang9817 and woop and removed request for kevjumba March 20, 2022 07:47
Type[Int64List],
Type[StringList],
]
_value_type_proto_value_type_mapping = {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason for these changes?

line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
Copy link
Member

Choose a reason for hiding this comment

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

What happened to all these exclusions?

)
from feast.protos.feast.core.FeatureView_pb2 import FeatureView as FeatureViewProto
from feast.protos.feast.core.OnDemandFeatureView_pb2 import (
from feast.proto_core.DataSource_pb2 import DataSource as DataSourceProto
Copy link
Member

Choose a reason for hiding this comment

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

I am a little bit unclear on what problem you are trying to solve with this change? Didn't we have absolute imports before and after?

Copy link
Member Author

Choose a reason for hiding this comment

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

While we did, there was a bug that I found later and fixed in #2437.

With this PR - I just think that the subdir structure is a bit stuttery - feast.protos.feast.*. It's a taste thing, not a major functionality thing.

@kevjumba
Copy link
Collaborator

@achals I think there is some merge conflicts that need to be resolved and also willem left some comments!

@achals
Copy link
Member Author

achals commented Apr 4, 2022

Doesn't seem like this is causing a problem - and the value in minimal, so I'm going to close this PR for now.

@achals achals closed this Apr 4, 2022
@achals achals deleted the acha/refactor-proto-python branch April 4, 2022 21:04
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.

6 participants