forest_admin_datasource_rpc 1.36.1 → 1.36.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: 45152a83376ec27dbb825c5b2bda7acd849671fe379fd5a0f821c3de55699f8a
4
- data.tar.gz: 227462f34a4797beababb8ba7bbe521d14ade97f1a42c528c4c1269a3d260eeb
3
+ metadata.gz: 2e516706f06f0fdd82a7196eb874712856a986a70482bdbd4ec4515f54ede430
4
+ data.tar.gz: 9d4e9849a1f50be68591a144ebdecfe99e9ecd253a81617478b17f0abf2735b1
5
5
  SHA512:
6
- metadata.gz: b5a0c1aca4534c0362903d8571e1f3fc4668bac353d8937d1ff466bd2ed7145d1ad882ab34c9e6a3c5e59861650b06e6b14f55b3db27e0fb6d0d2a76868cfb31
7
- data.tar.gz: a683023984fd1b3592b928c3953675912871bacc2109c4ffe617dd5c05753cf7c67bcbaab3c8dd2ccd63d85e36bd6c91be79e5fcf19bacf55ffae20780aef80b
6
+ metadata.gz: 2d9fdba556631a62fb596740dd8253aa379111c134011068c659927c97f17fdf729d23457d487b0689780a143a1b1813ba43996752ec156d77d4b106752f6b7c
7
+ data.tar.gz: b1d64e585b893e540f4d323a4f9595d0c1eb59f376009fc19358fa8a9809096628ec26e356fcc91cfaa2cda7c5477ac5f4368114b97abb86ab2447fafd324a1b
@@ -63,6 +63,24 @@ module ForestAdminDatasourceRpc
63
63
  ForestAdminDatasourceToolkit::Utils::HashHelper.convert_keys(result.to_a)
64
64
  end
65
65
 
66
+ def build_binding_symbol(connection_name, binds)
67
+ url = 'forest/rpc-binding-symbol'
68
+
69
+ ForestAdminAgent::Facades::Container.logger&.log(
70
+ 'Debug',
71
+ "Requesting a binding symbol for connection '#{connection_name}' from the Rpc agent on #{url}."
72
+ )
73
+
74
+ @shared_rpc_client.call_rpc(
75
+ url,
76
+ method: :post,
77
+ payload: { connection_name: connection_name, binds_count: binds.size }
78
+ )
79
+ rescue ForestAdminAgent::Http::Exceptions::NotFoundError
80
+ raise ForestAdminDatasourceToolkit::Exceptions::ForestException,
81
+ 'Upgrade forest_admin_rpc_agent: this version does not support binding symbols yet.'
82
+ end
83
+
66
84
  def refresh!(new_schema)
67
85
  # Replace collections with those from the new schema
68
86
  @collections = {}
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceRpc
2
- VERSION = "1.36.1"
2
+ VERSION = "1.36.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.1
4
+ version: 1.36.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-07-31 00:00:00.000000000 Z
12
+ date: 2026-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64