forest_admin_agent 1.37.2 → 1.37.3
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/forest_admin_agent/routes/capabilities/collections.rb +3 -2
- data/lib/forest_admin_agent/routes/charts/api_chart_datasource.rb +6 -8
- data/lib/forest_admin_agent/routes/security/scope_invalidation.rb +2 -3
- data/lib/forest_admin_agent/utils/caller_parser.rb +2 -0
- data/lib/forest_admin_agent/utils/schema/schema_emitter.rb +1 -1
- data/lib/forest_admin_agent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fdf5c141f3b667c5d637882a071c6775bbf8dd6c814415b53c7cfa1478725d3
|
|
4
|
+
data.tar.gz: 8e51a39b2ac4461d530d64b9bd24e93dd37463057c68d39a505e6ee63ba7b338
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd9a857e7b0c8cd264f998522bca85aef1048253ab7ba30106383fbf91d2744581a4356edad2431d2ea6c392bb67c031390debf5dd0fa496648d2ed454f504a7
|
|
7
|
+
data.tar.gz: 906a6c9db2e4911fc8b2dea2993c5a274fd2e2fb1b43ce985dfb97e8dbd3563bdbf2592a21d8ac3bac2b580413e871bbacf0f86bf7fc1ec0766e564e16c575fd
|
|
@@ -2,7 +2,7 @@ require 'json'
|
|
|
2
2
|
module ForestAdminAgent
|
|
3
3
|
module Routes
|
|
4
4
|
module Capabilities
|
|
5
|
-
class Collections <
|
|
5
|
+
class Collections < AbstractAuthenticatedRoute
|
|
6
6
|
include ForestAdminDatasourceToolkit::Schema
|
|
7
7
|
include ForestAdminDatasourceToolkit::Schema::Relations
|
|
8
8
|
|
|
@@ -16,7 +16,8 @@ module ForestAdminAgent
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def handle_request(args = {})
|
|
19
|
-
|
|
19
|
+
context = build(args)
|
|
20
|
+
datasource = context.datasource
|
|
20
21
|
collections = args[:params]['collectionNames'] || []
|
|
21
22
|
|
|
22
23
|
connections = datasource.live_query_connections.keys.map { |connection_name| { name: connection_name } }
|
|
@@ -37,14 +37,13 @@ module ForestAdminAgent
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def handle_api_chart(args = {})
|
|
40
|
-
|
|
40
|
+
context = build(args)
|
|
41
41
|
parameters = Utils::QueryStringParser.parse_chart_parameters(args)
|
|
42
|
-
datasource = ForestAdminAgent::Facades::Container.datasource
|
|
43
42
|
|
|
44
43
|
{
|
|
45
44
|
content: Serializer::ForestChartSerializer.serialize(
|
|
46
|
-
datasource.render_chart(
|
|
47
|
-
caller,
|
|
45
|
+
context.datasource.render_chart(
|
|
46
|
+
context.caller,
|
|
48
47
|
@chart_name,
|
|
49
48
|
parameters
|
|
50
49
|
)
|
|
@@ -53,13 +52,12 @@ module ForestAdminAgent
|
|
|
53
52
|
end
|
|
54
53
|
|
|
55
54
|
def handle_smart_chart(args = {})
|
|
56
|
-
|
|
55
|
+
context = build(args)
|
|
57
56
|
parameters = Utils::QueryStringParser.parse_chart_parameters(args)
|
|
58
|
-
datasource = ForestAdminAgent::Facades::Container.datasource
|
|
59
57
|
|
|
60
58
|
{
|
|
61
|
-
content: datasource.render_chart(
|
|
62
|
-
caller,
|
|
59
|
+
content: context.datasource.render_chart(
|
|
60
|
+
context.caller,
|
|
63
61
|
@chart_name,
|
|
64
62
|
parameters
|
|
65
63
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module ForestAdminAgent
|
|
2
2
|
module Routes
|
|
3
3
|
module Security
|
|
4
|
-
class ScopeInvalidation <
|
|
4
|
+
class ScopeInvalidation < AbstractAuthenticatedRoute
|
|
5
5
|
include ForestAdminAgent::Builder
|
|
6
6
|
include ForestAdminAgent::Services
|
|
7
7
|
|
|
@@ -17,8 +17,7 @@ module ForestAdminAgent
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def handle_request(args)
|
|
20
|
-
|
|
21
|
-
Utils::QueryStringParser.parse_caller(args)
|
|
20
|
+
build(args)
|
|
22
21
|
Permissions.invalidate_cache('forest.rendering')
|
|
23
22
|
|
|
24
23
|
{ content: nil, status: 204 }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.37.
|
|
4
|
+
version: 1.37.3
|
|
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-08-
|
|
12
|
+
date: 2026-08-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|