Skip to content

Commit

Permalink
fix todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Mar 20, 2024
1 parent c3daeba commit cf9b15a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/policy-attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/30] is addressed
// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/73] is addressed

var (
attrValues []string
Expand Down
2 changes: 1 addition & 1 deletion cmd/policy-namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
)

// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/30] is addressed
// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/73] is addressed

var (
policy_namespacesCommands = []string{
Expand Down
2 changes: 1 addition & 1 deletion cmd/policy-resource_mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/30] is addressed
// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/73] is addressed

var (
policy_resource_mappingsTerms []string
Expand Down
2 changes: 0 additions & 2 deletions cmd/policy-subject_condition_sets.go
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
package cmd

// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/30] is addressed
2 changes: 1 addition & 1 deletion cmd/policy-subject_mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)

// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/30] is addressed
// TODO: add metadata to outputs once [https://github.com/opentdf/tructl/issues/73] is addressed

var (
policy_subject_mappingsCmds = []string{
Expand Down
7 changes: 3 additions & 4 deletions pkg/handlers/subjectmappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ func (h Handler) CreateNewSubjectMapping(attrValId string, actions []*policy.Act

func (h Handler) UpdateSubjectMapping(id string, updatedSCSId string, updatedActions []*policy.Action, metadata *common.MetadataMutable, metadataBehavior common.MetadataUpdateEnum) (*policy.SubjectMapping, error) {
resp, err := h.sdk.SubjectMapping.UpdateSubjectMapping(h.ctx, &subjectmapping.UpdateSubjectMappingRequest{
Id: id,
SubjectConditionSetId: updatedSCSId,
Actions: updatedActions,
// TODO: add reusable metadata label flags and drive this?
Id: id,
SubjectConditionSetId: updatedSCSId,
Actions: updatedActions,
MetadataUpdateBehavior: metadataBehavior,
Metadata: metadata,
})
Expand Down

0 comments on commit cf9b15a

Please sign in to comment.