Skip to content

Commit

Permalink
feat(nimbus): add takeaways to csv report
Browse files Browse the repository at this point in the history
Because

* It would be helpful to know how many experiments have takeaways set
* An easy way to do that is to put the takeaways fields into the csv report

This commit

* Adds takeaways to the csv report

fixes #11952
  • Loading branch information
jaredlockhart committed Dec 17, 2024
1 parent 8638eeb commit fe3fe5c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/experimenter/openapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4067,6 +4067,20 @@
},
"hypothesis": {
"type": "string"
},
"takeaways_metric_gain": {
"type": "boolean"
},
"takeaways_gain_amount": {
"type": "string",
"nullable": true
},
"takeaways_qbr_learning": {
"type": "boolean"
},
"takeaways_summary": {
"type": "string",
"nullable": true
}
},
"required": [
Expand Down
14 changes: 14 additions & 0 deletions docs/experimenter/swagger-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -4079,6 +4079,20 @@
},
"hypothesis": {
"type": "string"
},
"takeaways_metric_gain": {
"type": "boolean"
},
"takeaways_gain_amount": {
"type": "string",
"nullable": true
},
"takeaways_qbr_learning": {
"type": "boolean"
},
"takeaways_summary": {
"type": "string",
"nullable": true
}
},
"required": [
Expand Down
4 changes: 4 additions & 0 deletions experimenter/experimenter/experiments/api/v5/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,10 @@ class Meta:
"experiment_summary",
"rollout",
"hypothesis",
"takeaways_metric_gain",
"takeaways_gain_amount",
"takeaways_qbr_learning",
"takeaways_summary",
]

def get_feature_configs(self, obj):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def test_serializer_outputs_expected_schema(self):
"experiment_summary": experiment.experiment_url,
"rollout": experiment.is_rollout,
"hypothesis": experiment.hypothesis,
"takeaways_metric_gain": experiment.takeaways_metric_gain,
"takeaways_gain_amount": experiment.takeaways_gain_amount,
"takeaways_qbr_learning": experiment.takeaways_qbr_learning,
"takeaways_summary": experiment.takeaways_summary,
},
)

Expand Down Expand Up @@ -69,5 +73,9 @@ def test_serializer_outputs_expected_schema_with_results_link(self):
"experiment_summary": experiment.experiment_url,
"rollout": experiment.is_rollout,
"hypothesis": experiment.hypothesis,
"takeaways_metric_gain": experiment.takeaways_metric_gain,
"takeaways_gain_amount": experiment.takeaways_gain_amount,
"takeaways_qbr_learning": experiment.takeaways_qbr_learning,
"takeaways_summary": experiment.takeaways_summary,
},
)

0 comments on commit fe3fe5c

Please sign in to comment.