forest_admin_agent 1.0.0.pre.beta.58 → 1.0.0.pre.beta.59

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a0b77447656edaafce539b7b920d4f0d1745733492810732cce08e1c1ddf134
4
- data.tar.gz: 56978cbac39cf03beebb9581bd7a270daba8efa9a95606d59e3b02900570fc2d
3
+ metadata.gz: ad27eb8ba35f3292c6216af7d415129b1ce822f6e1b759045efbccc11b89029f
4
+ data.tar.gz: 52fa9bacad9adafffa0d31398503191e94b7973c0138647cd0b1b78dc73218cd
5
5
  SHA512:
6
- metadata.gz: 7eaa5a2ebaf0bd86877a4e4b5feddb04e91fa5cdc799d9a1138ec4a141e5a42d6706ba69353e18f0073b7de2a1ffd0fed91d8a14812998bcc36007980000c45b
7
- data.tar.gz: baf4bbe36fce89338e52843ff2923105dd92478d00a6d8db580b514c51664145aad240c8e6407c03ca3b952a549827bd62ac4c2d6ef8ce3ebc17d8dd8c4da42e
6
+ metadata.gz: 48849106eeef0a28e24ed80d0351893f9fe9210e0d0c3c38294efb37c1e019291097323dff64f37ab9d4e606d961c00843c929e72afd177715b644fad213974a
7
+ data.tar.gz: 8e4177bd4822369f2dcc28cf0ca12a1a04a0c6bb27b8d91f21d181c746aa267d2f89a4f4c1bbe31c6a6f4cb4b597fd34a6db64090c3633981555b9665b16e6ac
@@ -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.59"
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.59"
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.59
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-01 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