-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Update command of SCS that exists already under that ID:
otdfctl policy subject-condition-sets update --id=fc3a7754-e7ab-438b-9081-558cf8ae5a0a -s '[{"condition_groups":[{"boolean_operator":2,"conditions":[{"subject_external_selector_value":".attributes.something[]","operator":1,"subject_external_values":["a","b","c","d"]},{"subjectExternalSelectorValue":".email","operator":3,"subjectExternalValues":["test.com","test.biz"]}]}]}]'
SUCCESS Updated subject-condition-sets: fc3a7754-e7ab-438b-9081-558cf8ae5a0a
╭─────────────────────────────────────┬─────────────────────────────────────╮
│Property │Value │
├─────────────────────────────────────┼─────────────────────────────────────┤
│Id │fc3a7754-e7ab-438b-9081-558cf8ae5a0a │
│SubjectSets │[{"condition_groups":[{"conditions":…│
│Created At │Thu Jul 18 19:03:06 UTC 2024 │
│Updated At │Thu Aug 1 21:04:00 UTC 2024 │
╰─────────────────────────────────────┴─────────────────────────────────────╯ Subsequent GET fails to populate the fields and values when the operator is IN_CONTAINS / enum index 3:
otdfctl policy subject-condition-sets get --id=fc3a7754-e7ab-438b-9081-558cf8ae5a0a --json
{
"id": "fc3a7754-e7ab-438b-9081-558cf8ae5a0a",
"subject_sets": [
{
"condition_groups": [
{
"conditions": [
{
"subject_external_selector_value": ".attributes.something[]",
"operator": 1,
"subject_external_values": [
"a",
"b",
"c",
"d"
]
},
{
"operator": 3
}
],
"boolean_operator": 2
}
]
}
],
"metadata": {
"created_at": {
"seconds": 1721329386,
"nanos": 788121000
},
"updated_at": {
"seconds": 1722546240,
"nanos": 565223000
}
}
}Note: this may be on the platform side?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working