gazer 0.3.16 → 0.3.18
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/.github/workflows/p3-issue-label.yml +1 -1
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/ruby-ci.yml +7 -8
- data/.github/workflows/triage-issue-label.yml +2 -2
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/lib/gzr/modules/dashboard.rb +11 -1
- data/lib/gzr/modules/session.rb +2 -2
- data/lib/gzr/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: bbcde8c80190b5590c11a7337e5295504f2e035f4d178d78152aa7fb930cf37f
|
4
|
+
data.tar.gz: dd411c6f1712aacee15d3456b123702f4d78571c28a1401464c3f4dbe77df265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a9883b85bee2116b9fdaec0ec3ed63c0d4d1edec687e750afcf464ce7ef5c27084a6cb27b35fd912a62c414de02075c4ddbe887de91ebb1b74d26029a187cde
|
7
|
+
data.tar.gz: c6bbdd6254eceff942c66b98b7a04eb6dddacbd321a481dbd7747bcf6aa157e7d856abe757ba1122d4e59e826aa8836def7b08ed2dce77838b4467465b299934
|
@@ -12,8 +12,8 @@ jobs:
|
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
steps:
|
14
14
|
# Checkout code
|
15
|
-
- uses: actions/checkout@
|
16
|
-
- uses:
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- uses: googleapis/release-please-action@v4
|
17
17
|
id: release
|
18
18
|
with:
|
19
19
|
release-type: ruby
|
@@ -29,14 +29,14 @@ jobs:
|
|
29
29
|
|
30
30
|
steps:
|
31
31
|
- name: Cancel Previous Runs
|
32
|
-
uses: styfle/cancel-workflow-action@0.
|
32
|
+
uses: styfle/cancel-workflow-action@0.12.1
|
33
33
|
with:
|
34
34
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
35
35
|
|
36
|
-
- uses: actions/checkout@
|
36
|
+
- uses: actions/checkout@v4
|
37
37
|
|
38
38
|
- name: Authenticate to Google Cloud
|
39
|
-
uses: google-github-actions/auth@
|
39
|
+
uses: google-github-actions/auth@v2
|
40
40
|
with:
|
41
41
|
credentials_json: ${{ secrets.GCP_AR_READER_SA_KEY }}
|
42
42
|
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
@@ -44,7 +44,7 @@ jobs:
|
|
44
44
|
export_environment_variables: true
|
45
45
|
|
46
46
|
- name: Set up Cloud SDK
|
47
|
-
uses: google-github-actions/setup-gcloud@
|
47
|
+
uses: google-github-actions/setup-gcloud@v2
|
48
48
|
|
49
49
|
- name: Authenticate Artifact Repository
|
50
50
|
run: gcloud auth configure-docker us-west1-docker.pkg.dev --quiet
|
@@ -231,7 +231,7 @@ jobs:
|
|
231
231
|
|
232
232
|
- name: Upload ts unit test results
|
233
233
|
if: ${{ always() }}
|
234
|
-
uses: actions/upload-artifact@
|
234
|
+
uses: actions/upload-artifact@v4
|
235
235
|
with:
|
236
236
|
name: ruby-ci-test-results-${{ matrix.looker }}
|
237
237
|
path: rspec.xml
|
@@ -243,19 +243,18 @@ jobs:
|
|
243
243
|
|
244
244
|
steps:
|
245
245
|
- name: Download Artifacts
|
246
|
-
uses: actions/download-artifact@
|
246
|
+
uses: actions/download-artifact@v4
|
247
247
|
with:
|
248
248
|
path: artifacts
|
249
249
|
|
250
250
|
- name: Publish Test Results
|
251
|
-
uses: EnricoMi/publish-unit-test-result-action@
|
251
|
+
uses: EnricoMi/publish-unit-test-result-action@v2
|
252
252
|
with:
|
253
253
|
# Cosmetic issue with `check_name` being associated to the wrong
|
254
254
|
# workflow: https://github.com/EnricoMi/publish-unit-test-result-action/issues/12
|
255
255
|
check_name: Ruby-CI Tests
|
256
256
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
257
257
|
report_individual_runs: true
|
258
|
-
hide_comments: orphaned commits
|
259
258
|
check_run_annotations: 'none'
|
260
259
|
compare_to_earlier_commit: false
|
261
260
|
files: 'artifacts/**/*.xml'
|
@@ -9,7 +9,7 @@ jobs:
|
|
9
9
|
permissions:
|
10
10
|
issues: write
|
11
11
|
steps:
|
12
|
-
- uses: actions/github-script@
|
12
|
+
- uses: actions/github-script@v7
|
13
13
|
with:
|
14
14
|
script: |
|
15
15
|
github.rest.issues.addLabels({
|
@@ -17,4 +17,4 @@ jobs:
|
|
17
17
|
owner: context.repo.owner,
|
18
18
|
repo: context.repo.repo,
|
19
19
|
labels: ["need triage"]
|
20
|
-
})
|
20
|
+
})
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.3.18](https://github.com/looker-open-source/gzr/compare/v0.3.17...v0.3.18) (2024-08-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* send wanring and error text to instead of ([0ba321c](https://github.com/looker-open-source/gzr/commit/0ba321cfce3e9e2021b7ffaf458d87961667caaa))
|
9
|
+
|
10
|
+
## [0.3.17](https://github.com/looker-open-source/gzr/compare/v0.3.16...v0.3.17) (2024-07-19)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* continue after 403 error on dashboard cat getting alerts if user is not admin ([5074ec3](https://github.com/looker-open-source/gzr/commit/5074ec3ddc0d1278693fdec5b42d88602bb3ee46))
|
16
|
+
|
3
17
|
## [0.3.16](https://github.com/looker-open-source/gzr/compare/v0.3.15...v0.3.16) (2024-06-27)
|
4
18
|
|
5
19
|
|
data/Gemfile.lock
CHANGED
@@ -287,7 +287,17 @@ module Gzr
|
|
287
287
|
rewrite_color_palette!(o,default_colors)
|
288
288
|
end
|
289
289
|
end
|
290
|
-
alerts =
|
290
|
+
alerts = []
|
291
|
+
begin
|
292
|
+
alerts = search_alerts(fields: 'id,dashboard_element_id', group_by: 'dashboard', all_owners: true)
|
293
|
+
rescue LookerSDK::Forbidden => e
|
294
|
+
say_warning "Must be an admin user to look up all alerts"
|
295
|
+
begin
|
296
|
+
alerts = search_alerts(fields: 'id,dashboard_element_id', group_by: 'dashboard')
|
297
|
+
rescue LookerSDK::Error => e
|
298
|
+
say_warning "Error looking up alerts owned by user."
|
299
|
+
end
|
300
|
+
end
|
291
301
|
say_warning alerts if @options[:debug]
|
292
302
|
data[:dashboard_elements].each do |e|
|
293
303
|
alerts_found = alerts.select { |a| a[:dashboard_element_id] == e[:id]}
|
data/lib/gzr/modules/session.rb
CHANGED
@@ -38,11 +38,11 @@ module Gzr
|
|
38
38
|
output.puts pastel.green data
|
39
39
|
end
|
40
40
|
|
41
|
-
def say_warning(data, output: $
|
41
|
+
def say_warning(data, output: $stderr)
|
42
42
|
output.puts pastel.yellow data
|
43
43
|
end
|
44
44
|
|
45
|
-
def say_error(data, output: $
|
45
|
+
def say_error(data, output: $stderr)
|
46
46
|
output.puts pastel.red data
|
47
47
|
end
|
48
48
|
|
data/lib/gzr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gazer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike DeAngelo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06
|
11
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-reader
|