blazer 2.4.4 → 2.4.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of blazer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -1
- data/README.md +53 -9
- data/app/assets/javascripts/blazer/bootstrap.js +300 -97
- data/app/assets/javascripts/blazer/vue.js +10754 -9687
- data/app/assets/stylesheets/blazer/bootstrap.css.erb +529 -451
- data/app/controllers/blazer/queries_controller.rb +2 -2
- data/app/models/blazer/query.rb +1 -1
- data/app/views/blazer/queries/run.html.erb +4 -2
- data/lib/blazer/adapters/athena_adapter.rb +35 -19
- data/lib/blazer/adapters/bigquery_adapter.rb +1 -1
- data/lib/blazer/adapters/elasticsearch_adapter.rb +7 -3
- data/lib/blazer/adapters/opensearch_adapter.rb +48 -0
- data/{app/mailers → lib}/blazer/check_mailer.rb +0 -0
- data/{app/mailers → lib}/blazer/slack_notifier.rb +0 -0
- data/lib/blazer/version.rb +1 -1
- data/lib/blazer.rb +8 -1
- data/licenses/LICENSE-bootstrap.txt +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af432d074376958f2b9f7efdeaae05a0f0c0a1fe34cc38ce537a0511985edfd1
|
4
|
+
data.tar.gz: dd0fab9ec30db7b870ae6a8afd352093cccf3be75d2c1a0e320ba7106df11f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a78f82ce3d5544598ad363c4d31f2c676bf4be76844d81b0b02bc778072f8557c1da458cd1040fb1c9464b61fd677c4fbece3e310068acb6c09f769bf032aa7
|
7
|
+
data.tar.gz: ca0eb25f4e9a5826116d4f2a76d5fe55f71772633b557accea0aa85678e3ff4895623e0832a85de4894f18c3620180d2b04e5f9f03db51730684198e8f914a8f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,29 @@
|
|
1
|
+
## 2.4.8 (2021-12-07)
|
2
|
+
|
3
|
+
- Added support for OpenSearch
|
4
|
+
- Removed `elasticsearch-xpack` dependency for Elasticsearch
|
5
|
+
|
6
|
+
## 2.4.7 (2021-09-25)
|
7
|
+
|
8
|
+
- Made Action Mailer optional
|
9
|
+
- Fixed error with multiple maps on dashboard
|
10
|
+
|
11
|
+
## 2.4.6 (2021-09-20)
|
12
|
+
|
13
|
+
- Added support for workgroup with Amazon Athena
|
14
|
+
- Added casting for timestamp with time zone columns with Amazon Athena
|
15
|
+
- Added support for setting credentials in config file with Amazon Athena
|
16
|
+
- Made output location optional with Amazon Athena
|
17
|
+
- Fixed casting error for `NULL` values with Amazon Athena
|
18
|
+
- Fixed issue with Google BigQuery only showing first page of results
|
19
|
+
|
20
|
+
## 2.4.5 (2021-09-15)
|
21
|
+
|
22
|
+
- Improved fix for some forked queries not appearing on home page
|
23
|
+
|
1
24
|
## 2.4.4 (2021-09-15)
|
2
25
|
|
3
|
-
- Fixed issue with forked queries not appearing on home page
|
26
|
+
- Fixed issue with some forked queries not appearing on home page
|
4
27
|
|
5
28
|
## 2.4.3 (2021-07-27)
|
6
29
|
|
data/README.md
CHANGED
@@ -592,6 +592,7 @@ data_sources:
|
|
592
592
|
- [MongoDB](#mongodb-1)
|
593
593
|
- [MySQL](#mysql-1)
|
594
594
|
- [Neo4j](#neo4j)
|
595
|
+
- [OpenSearch](#opensearch)
|
595
596
|
- [Oracle](#oracle)
|
596
597
|
- [PostgreSQL](#postgresql-1)
|
597
598
|
- [Presto](#presto)
|
@@ -620,9 +621,49 @@ data_sources:
|
|
620
621
|
my_source:
|
621
622
|
adapter: athena
|
622
623
|
database: database
|
624
|
+
|
625
|
+
# optional settings
|
623
626
|
output_location: s3://some-bucket/
|
627
|
+
workgroup: primary
|
628
|
+
access_key_id: ...
|
629
|
+
secret_access_key: ...
|
630
|
+
```
|
631
|
+
|
632
|
+
Here’s an example IAM policy:
|
633
|
+
|
634
|
+
```json
|
635
|
+
{
|
636
|
+
"Version": "2012-10-17",
|
637
|
+
"Statement": [
|
638
|
+
{
|
639
|
+
"Effect": "Allow",
|
640
|
+
"Action": [
|
641
|
+
"athena:GetQueryExecution",
|
642
|
+
"athena:GetQueryResults",
|
643
|
+
"athena:StartQueryExecution"
|
644
|
+
],
|
645
|
+
"Resource": [
|
646
|
+
"arn:aws:athena:region:account-id:workgroup/primary"
|
647
|
+
]
|
648
|
+
},
|
649
|
+
{
|
650
|
+
"Effect": "Allow",
|
651
|
+
"Action": [
|
652
|
+
"glue:GetTable",
|
653
|
+
"glue:GetTables"
|
654
|
+
],
|
655
|
+
"Resource": [
|
656
|
+
"arn:aws:glue:region:account-id:catalog",
|
657
|
+
"arn:aws:glue:region:account-id:database/default",
|
658
|
+
"arn:aws:glue:region:account-id:table/default/*"
|
659
|
+
]
|
660
|
+
}
|
661
|
+
]
|
662
|
+
}
|
624
663
|
```
|
625
664
|
|
665
|
+
You also need to configure [S3 permissions](https://aws.amazon.com/premiumsupport/knowledge-center/access-denied-athena/).
|
666
|
+
|
626
667
|
### Amazon Redshift
|
627
668
|
|
628
669
|
Add [activerecord6-redshift-adapter](https://github.com/kwent/activerecord6-redshift-adapter) or [activerecord5-redshift-adapter](https://github.com/ConsultingMD/activerecord5-redshift-adapter) to your Gemfile and set:
|
@@ -703,7 +744,7 @@ data_sources:
|
|
703
744
|
|
704
745
|
### Elasticsearch
|
705
746
|
|
706
|
-
Add [elasticsearch](https://github.com/elastic/elasticsearch-ruby)
|
747
|
+
Add [elasticsearch](https://github.com/elastic/elasticsearch-ruby) to your Gemfile and set:
|
707
748
|
|
708
749
|
```yml
|
709
750
|
data_sources:
|
@@ -780,6 +821,17 @@ data_sources:
|
|
780
821
|
url: http://user:password@hostname:7474
|
781
822
|
```
|
782
823
|
|
824
|
+
### OpenSearch
|
825
|
+
|
826
|
+
Add [opensearch-ruby](https://github.com/opensearch-project/opensearch-ruby) to your Gemfile and set:
|
827
|
+
|
828
|
+
```yml
|
829
|
+
data_sources:
|
830
|
+
my_source:
|
831
|
+
adapter: opensearch
|
832
|
+
url: http://user:password@hostname:9200
|
833
|
+
```
|
834
|
+
|
783
835
|
### Oracle
|
784
836
|
|
785
837
|
Add [activerecord-oracle_enhanced-adapter](https://github.com/rsim/oracle-enhanced) and [ruby-oci8](https://github.com/kubo/ruby-oci8) to your Gemfile and set:
|
@@ -975,14 +1027,6 @@ override_csp: true
|
|
975
1027
|
|
976
1028
|
## Upgrading
|
977
1029
|
|
978
|
-
### 2.4.4
|
979
|
-
|
980
|
-
Due to a bug, newly forked queries stopped appearing on the home page when archiving was enabled. To restore them, run:
|
981
|
-
|
982
|
-
```ruby
|
983
|
-
Blazer::Query.where(status: nil).update_all(status: "active")
|
984
|
-
```
|
985
|
-
|
986
1030
|
### 2.3
|
987
1031
|
|
988
1032
|
To archive queries, create a migration
|