* TablePanel: Fix JSON tooltip positioning (#24420)
* Fix block element and overflow
* Width not needed
* Add to styles file
(cherry picked from commit f714357fbf)
* Minor UI touches (#24371)
* Justify to alignment in stat
* No stats label in inspect
* Use sentence case in panel names
* typos
* typo
* Typo
* Query -> query options
* prettier
* Transformer -> transform data
* Do not show deprecated plugins in the viz picker
* Update viz picker layout
(cherry picked from commit 63d25944c4)
* Reporting: tzdata is needed for reporting (#24422)
(cherry picked from commit de8c1b9ad7)
* Storybook: Position panel to right (#24429)
(cherry picked from commit 8257633b1d)
* Chore: move dataFramesReceived event to @grafana/data (#24443)
(cherry picked from commit 7e6ac12b9a)
* Explore: Revert QueryRows refactor (#24444)
While query fields should not rely on getting unmounted when the data source changes (and instead react to that change in e.g. componentDidUpdate()), query fields other than PromQueryField still rely on this.
(cherry picked from commit 221042c293)
* Logs: Clicking "Load more" from context overlay doesn't expand log row (#24299)
Closes#24184
(cherry picked from commit 35c097e475)
* Datasource/CloudWatch: Add data links to CloudWatch logs for deep linking to AWS (#24334)
* Datasource/CloudWatch: Fix encoding of CloudWatch Logs deep link URL
* Adds data links to cloudwatch logs responses for deep linking to aws console
* Implements PR feedback
(cherry picked from commit a655aa1ca8)
* OldTable: Make old table options align & look better (#24485)
(cherry picked from commit e333d61b97)
* Buttons: Use text color (#24439)
(cherry picked from commit c671fdbbf8)
* StatPanels: Hide calc option if all values is selected (#24416)
(cherry picked from commit 352f22042c)
* grafana/toolkit: Support paging in cherrypick task (#24402)
* Support paging in cherrypick task
* Update packages/grafana-toolkit/src/cli/tasks/cherrypick.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update packages/grafana-toolkit/src/cli/tasks/cherrypick.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Do not cherry pick closed PRs
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
(cherry picked from commit c5fc18ac02)
* Reduce Transform: sort order is preserved as entered by user (#24494)
(cherry picked from commit e341d4b26f)
* TimeZone: added e2e tests for the custom time zone support. (#24442)
(cherry picked from commit a521a39ebf)
* CloudWatch/Logs: Add error message when log groups are not selected (#24361)
* Add error message
* Fix empty check
(cherry picked from commit d385045d16)
* CloudWatch/Log: Fix field autocomplete suggestions inside function (#24406)
* Fix autocomplete inside function
* Remove debug log
* Add comment and return type
(cherry picked from commit b16202acc2)
* Editor: No default suggestion selected (#24479)
* QueryField: No default suggestion selected
It's been a long-standing issue that careless typing lead to unwanted
tab completion insertions. With this change the completion item list no
longer selects the first item by default. The user has to actively click
ArrowDown to select the first one.
* Added type export
* Remove width limit of typeahead list
(cherry picked from commit 34f61934a1)
* TablePanel: Fixed persisting column resize time series fields (#24505)
(cherry picked from commit f13a15ae48)
* PluginsList: Remove unused panel options (#24501)
* Remove unused panel options
* satisfy ts
(cherry picked from commit 2e69b86990)
* CloudWatch/Logs: Language provider refactor and test (#24425)
(cherry picked from commit 876011d931)
* Datasource/CloudWatch: Usability improvements (#24447)
* Datasource/CloudWatch: Improve handling of long-running queries
* Datasource/CloudWatch: Make order of dataframe fields consistent
(cherry picked from commit c26374b0b2)
* CloudWatch/Logs: Fix suggestions of fields after comma (#24520)
(cherry picked from commit 2d29997bda)
* GraphLegend: Only display scrollbar if necessary (#24527)
(cherry picked from commit cb74bc6828)
* CloudWatch/Logs: Fix fields not being refetched when log group changed (#24529)
(cherry picked from commit 55533d12fd)
* Datasource/CloudWatch: Switch to metrics mode, logs API, when choosing stats query from cheatsheet (#24398)
* Datasource/CloudWatch: Switch to metrics mode, logs API, when choosing stats query from cheatsheet
(cherry picked from commit ae7f0aeb7a)
* azuremonitor: Deep linking from Log Analytic queries to the Azure Portal (#24417)
* azuremonitor: add gzipped and base64 encoded query to metadata
for Azure Log Analytic query responses
* azure monitor: add fields to metadata for log analytics
* azuremonitor: correction to text in query editor
* azuremonitor: adds subscription id to result metadata
* azuremonitor: build deep link url for Log Analytics
Most of the information needed for building the url
comes from the backend. The workspace friendly name
and the resource group that the workspace belongs
to are fetched in a separate API call. This call is
cached otherwise there would be a workspaces call
per query on the dashboard.
* docs: azure log analytics deep linking
* Apply suggestions from code review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* docs: fixing review comments for azure monitor
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
(cherry picked from commit 67ed579647)
* Datasource/CloudWatch: Results of CloudWatch Logs stats queries are now grouped (#24396)
* Datasource/CloudWatch: Results of CloudWatch Logs stats queries are now grouped
(cherry picked from commit db91961405)
* PanelEditor: Fixed issue changing a panel from transparent back to normal (#24483)
* PanelModel: Fixed issues with persisting some changes
* Fixed other issues
(cherry picked from commit 5caf7f59e6)
* LabelsToFields: avoid MutableDataFrame (#24493)
(cherry picked from commit c8d3d15292)
* Prometheus: Show results of instant queries only in table (#24508)
* Show results of instant queries only in table, remove them from graph
* Update table model
(cherry picked from commit 143a26769b)
* PanelEditor: Fix so defaults is selected when datasource can't be found. (#24526)
(cherry picked from commit cb4266bae0)
* Graphite: makes query annotations work again (#24556)
(cherry picked from commit 7992f8bfbc)
* azuremonitor: limit macro regex to known macros (#24528)
(cherry picked from commit 64046e9a27)
* TimePicker: fixed so you can enter a relative range in the time picker without being converted to absolute range (#24534)
* fixed so you can enter a relative date in the time range form.
* did some small adjustments to make sure proper value is stored.
(cherry picked from commit 28f54bc2f7)
* Admin Settings: makes long settings line break (#24559)
(cherry picked from commit 74ddfe07a2)
* Update light variable theme for dropdown (#24566)
(cherry picked from commit 67dab0b767)
* UI spelling: use US form of visualization (#24558)
(cherry picked from commit bffa0fa4f6)
* e2e: adds verify release (#24568)
(cherry picked from commit 7d800e7318)
* Search: Save folder expanded state (#24496)
* Search: Save folder expanded state
* Search: Remember expanded state on search close
(cherry picked from commit 0396b220a3)
* Data sources: Don't fail if URL doesn't specify protocol (#24497)
(cherry picked from commit 164242f5fd)
* Security: Tag value sanitization fix in OpenTSDB data source (#24539)
Adds HTML sanitization to the tag value of the OpenTSDB datasource.
Fixes#24537
(cherry picked from commit 125ba95686)
* Field: UI & Code consistency Title -> Display name (#24507)
* Field: Change getFieldTitle to getFieldDisplayNamne and change the NAME of the title field config from Title to Display name
* Review feedback
* fixed unit tests
* Rename fieldConfig.title to displayName
* Fixed tests
* Added migration
* Renamed getFrameDisplayTitle to getFrameDisplayName
(cherry picked from commit 8de10a8b9f)
* Do not set insertText if the same as label (#24581)
(cherry picked from commit 20f0ee2f22)
* Plugins: Fix manifest verification (#24573)
(cherry picked from commit 892f9f789c)
* Search: Safari UI fixes (#24567)
* Search: Add height: 100% to page containers
* Search: Reset TagOption display to block
* Search: Add title to result list
* Search: Use flex-basis vs height
* Search: Remove IconButton
* Search: Do not shrink select options
* Search: Fix hasEditPermissionInFolders
* Search: Update tests
* Search: Fix prop
* Remove select wrapper class
* Update snapshot
(cherry picked from commit 15ac76a47b)
* OrgUsersTable: Fix width when there are long cells in table (#24533)
* Set width for cells and text overflow
* Add title and update snapshot
(cherry picked from commit 0c1f1dd8fd)
* Loki: Allow multiple derived fields with the same name (#24437)
(cherry picked from commit a50cb6aa1f)
* Datasource/CloudWatch: Fixes various autocomplete issues (#24583)
(cherry picked from commit c1919944ea)
* CircleCI: Update grabpl to 0.4.5 in order to include manifest with GEL (#24577)
* CircleCI: Update grabpl to 0.4.5
* GEL: Upgrade version
(cherry picked from commit 824eb94efe)
* CloudWatch/Logs: Make stats hint show consistently (#24392)
(cherry picked from commit 5feef22034)
* Table: fixes Cannot read property subRows of null (#24578)
(cherry picked from commit 2d19c046f2)
* TimePicker: some fixes and polish after testing feedback (#24585)
* make sure we render the delaynow value from dashboard to the time picker settings.
* Added the time zone in the tooltip.
(cherry picked from commit cab066f8ce)
* Onboarding: New getting started panel (#23826)
* image and card component
* change height of getting started panel
* progress
* setup basic step
* advanced steps
* step forward and backward
* do checks
* fix button size
* minor styling on butttons
* add correct links
* save tutorial click in localstorage
* types and gradients
* fix gradients
* use spacing variable
* lots of responsiveness
* add links to help
* Getting started work
* redo according to split panel design
* minor touch ups
* new background images
* split up docs card to different hrefs
* welcome bar touch ups
* hide icon on small screens
* transparent false on welcome banner
* fix urls
* source tag in welcome urls
* move images to panel dir, removed unused images
* Nicer loading message
* make the cards look nicer on wide screens
* append utm tag on render instead
* replace width with margin
* new background image for light
* remove target on a element
* removing buttonselect, add tag to href
* more polishing
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
(cherry picked from commit 36fa54a288)
* Chore: Fix strict null errors on getting started (#24605)
* fix strict nulls
* fix typings
(cherry picked from commit 1848900070)
* CircleCI: Upgrade grabpl in order to fix package publishing (#24609)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
(cherry picked from commit 03940c8471)
* Fix Safari Icon alignment (#24610)
(cherry picked from commit 04c75265b5)
* Transformations: Make transform dropdowns not cropped (#24615)
(cherry picked from commit 9e24c0944f)
* Inspect: Allow showing data without transformations and field config is applied (#24314)
* Inspect: Should not subscribe to transformed data
* PQR- allow controll whether or not field overrides and transformations should be applied
* UI for inspector data options
* fix
* Null check fix
* Update public/app/features/dashboard/components/Inspector/InspectDataTab.tsx
* Update public/app/features/dashboard/components/Inspector/InspectDataTab.tsx
* Apply transformations by default
* Update panel inspect docs
* Fix apply overrides
* Apply time formatting in panel inspect
* fix ts
* Post review update
* Update docs/sources/panels/inspect-panel.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* lazy numbering
* fix ts
* Renames
* Renames 2
* Layout update
* Run shared request without field config
* Minor details
* fix ts
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
(cherry picked from commit f23ecc40b4)
* Transformers: fix binary operation (#24604)
* check the display name
* remove unchanged line
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
(cherry picked from commit 97e2837d7c)
* SharedPreferences: fixes so UI Theme can be set back to Default (#24628)
(cherry picked from commit cd9cbe5e16)
* Datasource/CloudWatch: Prevents hidden dataframe fields from displaying in tables (#24580)
* Datasource/CloudWatch: Prevents hidden dataframe fields from displaying in tables
(cherry picked from commit 277aee8642)
* Datasource/CloudWatch: Correctly interpolate variables in CloudWatch Logs queries (#24619)
Closes#24603
(cherry picked from commit bfd337dd00)
* Explore: Fix rendering of react query editors (#24593)
* Fix rendering of react query editors
* Refactor solution for improved readability
* Update
* Add test coverage
* Refactor
(cherry picked from commit 285ea7595d)
* CloudWatch: Don't assume that errors are awserr.Error instances (#24641)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
(cherry picked from commit 8e5a3a578a)
* Zipkin: Fix error when span contains remoteEndpoint (#24524)
(cherry picked from commit 0f964c0214)
* Templating: fixes so Textbox variables get value from url (#24623)
(cherry picked from commit 622246d56d)
* Templating: fixes filtering options with more than 1000 entries (#24614)
* Templating: fixes filtering options with more then 1000 entries
* Chore: reduces strict null errors by 2
(cherry picked from commit 083a2ce220)
* PanelEdit: Make sure side pane is displayed with tabs by default (#24636)
* Make sure side pane is displayed with tabs by default
* Update e2e tests for
(cherry picked from commit f769ed035d)
* @grafana/ui: Update RadioButtonGroup documentation (#23143)
* Add "When to use" info to RadioButtonGroup.mdx
* Clarify more clearly when to use 'Select' instead
* Update RadioButtonGroup.mdx
Add line explaining why we want select for more than four options instead of a radio button group
* Update RadioButtonGroup.mdx
remove part about when elements are triggering changes.
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
(cherry picked from commit f1386c7892)
* Search: Fix select item pressing enter 404 (#24634)
* Remove appSubUrl for navigation
* stripBaseFromUrl
* Remove unused imports
(cherry picked from commit 37a2ac20c3)
* @grafana/ui: Buttons documentation (#23144)
* Add info: when to use which and how to mix buttons
* Update description for Button.mdx
- add note about scenario without primary action
- add note about secondary button being the default
* Refine docs info for secondary and destructive
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
(cherry picked from commit 54a90166a5)
* Datasource Config: adds back correct styles for autofill fields (#24671)
(cherry picked from commit 9481b7bcf2)
* Changelog and Readme: Update packages to beta and add Select breaking change (#24670)
(cherry picked from commit 85ae144a87)
* Orgs: Add future deprecation notice (#24502)
* Orgs: Fist draft of orgs deprecation infobox
* adds warning about potentially deprecating orgs (#24512)
* Updates
* Fixed ts issue
Co-authored-by: Carl Bergquist <carl@grafana.com>
(cherry picked from commit 2f22781cd8)
* Provisioning: Use proxy as default access mode in provisioning (#24669)
fixes#24591fixes#19501
(cherry picked from commit 7610d5717a)
* Fallback to process.cwd() when PWD is not present (#24677)
Fixes#24582 - Error running yarn dev command
(cherry picked from commit 660f2b4e99)
* SaveDashboard: Allow editing provisioned dashboard JSON and add confirmation when JSON is copied to dashboard (#24680)
(cherry picked from commit cfac591234)
* Units: adds scale symbol for currencies with suffixed symbol (#24678)
(cherry picked from commit 51509bb2ff)
* CloudWatch/Logs: Fix panic on multiple aggregations queries (#24683)
(cherry picked from commit c60765a178)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Docs: Updated instructions on screens for Dashboard Import (#24584)
* change text and image links
* Review feedback
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* uppercase JSON
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
(cherry picked from commit abfa1b5d74)
* CloudWatch: Unify look of query mode select between dashboard and explore (#24648)
(cherry picked from commit e754bcdcf9)
* Datasources: fixes async mount errors (#24579)
* Chore: updates Elasticsearch DataLinks test async wrapper mount
* Chore: updates Loki DervidedFields test async wrapper mount
* Chore: fixes typecheck issues
* Chore: small strict-null fix
(cherry picked from commit e11504dcd2)
* Editor: New line on Enter, run query on Shift+Enter (#24654)
* Editor: New line on Enter, run query on Shift+Enter
- default Enter behavior on query editor fields should be a new line
- special behavior should require a special key: running a query is now
done on Shift-Enter
- Plugins order had to be changed because when typeahead is shown, Enter
is accepting the suggestion
* Run with ctrl-enter, hint in query placeholder
* Fix Kusto field behavior for Enter
* Fix Kusto field behavior for default suggestion
(cherry picked from commit 01bbcf4eea)
* Add deprecation note about the unofficial first version of backend plugins (#24675)
(cherry picked from commit 0c8ee5b2c9)
* CloudWatch/Logs: Fix autocomplete after by keyword (#24644)
(cherry picked from commit 2b9cc8ba30)
* TablePanel: Do not include angular options in options when switching from angular panel (#24684)
(cherry picked from commit c59f5436c0)
* Datasources: fix pre styles (#24687)
(cherry picked from commit 7fbed90b89)
* @grafana/ui: Checkbox docs (#23141)
* Add "When to use" info to Checkbox.mdx
Added info about how checkboxes generally work and when to use another component instead.
* Replaced words with proper component names
* Update Checkbox.mdx
Elaborate on explanations. Add examples for how to use checkboxes the user-friendliest way.
* Apply suggestions from code review
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
(cherry picked from commit 405145fdd3)
* Logs: Fix total bytes process calculation (#24691)
- log stats for Loki are per query
- this change tracks the query stats by refId, preventing the summing of
the same stats across multiple series of the same response.
(cherry picked from commit 25e1238022)
* Strict null fixes: updates return type of getMessageFromError, fixes QueryOperationAction props (#24690)
* Chore: updates getMessageFromError return type
* Chore: updates the position of incorrectly placed bang operator
* Chore: updates typing on dropdown typeahead directive
* Chore: updates QueryOperationAction props to require title
* Revert "Chore: updates QueryOperationAction props to require title"
(cherry picked from commit ee12f5e742)
* Docs: Panel inspector release highlights (#24686)
* Add Panel inspector highlight
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
(cherry picked from commit e4cbeb5cb3)
* Explore: fixes loading more logs in logs context view (#24135)
(cherry picked from commit d3a8f6d026)
* Datasource/CloudWatch: Handle invalidation of log groups when switching datasources (#24703)
(cherry picked from commit 1b29d3460e)
* PanelInspect: Make header names reflect the field name in the exported CSV file (#24624)
* fix header names and filename
* use panel title as filename
* add frame argument
* escaping double quotes
* wrapping header name in quotes
* Fix replace
* Add test for csv double quotes escaping
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
(cherry picked from commit bf1e5aa16c)
* CloudWatch/Logs: Fix query error when results are sparse (#24702)
(cherry picked from commit bc8c05137b)
* Datasource/CloudWatch: Allows a user to search for log groups that aren't there initially (#24695)
Closes#24554
(cherry picked from commit 0e8638ec92)
* Transform: fixes so we match the field based on the proper name. (#24659)
* fixes so we match the transformer based on name properly.
* changed the signature on the FieldMatcher.
* introduced a names option so you can filter in name specificly.
* changed so the matcher UI uses the new options format.
* moved the exported functions together.
* changing editors a bit.
* made the filter by name work with both regex and name filtering.
* fixed failing tests and make sure we always parse regex the same way.
* removed unused code.
* simplified to make the existing field overrides still working.
* fixed issue reported by hugo.
* added tests for the name matcher.
* added tests for filter by name.
* added more tests.
(cherry picked from commit 96f26cbd5b)
* Fix: changing so we are using date/time values in UTC during test. (#24707)
(cherry picked from commit 98d5633601)
* Docs: generated a 7.0 version of the packages reference docs. (#24708)
* fixes so we match the transformer based on name properly.
* changed the signature on the FieldMatcher.
* introduced a names option so you can filter in name specificly.
* changed so the matcher UI uses the new options format.
* moved the exported functions together.
* changing editors a bit.
* made the filter by name work with both regex and name filtering.
* fixed failing tests and make sure we always parse regex the same way.
* removed unused code.
* simplified to make the existing field overrides still working.
* fixed issue reported by hugo.
* added tests for the name matcher.
* added tests for filter by name.
* added more tests.
* generated new version of the packages docs.
* fixed spelling error.
* regenerated the docs.
(cherry picked from commit 6a0abf895e)
* Query: do not require datasource name and id (#24718)
(cherry picked from commit b73d237bf8)
* Metrictank: Fixed updated schema and dedupe strategy (#24685)
* Metrictank: Fixed updated schema and dedupe strategy
* revert schema change
* fix
(cherry picked from commit 7fcf2615e1)
* Release 7.0.0
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CircleCI: Upgrade build pipeline tool
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Andreas Opferkuch <andreas.opferkuch@gmail.com>
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
Co-authored-by: David <david.kaltschmidt@gmail.com>
Co-authored-by: Daniel Lee <dan.limerick@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Rotem Reiss <reiss.r@gmail.com>
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: Jess <53754871+jessover9000@users.noreply.github.com>
Co-authored-by: Carl Bergquist <carl@grafana.com>
Co-authored-by: Lukas Siatka <lukasz.siatka@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* added moment timezone package.
* added a qnd way of selecting timezone.
* added a first draft to display how it can be used.
* fixed failing tests.
* made moment.local to be in utc when running tests.
* added tests to verify that the timeZone support works as expected.
* Fixed so we use the formatter in the graph context menu.
* changed so we will format d3 according to timeZone.
* changed from class base to function based for easier consumption.
* fixed so tests got green.
* renamed to make it shorter.
* fixed formatting in logRow.
* removed unused value.
* added time formatter to flot.
* fixed failing tests.
* changed so history will use the formatting with support for timezone.
* added todo.
* added so we append the correct abbrivation behind time.
* added time zone abbrevation in timepicker.
* adding timezone in rangeutil tool.
* will use timezone when formatting range.
* changed so we use new functions to format date so timezone is respected.
* wip - dashboard settings.
* changed so the time picker settings is in react.
* added force update.
* wip to get the react graph to work.
* fixed formatting and parsing on the timepicker.
* updated snap to be correct.
* fixed so we format values properly in time picker.
* make sure we pass timezone on all the proper places.
* fixed so we use correct timeZone in explore.
* fixed failing tests.
* fixed so we always parse from local to selected timezone.
* removed unused variable.
* reverted back.
* trying to fix issue with directive.
* fixed issue.
* fixed strict null errors.
* fixed so we still can select default.
* make sure we reads the time zone from getTimezone
* Datasource/Cloudwatch: Adds support for Cloudwatch Logs
* Fix rebase leftover
* Use jsurl for AWS url serialization
* WIP: Temporary workaround for CLIQ metrics
* Only allow up to 20 log groups to be selected
* WIP additional changes
* More changes based on feedback
* More changes based on PR feedback
* Fix strict null errors
* Move xss and sanitize packages to grafana-data
* Move text, url and location utils to grafana-data
* Move grafana config types to grafana-data
* Move field display value proxy to grafana-data
* Fix
* Move data links built in vars to grafana-data
* Attach links supplier to when applying field overrides
* Prep tests
* Use links suppliers attached via field overrides
* locationUtil dependencies type
* Move sanitize-url declaration to grafana-data
* Revert "Move sanitize-url declaration to grafana-data"
This reverts commit 11db9f5e55.
* Fix typo
* fix ts vol1
* Remove import from runtime in data.... Make TS happy at the same time ;)
* Lovely TS, please shut up
* Lovely TS, please shut up vol2
* fix tests
* Fixes
* minor refactor
* Attach get links to FieldDisplayValue for seamless usage
* Update packages/grafana-data/src/field/fieldOverrides.ts
* Make storybook build
Removes all references and usage of PhantomJS #23375.
Remove direct link rendered image e2e smoke test for now.
Docker: Fix installing chrome in ubuntu custom docker image.
Improve handling of image renderer not available/installed #23593.
Add PhantomJS breaking change and upgrading notes.
Use grabpl v0.2.10.
Closes#13802
Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Explore: Refactor active buttons css
* Explore: Add query history button
* WIP: Creating drawer
* WIP: Create custom drawer (for now)
* Revert changes to Drawer.tsx
* WIP: Layout finished
* Rich History: Set up boilerplate for Settings
* WIP: Query history cards
* Refactor, split components
* Add resizability, interactivity
* Save history to local storage
* Visualise queries from queryhistory local storage
* Set up query history settings
* Refactor
* Create link, un-refactored verison
* Copyable url
* WIP: Add slider
* Commenting feature
* Slider filtration
* Add headings
* Hide Rich history behind feature toggle
* Cleaning up, refactors
* Update tests
* Implement getQueryDisplayText
* Update lockfile for new dependencies
* Update heading based on sorting
* Fix typescript strinctNullCheck errors
* Fix Forms, new forms
* Fixes based on provided feedback
* Fixes, splitting component into two
* Add tooltips, add delete history button
* Clicking on card adds queries to query rows
* Delete history, width of drawers
* UI/UX changes, updates
* Add number of queries to headings, box shadows
* Fix slider, remove feature toggle
* Fix typo in the beta announcement
* Fix how the rich history state is rendered when initialization
* Move updateFilters when activeDatasourceFilter onlyto RichHistory, remove duplicated code
* Fix typescript strictnull errors, not used variables errors
* Refactor: Adds variables in state to TemplateSrv
* Refactor: Introduces some typings and structures
* Refactor: Introduces picker to adapter
* Refactor: Removes useState and introduces contains instead
* Refactor: Introduces Variable Editor
* Refactor: Adds uuid and simplifies state
* Refactor: Consolidates to VariableRenderer
* Refactor: Adds name change capability
* Refactor: Adds variableMiddleware
* Refactor: Adds ability to change Angular type to type in State
* Fix: Fixes so we check for duplicate names
* Refactor: Adds ability to change State type to type in Angular
* Refactor: Updates name in dashboard templating list
* Refactor: Adds label change to VariableEditor
* Refactor: Adds hide change to VariableEditor
* Refactor: Adds update ability
* Refactor: Adds tooltip
* Refactor: Adds SelectionOptionsEditor
* Refactor: Adds query editor and validation
* Refactor: Adds regex and sort to editor
* Refactor: Adds Selection options
* Refactor: Adds Varible Values Previewer
* Refactor: Changes from array in state to Record
* Refactor: Removes getVariableAtIndex from templateSrv
* Tests: Fixs broken tests
* Chore: Fixes duplicate merge import
* Refactor: Removes strict null errors
* Refactor: Adds duplicate variable
* Refactor: Adds remove variable
* Refactor: Adds change order of variables
* Refactor: Adds add new variable
* Chore: Fixes Prettier formatting
* Refactor: Adds VariablePicker
* Fixed so sub menu is displayed when we only have redux template variables.
* removed unused variable.
* tags will be visibile in the new react picker.
* added some nice colors to the tags.
* Added thunk for selecting a tag.
* Refactor: Cleans up templating state when dashboard unloads
* Refactor: Adds save capabilities for variables in state
* added possibility to select tag.
* Added so you can deselect a tag.
* Fixed issue with coloring on top.
* minor refactoring to make the code more slim.
* Refactor: Fixes dispatch return and copy of variable
* selecting options when tag i selected
* small refactoring.
* fixed so we use options.
* Refactor: Adds getValueForUrl capabilities
* first implementation of keyboard navigation on picker.
* removed comment.
* fixed so you can toggle all options.
* Refactor: Simplified state handling using Redux Toolkit and flat reducer structure
* Refactor: Adds sharedTemplatingReducer and queryVariableReducer
* Tests: Fixs broken tests
* Chore: Removes some strict null errors
* Tests: Fix broken tests
* Refactor: Splitted QueryVariablePicker into smaller components
* Refactor: Moves linktext and selected tags to component instead
* Fix: Fixes the ability to have multiple dropdowns opened at same time
* Fix: Fixes onKeyDown from prev refactor
* Refactor: Adds searchfilter searching
* Tests: Fixes after running e2e tests
* Refactor: Adds an attempt to solve dependencies at startup
* Refactor: Adds feature toggle
* Refactor: Resets all angular files to master
* Refactor: Move stuff to query folder
* Refactor: Initial commit for SubMenu component
* Refactor: Updated DashboardModel with new list
* Refactor: Adds feature toggle to dashboard model and friends
* Refactor: Adds picker to SubMenu
* Refactor: Fixes styling on SubMenu
* Refactor: Fixes processvariables
* Refactor: Initial EditorList skeleton
* Refactor: Refactors out VariableEditorList and VariableEditorContainer
* Refactor: Adds New variable functionality
* Refactor: Adds registred types
* Refactor: Adds edit existing variable functionality
* Refactor: Changes params to thunks
* Refactor: Small fix for cleaning up state when clicking update/add
* Refactor: Better typings for outer containers
* Refactor: Adds change order functionality
* Refactor: Removed notify angular args
* Change so the url is in sync with the redux template variables.
* Adding support for saving proper values and checking changes.
* Refactor: Adds duplicate variable functionality
* Feature: Adds remove variable functionality
* Refactor: Small refactor so e2e tests work as before
* Refactor: Returns null if no visible variables
* Refactor: Adds annotations to SubMenu
* Refactor: Fixes toggling of annotations in SubMenu
* added dashboard links to new submehu.
* Refactor: Small refactor breaking up into smaller components
* Fix: Fixes infinite recursive loop when changing varible name
* Templating: Do not mutate location query state
* Refactor: Fixes minor timing issue when adding new variable
* Refactor: removes initialization in variable_srv constructor
* Refactor: Suggestion on how to handle templating.list in DashboardExporter
* Refactor: Adds getVariables typings and changes ChangeTracker and ShareSnapshotCtrl
* Refactor: Adds getVariable on DashboardModel and changes DashboardMigrator
* Fix: Fixes repeated panels
* wip: starting to add custom variable type.
* Refactor: Merging two different toVariablePayload functions
* Tests: Fixes broken tests
* Fix: Reduces strict null errors
* Tests: Initial commit and fixes strange dependency order
* Tests: Covers sharedTemplatingReducer with tests
* Refactor: Rename state/index.ts => state/reducers.ts as every where else
* Refactor: Renames and moves adapters.ts
* Tests: Adds tests for templatingReducer
* Tests: Adds intitial tests for queryVariableReducer
* starting to ad custom variable.
* Tests: Adds more queryVariableReducer tests
* Added support for custom variable. Next up applying some DRY principles and refactoring.
* fixed compile issue.
* added todo.
* Tests: Fixes broken test
* Tests: Covers queryVariableReducer with tests and fixed a couple of bugs
* Fix: Fixes broken test
* Fix: Reduces strict null errors
* change so custom won't be depending on anything elese.
* fixed descriptions.
* removed unused dependency.
* Fixed issue when adding a new variable and editor is being unmount twice.
* fixed issue with select option loop.
* changed so we update query on typing in editor and removed it from component state.
* Moved runQuery up one level in the component tree.
* renamed action and moved it to custom actions.
* moved applyStateChanges to shared code.
* removed todo comment.
* first stab on moving picker to more general.
* Refactor: Changes so we always show variables type
* removed duplicate code regarding picker.
* Did some renamings.
* Feature: Adds text box variable type
* moved tests from query reducer to picker reducer.
* Removed picker from VariableState.
* removed reference to picker.
* Some more refactorings of the picker reducer + actions.
* Chore: Refactors away editor state to its own state slice (#22515)
* Refactor: Inital move, tests not working
* Tests: Adds editorReducer tests
* Refactor: Cleaning up
* Refactor: Moves logic to thunk instead
* Refactor: Initial commit
* Refactor: Combines reducers to one state
* Refactor: Adds combine reducers
* moved navigation logic flow to a thunk instead of in the component.
* fixed issue with rendering picker link.
* Refactor: Removes variable prop from templating.variables
* refactored and removed some more code.
* Feature: adds Constant variable type
* fixed so tags can be selected.
* Fix: fixes default hide for constant and enum order
* fixed so tags works again.
* Fix: fixes so we use Angular editor when newVariables is not defined
* Fix: fixes wrong hide default for Constant variable
* Fix: fixes bug when using duplicate button
* Fix: changes action id
* Tests: prepares for newVariables
* Chore: reduces strict null errors
* Refactor: removes uuidInEditorReducer for simplification
* Chore: changes after PR comments
* Chore: uses getConfig instead of config
* Tests: fixes so e2e tests check for feature toggle and fixed initLock bug
* Refactor: changes so sharedReducer uses createSlice instead
* Refactor: changes textBoxVariableReducer to use creactSlice instead
* Refactor: changes queryBoxVariableReducer to use creactSlice instead
* Refactor: changes customVariableReducer to use creactSlice instead
* Refactor: changes constantVariableReducer to use creactSlice instead
* Refactor: moves types to specific types.ts files instead
* changed so we use queryValue stored on the variable to populate options input when opening picker.
* Feature: adds the ability to test templating thunks using real store and middleware
* Chore: cleans up unused import
* excluded queryValue from the getSaveModel
* Refactor: adds whenAsyncActionIsDispatched to reduxTester
* Tests: adds initial tests for processVariables
* Added reducer tests for constant variable.
* added tests for custom reducer.
* added tets for texbox reducer.
* Tests: adds more tests for ProcessVariable
* Refactor: fixes processVariable flow so we do notrun updateOptions twice
* Tests: finishes tests for processVariables and removed skip test
* added actions tests for custom and constant.
* Tests: adds tests for setOptionFromUrl
* Tests: adds a naive variable mock builder
* Tests: adds tests for validateVariableSelectionState
* added tests for query variable actions.
* added last test for query actions.
* added more tests.
* some more tests.
* fixed typing errors.
* Fixed issues with variable tags.
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* trying out api-extractor.
* works with our setup of build.
* wip.
* changed the packages so it works better with the api-extractor.
* Changes to make the api-extractor to work.
* cleaned up the api-extractor config files.
* added some more documentation.
* added tsdoc-metadata to gitignore.
* removed the generated docs (will do that in another PR).
* added execute permission to script for generating dosc.
* added so we will push generated docs to branch.
* will clean packages_api on abort.
* Fixed failing tests.
* fixed formatting issue with typedoc comment.
* temporarily disabled tslint rules about namespace until https://github.com/microsoft/rushstack/issues/1029 is resolved
* temporary enabled bable namespaces.
* updated build script.
* updated script.
* updated script with some colors.
* changed to camelCase.
* removed spacing.
* Starting to add documentation guidelines.
* added examples headline.
* added parameters and return values.
* Fixed merge error.
* changed so we use the eslint ignore syntax.
* changed to correct eslint ingnore comment.
* fixed some spelling errors reported by codespell.
* added script to generate docs in current folder.
* lerna bootstrap.
* removed file that should be ignored.
* updated locKFILE.
* referenced the code comments guidelines.
* updated packages.
* updated deps.