Skip to content

Commit 66f92c3

Browse files
authored
Roll playbook explanation feedback choices back to previous values (#1521)
There's a test downstream that's failing and I think it's due to this change that came in here: b2e04ee#diff-8b84a8269462c15e4258d8fc31d38ef8e231b71ddfd4e6155f3c705999e7d351L300-L302. I'm rolling that change back to see if we can get the tests happy.
1 parent 156aa6b commit 66f92c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ansible_ai_connect/ai/api/serializers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ class PlaybookGenerationAction(serializers.Serializer):
309309

310310

311311
class PlaybookExplanationFeedback(serializers.Serializer):
312-
action = GenerationActionEnum()
312+
USER_ACTION_CHOICES = (("0", "ACCEPTED"), ("1", "REJECTED"), ("2", "IGNORED"))
313+
action = serializers.ChoiceField(choices=USER_ACTION_CHOICES, required=True)
313314
explanationId = serializers.UUIDField(
314315
format="hex_verbose",
315316
required=True,

tools/openapi-schema/ansible-ai-connect-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ components:
12191219
type: object
12201220
properties:
12211221
action:
1222-
$ref: '#/components/schemas/Action693Enum'
1222+
$ref: '#/components/schemas/Action4c6Enum'
12231223
explanationId:
12241224
type: string
12251225
format: uuid

0 commit comments

Comments
 (0)