bitfab 0.76.8 → 0.76.9
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 +6 -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: d9f05a1092d7d258248586f1d91e0549b41a141b60265d290f50dcfca0ea1c84
|
|
4
|
+
data.tar.gz: 7bc1763c6c852c0189f8e0be06a55228c6844602cc17380ff62edf11250726dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d12922006705f3887077d240bf69367aa065cbdc841736ade2b2a250f69de7c52e42bdeaf97585332ae4458fbb8b4c8c42dbcd35606107a4ba74c7153be80401
|
|
7
|
+
data.tar.gz: b39ad8194a05792ab00e8dcde80fe47b0781c7ecbc349e4fa688791285fa94b2973fd3323c7794982c2ee19e88cb20dc31ef4a51c71338db6cca08222d22d41b
|
data/lib/bitfab/scenarios.rb
CHANGED
|
@@ -31,11 +31,15 @@ module Bitfab
|
|
|
31
31
|
# asked again. Its categories, review status, labels, and assertions are kept, and asking while it is
|
|
32
32
|
# generating starts nothing more. Leaving it out leaves an existing scenario as it is.
|
|
33
33
|
#
|
|
34
|
+
# force: true, together with regenerate: true, starts over even while the scenario is generating or the
|
|
35
|
+
# scenario callback is still working on it (waiting for its answer, or it answered 202 less than a day ago).
|
|
36
|
+
# force: without regenerate: is refused.
|
|
37
|
+
#
|
|
34
38
|
# A replay, a trace outside the organization, or a trace Bitfab cannot build a scenario for (not
|
|
35
39
|
# noah-agent-turn and no scenario callback) raises an error. Adding a trace to a dataset starts the same build
|
|
36
40
|
# only when the organization has a scenario callback.
|
|
37
|
-
def generate_scenario(trace_id, regenerate: nil)
|
|
38
|
-
payload = regenerate
|
|
41
|
+
def generate_scenario(trace_id, regenerate: nil, force: nil)
|
|
42
|
+
payload = {regenerate:, force:}.compact
|
|
39
43
|
@http_client.request("#{scenario_path(trace_id)}/generate", payload)["generation"]
|
|
40
44
|
end
|
|
41
45
|
|
data/lib/bitfab/version.rb
CHANGED