Torkel Ödegaard
5b0fe1a500
GrafanaUI: Fixes typescript error for missing css prop ( #31479 )
2021-02-25 16:16:32 +01:00
Jack Westbrook
ad68f3c5e6
DashboardSettings: Migrate Link Settings to React ( #31150 )
...
* feat(dashboardsettings): migrate dashboard links EmptyListCTA to react
* feat(dashboardsettings): initial commit of links settings migration to react
* feat(dashboardsettings): add links form functionality
* refactor(dashboardsettings): separate out linksettings components and concerns
* Updates to links list
* Form improvements
* test(dashboardlinks): update links so tests run
* refactor: move _.move to arrayMove for testing purposes
* test(dashboardsettings): initial commit of link settings tests
* refactor(app): put back lodash move method for backwards compatibility
* test(dashboardsettings): add links settings tests
* style(dashboardsettings): camelcase constants
* chore(dashboardsettings): delete old angular links settings view
* fix(dashboardsettings): forceupdate links on submenuVisibilityChanged and correct imports
* chore: remove reference to old angular link settings components
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2021-02-25 11:50:10 +01:00
kay delaney
47d2a8085b
Frontend changes for library panels feature ( #30653 )
...
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com >
2021-02-25 10:26:28 +00:00
Erik Sundell
df3d84f161
add aws config ( #31464 )
2021-02-25 09:56:42 +01:00
ying-jeanne
4a2e32b401
Revert ""Release: Updated versions in package to 7.4.3" ( #31444 )" ( #31452 )
...
This reverts commit 59d11ce84f .
2021-02-24 17:53:08 +01:00
Zoltán Bedi
c8deaeacce
Chore: Fix eslint react hook warnings in grafana-ui ( #31092 )
...
* Chore: Fix eslint react hook warnings in grafana-ui
* Remove unneeded exlcudes
* Address Andrej's review
2021-02-24 17:21:47 +01:00
Uchechukwu Obasi
8f7e26cd01
Chore: fixed incorrect naming for disable settings ( #31448 )
2021-02-24 15:37:40 +01:00
Zoltán Bedi
04a067e599
TraceViewer: Fix show log marker in spanbar ( #30742 )
...
* TraceViewer: Fix show log marker in spanbar
* Revert changes and use UITooltip and UIPopover
* Change logmarker color
* e2e: wait for trace view
* Record cypress run ONLY FOR TESTING
* Move fixture to e2e
* Get details TEST ONLY
* test
* Use jaeger's theme instead of grafana's
* Revert "Record cypress run ONLY FOR TESTING"
This reverts commit 35c087b3c5 .
* Revert "Move fixture to e2e"
This reverts commit fab88cc54c .
2021-02-24 14:18:52 +01:00
Uchechukwu Obasi
f3a7cb4709
NamedColorsPalette: updates story from knobs to controls ( #31443 )
2021-02-24 12:52:56 +01:00
Grot (@grafanabot)
59d11ce84f
"Release: Updated versions in package to 7.4.3" ( #31444 )
2021-02-24 12:36:51 +01:00
Uchechukwu Obasi
5af27cb43e
ColorPicker: updates story from knobs to controls ( #31429 )
...
* ColorPicker: updates story from knobs to controls
* changed story name to uppercase
* made some changes to story name
* made some changes
2021-02-24 12:35:35 +01:00
Uchechukwu Obasi
070d512c57
ClipboardButton: updates story from knobs to controls ( #31422 )
2021-02-24 10:47:53 +01:00
Arve Knudsen
357cd8eb81
CI: Upgrade Dockerfiles wrt. Go, Node, Debian ( #31407 )
...
* CI: Upgrade Dockerfiles wrt. Go 1.16, Node, Debian
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-02-24 08:52:48 +01:00
ying-jeanne
c57047a420
Postgres: allow providing TLS/SSL certificates as text in addition to file paths ( #30353 )
...
* postgres SSL certification
* add back the UI to configure SSL Authentication files by file path
* add backend logic
* correct unittest
* mini changes
* Update public/app/plugins/datasource/postgres/config_ctrl.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* mutex
* check file exist before remove
* change permission
* change default configuremethod to file-path
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* rename sslconfiguremethod to sslconfigurationmethod
* frontend update
* solve comments
* Postgres: Convert tests to stdlib
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Postgres: Be consistent about TLS/SSL terminology
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* fix init inconsistancy
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* naming convention
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Undo change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix TLS issue
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* change permissions
* Fix data source field names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Clean up HTML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Improve popover text
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix SSL input bug
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Undo unnecessary change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Clean up backend code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* More consistent naming
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Clean up code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Enforce certificate file permissions
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* add settings
* Undo changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* fix windows file path
* PostgresDataSource: Fix mutex usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/tsdb/postgres/postgres.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* fix compilation
* fix unittest
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* mock function
* change kmutex package
* add kmutex into middleware
* lock connection file per datasource
* add unittest regarding concurrency
* version should be equal
* adding unittest
* fix the loop
* fix unitest
* fix postgres unittst
* remove comments
* move dataPath from arg to tlsManager struct field
* Use DecryptedValues method
Use cached decrypted values instead of
using secure json data decrypt which will
decrypt unchanged values over and over again.
* remove unneeded mutex in tests and cleanup tests
* fix the lint
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2021-02-23 22:10:55 +01:00
Uchechukwu Obasi
af12e6d20e
Move NOOP_CONTROL to storybook utils and change to a standalone file ( #31421 )
2021-02-23 15:20:07 +01:00
Domas
3bc9f78d76
Logging: add frontend logging helpers to @grafana/runtime package ( #30482 )
2021-02-23 13:02:45 +02:00
Uchechukwu Obasi
9ce07b11d2
CallToActionCard: updates story from knobs to controls ( #31393 )
...
* CallToActionCard: updates story from knobs to controls
* used better naming for ctaElement control
* Capitalise Story names
* moved some changes to a separate PR
* fixes CI frontend build issue
2021-02-23 11:41:14 +01:00
Zoltán Bedi
67c215f5f1
Chore: Upgrade eslint packages ( #31408 )
2021-02-23 10:02:07 +01:00
Uchechukwu Obasi
6a4880ad14
Cascader: updates story from knobs to controls ( #31399 )
2021-02-23 09:50:52 +01:00
Alex Khomenko
6db4b40d5b
Data source list: Use Card component ( #31326 )
...
* Replace DataSourcesListItem with Card
* Add tests
* Remove unused styles
* Make card heading semi bold
* Make heading semi-bold
* Show type name instead of type id
* Fix key warning
* Update Card
* Fix tests
* Make typeName optional
* remove styling that was just a test
* Make typeName non-optional and fix tests
* Update list key
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2021-02-22 14:02:10 +02:00
Hugo Häggmark
9967f193c8
Revert "StoryBook: Introduces Grafana Controls ( #31351 )" ( #31388 )
...
This reverts commit c5797cc274 .
2021-02-22 11:04:27 +01:00
Hugo Häggmark
c5797cc274
StoryBook: Introduces Grafana Controls ( #31351 )
2021-02-22 09:53:06 +01:00
Torkel Ödegaard
3e55c967ee
Theming: Support for runtime theme switching and hooks for custom themes ( #31301 )
...
* WIP Custom themes
* Load custom themes from URL and via event
* Dynamic page background
* Header color change
* Fixing tests and emotion warnings
* Fixed test
* moving cx to getStyles
* Review fixes
* minor change
2021-02-20 09:02:06 +01:00
Torkel Ödegaard
ce63df425d
TimeSeriesPanel: Fixes overlapping time axis ticks ( #31332 )
...
* GraphNG: Fixes overlapping time axis ticks
* Review tweaks
2021-02-19 12:10:48 +01:00
Oscar Kilhed
aeb4bcb3ed
Grafana/UI: Add basic legend to the PieChart ( #31278 )
...
* Add basic legend to the PieChart
* Remove console log
* Remove PieChartWithLegend and refactor PieChart a bit
* Use FALLBACK_COLOR
* Refactor PieChart
* Change back to [function]
2021-02-19 11:49:40 +01:00
Arve Knudsen
a20119db9f
Chore: Upgrade golangci-lint ( #31330 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-02-18 19:24:04 +01:00
Torkel Ödegaard
e9576853c1
Table: Fixes issue with fixed min and auto max with bar gauge cell ( #31316 )
2021-02-18 16:56:47 +01:00
Uchechukwu Obasi
debb82e124
BarGuage: updates story from knobs to controls ( #31223 )
...
* BarGuage: updated story from knobs to controls
* fixes type errors and disables unused controls
* update controls to support some BarGauge props
* changed addBarGaugeStory to component and removed closure
* cleaned up to be more readable
* more refactoring to be readable
* final touches...
* fixed disabled controls issue
* moved NOOP_CONTROL declaration to a seperate PR
* made some tweaks to the story names
2021-02-18 16:03:56 +01:00
Uchechukwu Obasi
0e63dfafbe
ButtonCascader: updates story from knobs to controls ( #31288 )
...
* ButtonCascader: updates story from knobs to controls
* some nit fixes
2021-02-18 13:52:09 +01:00
Vicky Lee
7f8fb2b55f
test: allow check for Table as well as Graph for Explore e2e flow ( #31290 )
...
* use table for explore flow screenshot
* reverse logic
* update matchExploreTable type
2021-02-18 09:11:30 +00:00
Alex Khomenko
e932d5bb09
Grafana-UI: Update tooltip type ( #31310 )
2021-02-18 11:10:11 +02:00
Uchechukwu Obasi
14afa167f4
BigValue: updates story from knobs to controls ( #31240 )
...
* BigValue: updates story from knobs to controls
* some refactoring to make code more readable
* made some changes
2021-02-17 15:05:40 +01:00
Alex Khomenko
c21e45e428
Search: display sort metadata ( #31167 )
...
* Search: display metadata
* Search: update SortPicker icon
* Search: display folder meta data
* Search: reset sort picker on layout change
* Search: align tags in Card component
* Search: replace hyphen with dash
* Search: preserve sort state on layout change
* Search: update tests
* Search: fix tests
* Update pkg/services/search/hits.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update public/app/features/search/types.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Search: fix type error
* Search: add General folder name and adjust icon margin
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
2021-02-17 14:06:19 +02:00
Dominik Prokop
0253685304
Make Datetime local (No date if today) working ( #31274 )
2021-02-17 12:17:29 +01:00
Jack Westbrook
4b25310941
Chore: grafana-toolkit uses grafana-ui and grafana-data workspaces ( #30701 )
...
* chore(grafana-toolkit): use workspace versions of grafana/ui and grafana/data
* chore: replace references to popperjs 1 typings with popperjs 2 typings
2021-02-16 19:33:50 +01:00
Josh Hunt
85e186cf10
Grafana-UI: Add id to Select to make it easier to test ( #31230 )
...
* Prettier formatting
* Grafana-UI: Add support for id and inputId props to Select
* Grafana-UI: Add aria-label to Select
* Grafana-UI: InlineField and Field get ID from inputId prop
For Select
* Fix tests using TagFilter
* Update Select prop documentation
* Update Field tests to use screen instead
* Fix the last few tests
2021-02-16 16:19:55 +00:00
kay delaney
38daf0cba6
UI/Card: Fix handling of 'onClick' callback ( #31225 )
2021-02-16 13:11:37 +00:00
Torkel Ödegaard
4dfce12a81
TagsInput: Design update and component refactor ( #31163 )
...
* TagsInput: Design update and component refactor
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
* Updated
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
2021-02-16 09:39:11 +01:00
Hugo Häggmark
f993f2c7cc
Variables: Adds back default option for data source variable ( #31208 )
...
* Variables: Adds back default option for data source variable
* Chore: updates after PR comments
2021-02-16 06:51:34 +01:00
Dominik Prokop
9c08b34e71
GraphNG: refactor core to class component ( #30941 )
...
* First attempt
* Get rid of time range as config invalidation dependency
* GraphNG class refactor
* Get rid of DataFrame dependency from Plot component, get rid of usePlotData context, rely on XYMatchers for data inspection from within plugins
* Bring back legend
* Fix Sparkline
* Fix Sparkline
* Sparkline update
* Explore update
* fix
* BarChart refactor to class
* Tweaks
* TS fix
* Fix tests
* Tests
* Update packages/grafana-ui/src/components/uPlot/utils.ts
* Update public/app/plugins/panel/timeseries/plugins/ContextMenuPlugin.tsx
* GraphNG: unified legend for BarChart, GraphNG & other uPlot based visualizations (#31175 )
* Legend experiment
* Nits
2021-02-15 16:46:29 +01:00
Torkel Ödegaard
50faeb3078
DataSourceSrv: Filter out non queryable data sources by default ( #31144 )
2021-02-15 11:27:16 +01:00
Andrej Ocenas
b0bd242eda
Explore/Refactor: Simplify URL handling ( #29173 )
...
* Inline datasource actions into initialisation
* Simplify url handling
* Add comments
* Remove split property from state and split Explore.tsx to 2 components
* Add comments
* Simplify and fix splitOpen and splitClose actions
* Update public/app/features/explore/ExplorePaneContainer.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
* Update public/app/features/explore/state/explorePane.test.ts
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
* Update public/app/features/explore/Wrapper.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* Fix test
* Fix lint
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2021-02-12 21:33:26 +01:00
Uchechukwu Obasi
100e7eb992
Alert: update story to use controls ( #31145 )
...
* Alert: updated story to use Controls
* updated some changes
2021-02-12 16:45:05 +01:00
Torkel Ödegaard
e38fc6939c
DataSourceSettings: Fixes add header button, it should not trigger a save & test action ( #31135 )
2021-02-11 15:22:44 +01:00
Torkel Ödegaard
cb5928fdb7
PieChart: Progress on new core pie chart ( #28020 )
...
Use visx for the Pie chart plugin.
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com >
2021-02-11 14:32:33 +01:00
Dominik Prokop
8d339a279b
Eslint: no-duplicate-imports rule (bump grafana-eslint-config) ( #30989 )
...
* Eslint: no-duplicate-imports rule (bump grafana-eslint-config)
* Chore: Fix duplicate imports (#31041 )
* Rebased this branch into eslint-no-duplicate-imports
* updated some changes
* merged uncaught duplicate imports
* fixes frontend test- I hope
* fixes e2e test- I hope
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com >
2021-02-11 13:45:25 +01:00
Torkel Ödegaard
699724581d
Transforms: Fixes Outer join issue with duplicate field names not getting the same unique field names as before ( #31121 )
...
* Transformations: Fixed duplicate name issue in outer join transform
* Think this is working
* Updated tests
* Updated snapshot
* Fix broken tests (#31123 )
* Fix broken tests
* Fix remaining faling tests
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
2021-02-11 11:40:39 +00:00
Brian Gann
25117f5af5
area/grafana/e2e: ginstall should pull version specified ( #31056 )
...
* fall back to version specified
* update docker image and bump version
* update go version, linter, and codeclimate
2021-02-10 12:43:02 -06:00
Zoltán Bedi
cc463f30a4
Exemplars: Change CTA style ( #30880 )
...
* Exemplars: Change CTA style
* Address review feedbacks
* Fix table column aligning
* Minor alignments + uncontrolled component warning fix
2021-02-10 18:02:48 +01:00
Vicky Lee
7fe9ac3bad
update configurePanel for 7.4.0 changes ( #31093 )
2021-02-10 13:50:45 +00:00