Skip to content

Commit

Permalink
Update "Can't retrieve a list of commands" error message (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl authored Jan 18, 2022
1 parent b6e97cf commit 9eb13ea
Show file tree
Hide file tree
Showing 12 changed files with 846 additions and 866 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
echo "::set-output name=checksum::$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
- name: Lint plugin
continue-on-error: true
run: |
git clone https://github.com/grafana/plugin-validator
pushd ./plugin-validator/pkg/cmd/plugincheck
Expand Down Expand Up @@ -156,9 +157,3 @@ jobs:
asset_path: ./${{ steps.metadata.outputs.archive-checksum }}
asset_name: ${{ steps.metadata.outputs.archive-checksum }}
asset_content_type: text/plain

- name: Publish to Grafana.com
run: |
echo A draft release has been created for your plugin. Please review and publish it. Then submit your plugin to grafana.com/plugins by opening a PR to https://github.com/grafana/grafana-plugin-repository with the following entry:
echo
echo '{ "id": "${{ steps.metadata.outputs.plugin-id }}", "type": "${{ steps.metadata.outputs.plugin-type }}", "url": "https://github.com/${{ github.repository }}", "versions": [ { "version": "${{ steps.metadata.outputs.plugin-version }}", "commit": "${{ github.sha }}", "url": "https://github.com/${{ github.repository }}", "download": { "any": { "url": "https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive }}", "md5": "${{ steps.package-plugin.outputs.checksum }}" } } } ] }' | jq .
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## 2.2.0 (IN PROGRESS)
## 2.2.0 (2022-01-17)

### Features / Enhancements

Expand All @@ -10,6 +10,9 @@
- Upgrade to Grafana 8.3.0 (#93)
- Fix LGTM and Update Panel Options (#95)
- Add Redis CPU Usage panel (#96)
- Update Components naming (#97)
- Add CPU Usage Stacking and Gradient (#98)
- Update "Can't retrieve a list of commands" error message (#100)

## 2.1.0 (2021-11-10)

Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ ARG DEBIAN_FRONTEND=noninteractive
# Set Grafana options
ENV GF_ENABLE_GZIP="true"
ENV GF_USERS_DEFAULT_THEME="light"
ENV GF_FEATURE_TOGGLES_ENABLE="ngalert"
ENV GF_PLUGINS_PLUGIN_ADMIN_ENABLED="true"

# Paths
ENV GF_PATHS_PROVISIONING="/etc/grafana/provisioning"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
identification within third-party archives.

Copyright 2020 Redis Labs
Copyright 2021 Mikhail Volkov
Copyright 2021-2022 Volkov Labs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ services:
- GF_ENABLE_GZIP=true
- GF_USERS_DEFAULT_THEME=light
- GF_INSTALL_PLUGINS=redis-app
- GF_FEATURE_TOGGLES_ENABLE=ngalert
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
volumes:
- ./provisioning:/etc/grafana/provisioning
# Uncomment to preserve Grafana configuration
Expand Down
3 changes: 1 addition & 2 deletions docker-compose/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ services:
- GF_ENABLE_GZIP=true
- GF_USERS_DEFAULT_THEME=light
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=redis-app,redis-datasource
- GF_FEATURE_TOGGLES_ENABLE=ngalert
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
- GF_DEFAULT_APP_MODE=development
# Uncomment to run in debug mode
# - GF_LOG_LEVEL=debug
volumes:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ services:
- GF_ENABLE_GZIP=true
- GF_USERS_DEFAULT_THEME=light
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=redis-app,redis-datasource
- GF_FEATURE_TOGGLES_ENABLE=ngalert
- GF_PLUGINS_PLUGIN_ADMIN_ENABLED=true
- GF_DEFAULT_APP_MODE=development
# Uncomment to run in debug mode
# - GF_LOG_LEVEL=debug
volumes:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@grafana/toolkit": "8.3.0",
"@grafana/ui": "8.3.0",
"@monaco-editor/react": "^4.3.1",
"@types/enzyme": "^3.10.10",
"@types/enzyme": "^3.10.11",
"@types/enzyme-adapter-react-16": "^1.0.6",
"emotion": "11.0.0",
"enzyme": "^3.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataSourceList/DataSourceList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('DataSourceList', () => {
};
const TITLES = {
success: 'Working as expected',
error: `Can't retrieve a list of commands`,
error: `Can't retrieve a list of commands. Check that user has permissions to see a list of all commands.`,
};

beforeEach(() => {
Expand Down
4 changes: 3 additions & 1 deletion src/components/DataSourceList/DataSourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export const DataSourceList: FC<Props> = ({ dataSources }) => {
<section className="card-section card-list-layout-list">
<ol className="card-list">
{dataSources.map((redis, index) => {
const title = redis.commands?.length ? 'Working as expected' : "Can't retrieve a list of commands";
const title = redis.commands?.length
? 'Working as expected'
: "Can't retrieve a list of commands. Check that user has permissions to see a list of all commands.";
const fill = redis.commands?.length ? '#DC382D' : '#A7A7A7';
const url = redis.url ? redis.url : 'Not specified';

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"id": "redis-datasource",
"name": "Redis Data Source",
"type": "datasource",
"version": "^2.0.0"
"version": "^2.1.0"
}
]
},
Expand Down
Loading

0 comments on commit 9eb13ea

Please sign in to comment.