-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Added Project object to Feast Objects #4475
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7aeeeac
feat: Added Project object to Feast Objects
28e11eb
fix: Extend FeastError and fixed integration tests
c81cebd
fix: Small optimization to test_modify_feature_views_success test
21bc5a9
fix: Added Project object to template and quick start
ffd5d55
Merge branch 'master' into add_project_object
EXPEbdodla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
feat: Added Project object to Feast Objects
Signed-off-by: Bhargav Dodla <bdodla@expediagroup.com> Signed-off-by: Bhargav Dodla <bdodla@expediagroup.com>
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // | ||
| // * Copyright 2020 The Feast Authors | ||
| // * | ||
| // * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // * you may not use this file except in compliance with the License. | ||
| // * You may obtain a copy of the License at | ||
| // * | ||
| // * https://www.apache.org/licenses/LICENSE-2.0 | ||
| // * | ||
| // * Unless required by applicable law or agreed to in writing, software | ||
| // * distributed under the License is distributed on an "AS IS" BASIS, | ||
| // * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // * See the License for the specific language governing permissions and | ||
| // * limitations under the License. | ||
| // | ||
|
|
||
| syntax = "proto3"; | ||
|
|
||
| package feast.core; | ||
| option java_package = "feast.proto.core"; | ||
| option java_outer_classname = "ProjectProto"; | ||
| option go_package = "github.com/feast-dev/feast/go/protos/feast/core"; | ||
|
|
||
| import "google/protobuf/timestamp.proto"; | ||
|
|
||
| message Project { | ||
| // User-specified specifications of this entity. | ||
| ProjectSpec spec = 1; | ||
| // System-populated metadata for this entity. | ||
| ProjectMeta meta = 2; | ||
| } | ||
|
|
||
| message ProjectSpec { | ||
| // Name of the Project | ||
| string name = 1; | ||
|
|
||
| // Description of the Project | ||
| string description = 2; | ||
|
|
||
| // User defined metadata | ||
| map<string,string> tags = 3; | ||
|
|
||
| // Owner of the Project | ||
| string owner = 4; | ||
| } | ||
|
|
||
| message ProjectMeta { | ||
| // Time when the Project is created | ||
| google.protobuf.Timestamp created_timestamp = 1; | ||
| // Time when the Project is last updated with registry changes (Apply stage) | ||
| google.protobuf.Timestamp last_updated_timestamp = 2; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are both of these necessary? what's the difference. btw, All Feast exceptoins should extend
FeastError.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tokoko I noticed the same while doing the latest refactory but I didn't want to extend the scope of changes too much. Looks like other duplications are there like
PermissionObjectNotFoundExceptionandDataSourceObjectNotFoundException. Can we remove all of them (in a dedicated ticket maybe)?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll extend the FeastError for ProjectNotFoundException.
Reasons for having two exceptions: Just followed the current convention.
ProjectNotFoundException--> Exception thrown when theDELETEcalls are made and project is not found.ProjectObjectNotFoundException--> Exception thrown whenGETcalls are made and project is not found._get_objectmethod passes two args (name, project) when object is not found. I don't want to add another if else logic to filter out project.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmartinol yeah, this just looks weird. Probably best to defer removal until after this is merged, though.. just to avoid a messy rebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case, remember an item in the next Release Notes to remind clients to replace any try/except that may have used those duplicate errors.