superset 0.3.2 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eccf34d9aa2007200762969b6483106b398d889027e7913b393c5a1386678106
4
- data.tar.gz: 18a65c328bb022afaf81e1482af324ee8ce90f9dfadf9af710723cfbd727e11d
3
+ metadata.gz: c06f7ee91293a564daf7b79d25c602d8ed7195795de421e2ae6930889f733758
4
+ data.tar.gz: fb2e77fca736ab2fe2581b5cd9155d5c47c3e562f7e50194dbd99a428f29487a
5
5
  SHA512:
6
- metadata.gz: 4728bc69910b3d6e911bd863bf7a9bee973287e367bc2d95b328a0ae2bf01499a4e1647dc0ea97303d0009a4d055c8dbf847bf24f2afc224056b4d42d4b7825c
7
- data.tar.gz: 66d21dfaef3abee7cf51eb02780f17205e2cd4f9173148033f500b26363cb236633c6fc884e7d830d38a4655c1fcff4b3e598886c4a1e500ef07368434ef4575
6
+ metadata.gz: 7d9bfa94afeedd33f40c2ca5cd872067777cba0965fe24feb3219fa6014c638017aa25312bd7c35f49fdd69027391aeba6ef36ecb1edbca032f2736673de1285
7
+ data.tar.gz: eff8b1735469dec69c9bc587e093e90268b9dff773d783079425161f62170706b046197149a9bcbf6f8e3cd07353362b1e59e373ed9c162fbb53119cecf81c7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ ## 0.3.3 - 2025-12-11
4
+ * Add databases method to Superset::Dashboard::Datasets::List
5
+ * New class to get Superset::Database::Connection details
6
+
3
7
  ## 0.3.2 - 2025-11-28
4
8
  * Add require happi
5
9
 
@@ -23,6 +23,10 @@ module Superset
23
23
  self
24
24
  end
25
25
 
26
+ def databases
27
+ @databases ||= datasets_details.map {|d| d[:database] }.uniq
28
+ end
29
+
26
30
  def schemas
27
31
  @schemas ||= begin
28
32
  all_dashboard_schemas = datasets_details.map {|d| d[:schema] }.uniq
@@ -0,0 +1,26 @@
1
+ module Superset
2
+ module Database
3
+ class Connection < Superset::Request
4
+
5
+ attr_reader :id
6
+
7
+ def initialize(id)
8
+ @id = id
9
+ end
10
+
11
+ def self.call(id)
12
+ self.new(id).result
13
+ end
14
+
15
+ def connection_db_name
16
+ result['parameters']['database']
17
+ end
18
+
19
+ private
20
+
21
+ def route
22
+ "database/#{id}/connection"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superset
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jbat
@@ -246,6 +246,7 @@ files:
246
246
  - lib/superset/dashboard/list.rb
247
247
  - lib/superset/dashboard/put.rb
248
248
  - lib/superset/dashboard/warm_up_cache.rb
249
+ - lib/superset/database/connection.rb
249
250
  - lib/superset/database/export.rb
250
251
  - lib/superset/database/get.rb
251
252
  - lib/superset/database/get_catalogs.rb