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 new resource using project name #13

Merged
merged 3 commits into from
Mar 16, 2021
Merged

Conversation

terryyylim
Copy link
Contributor

Currently, Keto policy expects projects in the form of resources:mlp:projects:<project_id> but Feast expects projects in the form of resources:mlp:projects:<project_name>.

Related Feast code can be found here.

This PR simply adds an additional resource in the upsert methods to overcome this disparity.

@terryyylim terryyylim force-pushed the add-project-name-keto-resource branch from e96639d to f3735eb Compare March 12, 2021 07:24
@@ -83,6 +83,7 @@ func TestProjectsService_CreateProject(t *testing.T) {

projectResource := fmt.Sprintf(ProjectResources, tt.arg.Id)
projectSubResource := fmt.Sprintf(ProjectSubResources, tt.arg.Id)
projectNameResource := fmt.Sprintf(ProjectResources, tt.arg.Name)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't you use ProjectSubResources ? With current one it will be something like resources:mlp:projects:my_project which doesn't include any resource under my_project?

Copy link
Member

@pradithya pradithya left a comment

Choose a reason for hiding this comment

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

LGTM

@terryyylim terryyylim merged commit 4760b55 into main Mar 16, 2021
@terryyylim terryyylim deleted the add-project-name-keto-resource branch March 16, 2021 03:35
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.

2 participants