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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23076d3ce8682540fa7b9104949899c4292d5ac8aab6cd3b8a8adb77ff379f5e
4
- data.tar.gz: 1464557fde7f948ac8aeb34ab4c66d9c947dd30b352d8a2862d74a835ca3d061
3
+ metadata.gz: 00d7ec6b274939de9c460f01d0e1c2fc662739aa4bd95e7a18f26d36d4697009
4
+ data.tar.gz: 55dc958c35be2de32dd532a87910d0fca80fdbfd840b0f46a9c2a2c6428d820c
5
5
  SHA512:
6
- metadata.gz: 652fd2e9a0285090fff5055b615f04ba48d48b49de4ba27fd4256f59f660d58ea2d4afb6d128eaf9b4f50cbe0a61d0ca022cc90ab59db76d1e0206f5ac11c3c7
7
- data.tar.gz: b40ea515566dcae4643ad52b9732244b6a8663a43db9b092cebc7af5360de7df95a77e15a91231ce06b5dc1acb801f3933f69a0cb2072ec0c03d74017c79bc05
6
+ metadata.gz: c4d616bbc59c9bb76eaa405104af8b4b1e1011d048bea5476eb1ac3e6dcfcd6832d69e11632334b3b9b458813877867e1cea85c519e59458466564a5600249df
7
+ data.tar.gz: 63d3c26eef686ace5ac8578d90bd64f737ae1fcbf3b1d3c3aee134d49afc98bf676d86c0f5bcfa6d6757a790597e4e3e06c8dc75051fde29e9b11caeccde37c2
@@ -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
- @http_client.request("#{scenario_path(trace_id)}/generate", {})["generation"]
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitfab
4
- VERSION = "0.73.1"
4
+ VERSION = "0.73.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.1
4
+ version: 0.73.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harvest Team