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

add more feature view fields #86

Merged

Conversation

ddl-joyce-zhao
Copy link
Contributor

@ddl-joyce-zhao ddl-joyce-zhao commented Jan 31, 2023

Description

Added more Feature view fields

Related Issue

https://dominodatalab.atlassian.net/browse/DOM-43536

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

@github-actions
Copy link

github-actions bot commented Jan 31, 2023

✅ Result of Pytest Coverage

---------- coverage: platform linux, python 3.9.16-final-0 -----------

Name Stmts Miss Cover
domino_data/init.py 7 2 71%
domino_data/_feature_store/init.py 0 0 100%
domino_data/_feature_store/client.py 41 3 93%
domino_data/_feature_store/exceptions.py 9 0 100%
domino_data/_feature_store/git.py 43 1 98%
domino_data/_feature_store/logging.py 7 0 100%
domino_data/_feature_store/run.py 16 16 0%
domino_data/_feature_store/sync.py 98 9 91%
domino_data/auth.py 84 12 86%
domino_data/configuration_gen.py 164 0 100%
domino_data/data_sources.py 260 14 95%
domino_data/logging.py 10 0 100%
domino_data/training_sets/init.py 0 0 100%
domino_data/training_sets/client.py 126 10 92%
domino_data/training_sets/model.py 42 0 100%
TOTAL 907 67 93%

~ 55 passed in 83.67s (0:01:23) ~

@ddl-joyce-zhao ddl-joyce-zhao marked this pull request as ready for review January 31, 2023 18:29
required:
- name
- features
- entities
- tags
- description
Copy link
Contributor

Choose a reason for hiding this comment

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

for description being required, are we going to pass in an empty one if the user doesn't define one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked feast FeatureView implementation, although it's optional when defining a FeatureView, feast will set the value to be an empty string if not provided. So when we are reading a FeatureView object, that field is always there.

ttl=UNSET if fv.ttl is None else int(fv.ttl.total_seconds() * 1000),
tags=FeatureViewRequestTags.from_dict(fv.tags),
description=fv.description,
Copy link
Contributor

Choose a reason for hiding this comment

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

description isn't required field when making feature view, what if fv doesn't have a description?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See my above comments. This field is am empty string if not provided when initializing the feature view.

feature_views=feature_views,
git_commit_hash=commit_id,
project_id=project_id,
user_id=user_id,
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this come from the principal? or are we ok with it being passed by the client

@ddl-joyce-zhao ddl-joyce-zhao merged commit 4ae4c9c into main Feb 2, 2023
@ddl-joyce-zhao ddl-joyce-zhao deleted the ddl-joyce-zhao.DOM-43536.add-more-feature-view-fields branch February 2, 2023 18:46
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.

3 participants