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

Feature: Support for Resource Location #1262

Merged
merged 23 commits into from
Jan 24, 2024
Merged

Conversation

ahmadnazeri
Copy link
Contributor

@ahmadnazeri ahmadnazeri commented Jan 18, 2024

Description

In order to get the resource's location, we needed to expose the metadata for users.

How to use it?

Execute featureform on hosted mode:

featureform apply quickstart/definitions.py --insecure

Pull the location of resources:

import featureform as ff

serving = ff.Client(insecure=True)

p = ff.ResourceType.PRIMARY
location = serving.location(source="transactions", variant="quickstart", resource_type=p)
print(location)

t = ff.ResourceType.TRANSFORMATION
location = serving.location(source="average_user_transaction", variant="quickstart", resource_type=t)
print(location)

v = ff.ResourceType.TRAINING_SET
location = serving.location(source="fraud_training", variant="quickstart", resource_type=v)
print(location)

Out of Scope

  • Online Store Location

Type of change

Does this correspond to an open issue?

Select type(s) of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have fixed any merge conflicts

Copy link
Contributor

@epps epps left a comment

Choose a reason for hiding this comment

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

🗺️ 🔍 🚀

@ahmadnazeri ahmadnazeri merged commit 1d766ae into main Jan 24, 2024
46 checks passed
@ahmadnazeri ahmadnazeri deleted the feature/resource_location branch January 24, 2024 21:47
github-actions bot pushed a commit that referenced this pull request Jan 24, 2024
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.

None yet

2 participants