forest_admin_agent 1.0.0.pre.beta.58 → 1.0.0.pre.beta.60

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: 5a0b77447656edaafce539b7b920d4f0d1745733492810732cce08e1c1ddf134
4
- data.tar.gz: 56978cbac39cf03beebb9581bd7a270daba8efa9a95606d59e3b02900570fc2d
3
+ metadata.gz: 2d139f75a88e0da6b4900f761ed7f8cb6ff127da70e16c6b046ff8e689bdf362
4
+ data.tar.gz: 00fd69796e962e847b7cb4ef01941b723ceeb66b23415aed9eee2fa2cab54a92
5
5
  SHA512:
6
- metadata.gz: 7eaa5a2ebaf0bd86877a4e4b5feddb04e91fa5cdc799d9a1138ec4a141e5a42d6706ba69353e18f0073b7de2a1ffd0fed91d8a14812998bcc36007980000c45b
7
- data.tar.gz: baf4bbe36fce89338e52843ff2923105dd92478d00a6d8db580b514c51664145aad240c8e6407c03ca3b952a549827bd62ac4c2d6ef8ce3ebc17d8dd8c4da42e
6
+ metadata.gz: 8ad28b9ead8aca8e508bd6f3c59b9dd625d78f04fc02e58f574f065870137ca364e8b2efc99b75187001a105ed061a1197cf22f2a48b83cfeef5ae2879b76878
7
+ data.tar.gz: 47d0f533c7b88121faa68aa7512b9439d424ed9234fddbbed4f02745b9a4071cce62962d9833fe87f871a1da5a38856be748e017c3cc5d74ef4a44bfd84d8514
@@ -26,6 +26,10 @@ module ForestAdminAgent
26
26
  self
27
27
  end
28
28
 
29
+ def remove_collection(names)
30
+ @customizer.remove_collection(names)
31
+ end
32
+
29
33
  def add_chart(name, &definition)
30
34
  @customizer.add_chart(name, &definition)
31
35
 
@@ -9,6 +9,7 @@ module ForestAdminAgent
9
9
  api_charts_routes,
10
10
  System::HealthCheck.new.routes,
11
11
  Security::Authentication.new.routes,
12
+ Security::ScopeInvalidation.new.routes,
12
13
  Charts::Charts.new.routes,
13
14
  Resources::Count.new.routes,
14
15
  Resources::Delete.new.routes,
@@ -0,0 +1,28 @@
1
+ module ForestAdminAgent
2
+ module Routes
3
+ module Security
4
+ class ScopeInvalidation < AbstractRoute
5
+ include ForestAdminAgent::Builder
6
+ include ForestAdminAgent::Services
7
+ def setup_routes
8
+ add_route(
9
+ 'forest_scope_invalidation',
10
+ 'POST',
11
+ '/scope-cache-invalidation',
12
+ ->(args) { handle_request(args) }
13
+ )
14
+
15
+ self
16
+ end
17
+
18
+ def handle_request(args)
19
+ # Check if user is logged
20
+ Utils::QueryStringParser.parse_caller(args)
21
+ Permissions.invalidate_cache('forest.scopes')
22
+
23
+ { content: nil, status: 204 }
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.58"
10
+ LIANA_VERSION = "1.0.0-beta.60"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.0.0-beta.58"
2
+ VERSION = "1.0.0-beta.60"
3
3
  end
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.0.0.pre.beta.58
4
+ version: 1.0.0.pre.beta.60
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: 2024-06-25 00:00:00.000000000 Z
12
+ date: 2024-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -262,6 +262,7 @@ files:
262
262
  - lib/forest_admin_agent/routes/resources/store.rb
263
263
  - lib/forest_admin_agent/routes/resources/update.rb
264
264
  - lib/forest_admin_agent/routes/security/authentication.rb
265
+ - lib/forest_admin_agent/routes/security/scope_invalidation.rb
265
266
  - lib/forest_admin_agent/routes/system/health_check.rb
266
267
  - lib/forest_admin_agent/serializer/forest_chart_serializer.rb
267
268
  - lib/forest_admin_agent/serializer/forest_serializer.rb