superset 0.2.4 → 0.2.5
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/CHANGELOG.md +3 -0
- data/lib/superset/dataset/refresh.rb +38 -0
- data/lib/superset/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78b162c6717782494955c5f03e690639d0d8b2e3b32ce470ca8c2bc702a07006
|
4
|
+
data.tar.gz: e29075c257b3dceeaa66c4c8c658e525b1e409520497552ab062525ad9523d97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b809cc5af02b9133b983bb10952830b4749b7249706667292ed6d1fcdbbaa3f67b8e99c9f12dd71fbc0141b599448dcdb939a3e4c720fd1b31703959ac6e0fe
|
7
|
+
data.tar.gz: c90cb4464d4f267367d3a53d5b79c55aa5d5acdcdb4ad2ca6af2483d3edb3603a1056447c888a0b643aa3e21ebdd387486d1f2319bdf97941a97729d42e06c3e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## Change Log
|
2
2
|
|
3
|
+
## 0.2.5 - 2025-05-22
|
4
|
+
* add refresh dataset call in `Superset::Dataset::Refresh.call(id)`
|
5
|
+
|
3
6
|
## 0.2.4 - 2025-01-29
|
4
7
|
* modifies the `Superset::Dashboard::Datasets::List.new(id).schemas` to optionally include filter datasets as well.
|
5
8
|
* modifies the `Superset::Dashboard::Embedded::Get.new` to accept dashboard_id as named parameter
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Description: This endpoint has the same functionality as 'Sync Columns from Source' button in the Superset UI on a dataset.
|
4
|
+
# Executes the dataset against the source to confirm the query runs and then sync and cache dataset columns.
|
5
|
+
# NOTICE: only owners of the dataset can refresh it
|
6
|
+
#
|
7
|
+
# Usage: Superset::Dataset::Refresh.call(id)
|
8
|
+
|
9
|
+
module Superset
|
10
|
+
module Dataset
|
11
|
+
class Refresh < Superset::Request
|
12
|
+
|
13
|
+
attr_reader :id
|
14
|
+
|
15
|
+
def initialize(id)
|
16
|
+
@id = id
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.call(id)
|
20
|
+
self.new(id).perform
|
21
|
+
end
|
22
|
+
|
23
|
+
def perform
|
24
|
+
response
|
25
|
+
end
|
26
|
+
|
27
|
+
def response
|
28
|
+
@response ||= client.put(route)
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def route
|
34
|
+
"dataset/#{id}/refresh"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/superset/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jbat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -257,6 +257,7 @@ files:
|
|
257
257
|
- lib/superset/dataset/get.rb
|
258
258
|
- lib/superset/dataset/list.rb
|
259
259
|
- lib/superset/dataset/put.rb
|
260
|
+
- lib/superset/dataset/refresh.rb
|
260
261
|
- lib/superset/dataset/update_query.rb
|
261
262
|
- lib/superset/dataset/update_schema.rb
|
262
263
|
- lib/superset/dataset/warm_up_cache.rb
|