bitfab 0.73.1 → 0.73.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bitfab/scenarios.rb +8 -2
- data/lib/bitfab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00d7ec6b274939de9c460f01d0e1c2fc662739aa4bd95e7a18f26d36d4697009
|
|
4
|
+
data.tar.gz: 55dc958c35be2de32dd532a87910d0fca80fdbfd840b0f46a9c2a2c6428d820c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4d616bbc59c9bb76eaa405104af8b4b1e1011d048bea5476eb1ac3e6dcfcd6832d69e11632334b3b9b458813877867e1cea85c519e59458466564a5600249df
|
|
7
|
+
data.tar.gz: 63d3c26eef686ace5ac8578d90bd64f737ae1fcbf3b1d3c3aee134d49afc98bf676d86c0f5bcfa6d6757a790597e4e3e06c8dc75051fde29e9b11caeccde37c2
|
data/lib/bitfab/scenarios.rb
CHANGED
|
@@ -26,11 +26,17 @@ module Bitfab
|
|
|
26
26
|
# again. "scenarioId" is nil while the trace has no scenario yet, and "creationStatus" is the scenario's creation
|
|
27
27
|
# status right after the call.
|
|
28
28
|
#
|
|
29
|
+
# regenerate: true builds a scenario the trace already has again: its name, description, trigger, data, and
|
|
30
|
+
# actual outcome are cleared and built over, and the organization's scenario callback, when one is set up, is
|
|
31
|
+
# asked again. Its categories, review status, labels, and assertions are kept, and asking while it is
|
|
32
|
+
# generating starts nothing more. Leaving it out leaves an existing scenario as it is.
|
|
33
|
+
#
|
|
29
34
|
# A replay, a trace outside the organization, or a trace Bitfab cannot build a scenario for (not
|
|
30
35
|
# noah-agent-turn and no scenario callback) raises an error. Adding a trace to a dataset starts the same build
|
|
31
36
|
# only when the organization has a scenario callback.
|
|
32
|
-
def generate_scenario(trace_id)
|
|
33
|
-
|
|
37
|
+
def generate_scenario(trace_id, regenerate: nil)
|
|
38
|
+
payload = regenerate.nil? ? {} : {regenerate:}
|
|
39
|
+
@http_client.request("#{scenario_path(trace_id)}/generate", payload)["generation"]
|
|
34
40
|
end
|
|
35
41
|
|
|
36
42
|
# Updates the scenario built from trace_id and returns the saved hash.
|
data/lib/bitfab/version.rb
CHANGED