Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with Grafana upstream 10.2.0 #78

Closed
wants to merge 6,863 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6863 commits
Select commit Hold shift + click to select a range
e587d4e
Loki: Change run query button text based on number of queries (#76196)
ivanahuckova Oct 9, 2023
165b4c3
CI: Use production gcom api for nightly builds (#76201)
guicaulada Oct 9, 2023
28c0fb1
AccessControl: Remove legacy frontend AC checks (#76187)
Jguer Oct 9, 2023
1355660
Building: Remove dependency to urw-fonts in RPM packages (#76198)
zerok Oct 10, 2023
007c2c8
AuthN: Extract from OAuthServer service account management code (#76128)
gamab Oct 10, 2023
ecbe191
Update Ansible Link in provision Doc (#76178)
ishanjainn Oct 10, 2023
7d0c4c5
Auto-generate: Improve long text generation (#76213)
ivanortegaalba Oct 10, 2023
f415656
DashboardScene: AdHoc filters (#76115)
torkelo Oct 10, 2023
9ec61f5
Flamegraph: Fix theme propagation (#76064)
aocenas Oct 10, 2023
3d67de3
Chore: Upgrade testing-library-selector to v0.3.1 (#76238)
itsmylife Oct 10, 2023
05083aa
Update Crowdin configuration file
grafana-i18n-bot Oct 10, 2023
aee8c91
Update dependency @monaco-editor/react to v4.6.0 (#76219)
renovate[bot] Oct 10, 2023
9063136
Instrumentation: Handle context.Canceled (#75867)
marefr Oct 10, 2023
99e4894
Chore: Replace mock guardian with the actual one in folder API benchm…
papagian Oct 10, 2023
8757f2b
Tabs: Fixes focus style (#76246)
torkelo Oct 10, 2023
b52b0d6
Update dependency @react-types/button to v3.9.0 (#76244)
renovate[bot] Oct 10, 2023
f56cc6f
Navigation: Create `navAdminSubsections` feature toggle (#76248)
ashharrison90 Oct 10, 2023
5e14d93
Chore: remove hasAccess and hasAcessInMetadata (#76237)
IevaVasiljeva Oct 10, 2023
ea741dd
Signingkeys: Add local cache (#76234)
kalleep Oct 10, 2023
42218fb
DashboardScene: Support auto migration for angular panels (#76100)
torkelo Oct 10, 2023
f40b695
Docs: Add entry for TraceQL query editor (#76119)
fabrizio-grafana Oct 10, 2023
1f9bd74
Tempo: Multi-line support for error markers in TraceQL editor (#75904)
adrapereira Oct 10, 2023
ac27fea
Sandbox: Add basic e2e tests for datasources inside sandbox (#76226)
academo Oct 10, 2023
de2d8f5
Update dependency @react-types/shared to v3.21.0 (#76251)
renovate[bot] Oct 10, 2023
930c753
Navigation: Implement logic for docking nav menu (#76188)
ashharrison90 Oct 10, 2023
9665cec
Chore: remove gf-forms and LegacyForms from Ldap Page (#76156)
Oct 10, 2023
473f889
Chore: Add @deprecation to LegacyForms (#76055)
tskarhed Oct 10, 2023
2a2401e
useOpenAIStream: Improve error handling (#76212)
ivanortegaalba Oct 10, 2023
9dd38de
RBAC: Make fixed role UIDs deterministic (#76239)
gamab Oct 10, 2023
ceb6f8b
Authn: error logs (#76264)
kalleep Oct 10, 2023
810fbc3
SSE: Support hysteresis threshold expression (#70998)
yuri-tceretian Oct 10, 2023
b75b747
Tempo data source: Fix service map query error when a duration data f…
domasx2 Oct 10, 2023
186a9c2
improved the sentence to make it clear for entering admin in both the…
ibilalkayy Oct 10, 2023
d25163a
fix: Verification typo (#73137)
testwill Oct 10, 2023
a9beced
Transformations: Add Numeric Index in Title (#76265)
codeincarnate Oct 10, 2023
bb7ca78
Update dependency @rushstack/rig-package to v0.5.1 (#76267)
renovate[bot] Oct 10, 2023
0d39038
I18n: Reset back to default plural seperators (#76284)
joshhunt Oct 10, 2023
cada1f0
Auth: Add support for role mapping and allowed groups in Google OIDC …
Jguer Oct 10, 2023
2a6c16d
Pyroscope: Change phlare/api module to pyroscope/api module (#76271)
aocenas Oct 10, 2023
5604305
BarChart: Gradient Mode for Auto Max (#74122)
drew08t Oct 10, 2023
3d84956
Docs: update raw format for data source variable (#75488)
deresolution20 Oct 10, 2023
c26e3d8
Playlist: Add create+update timestamps to the database (#76295)
ryantxu Oct 10, 2023
6184bf2
Canvas: Add standard text config options to button element (#76160)
nmarrs Oct 10, 2023
dc8b07d
postgres/mysql: improved imports in unit tests (#75980)
gabor Oct 11, 2023
9101eb2
Tempo: Improve UX of service graph related warnings (#76134)
joey-grafana Oct 11, 2023
d5691e6
Live: Allow setting the engine password (#76289)
jcalisto Oct 11, 2023
1f8b082
Chore: Avoid showing plugin version if it's %VERSION% (#75974)
andresmgot Oct 11, 2023
608f066
PanelConfig: Add option to calculate min/max per field instead of usi…
oscarkilhed Oct 11, 2023
07b08fc
Tempo: Disable show matches only button when no matches (#76124)
joey-grafana Oct 11, 2023
9d2e8f6
Update dependency @rushstack/ts-command-line to v4.16.1 (#76282)
renovate[bot] Oct 11, 2023
a0ab1e4
Update dependency @rollup/plugin-node-resolve to v15.2.3 (#76261)
renovate[bot] Oct 11, 2023
8d9ef71
I18N: Collect stats on number of untranslated strings in message cata…
joshhunt Oct 11, 2023
9035a49
Chore: Export closestIdx function from @grafana/data (#76176)
itsmylife Oct 11, 2023
58ba11e
Update dependency @testing-library/user-event to v14.5.1 (#76329)
renovate[bot] Oct 11, 2023
abd2c9c
Navigation: Hide docked menu and dock button on mobile (#76334)
ashharrison90 Oct 11, 2023
50504ba
Plugins: Chore: Renamed instrumentation middleware to metrics middlew…
xnyo Oct 11, 2023
5f6fea3
Chore: Improve typings in OptionsUI and Explore (#76245)
JoaoSilvaGrafana Oct 11, 2023
ae84ec3
Update dependency chrome-remote-interface to v0.33.0 (#76337)
renovate[bot] Oct 11, 2023
0ec15de
Update dependency @types/node to v18.18.4 (#76336)
renovate[bot] Oct 11, 2023
555acdf
Drawer: Add 1 grid unit padding between title and tabs (#76249)
torkelo Oct 11, 2023
6968f4d
DashboardScene: Share snapshot (#76132)
dprokop Oct 11, 2023
3fc9253
Siningkeys: Fix test setup (#76333)
kalleep Oct 11, 2023
42fb42a
PublicDashboards: Add validation deletion (#75336)
khushijain21 Oct 11, 2023
d17f25d
Chore: Remove reference to storybook 6 (#75815)
sunker Oct 11, 2023
e46e663
DashboardScene: Support for Angular panels (#76072)
torkelo Oct 11, 2023
1528d6f
Authn: Prevent empty username and email during sync (#76330)
kalleep Oct 11, 2023
123f34c
Chore: Bump grafana-plugin-sdk-go to v0.180.0 (#76349)
xnyo Oct 11, 2023
bd23757
Chore: Reorder InfluxDB languages in combobox (#76352)
itsmylife Oct 11, 2023
ddb9b64
Explore: Remove redundant TODO (#76262)
ifrost Oct 11, 2023
14d01e2
Prometheus: Remove prometheusResourceBrowserCache feature toggle (#76…
itsmylife Oct 11, 2023
effd2a1
Navigation: Split admin into subsections behind `navAdminSubsections`…
ashharrison90 Oct 11, 2023
7558055
Update dependency core-js to v3.33.0 (#76341)
renovate[bot] Oct 11, 2023
6b52bb9
Chore: Upgrade Go to 1.20.10 (#76359)
zerok Oct 11, 2023
05e12e7
Alerting: Add provenance field to /api/v1/provisioning/alert-rules (#…
grobinson-grafana Oct 11, 2023
bcf850f
DashboardScene: Set maxDataPointsFromWidth to true (#76319)
torkelo Oct 11, 2023
72a1de8
Schema: Clean up / correct panel schema (#76346)
torkelo Oct 11, 2023
79b2974
Teams: Allow Services to register deletes (#76325)
Jguer Oct 11, 2023
2049ffc
Chore: Add grafana-data transformations to BI squad in CODEOWNERS (#7…
codeincarnate Oct 11, 2023
c2cbb0a
noBasicRole feature: Change RolePickerInput to not show the "None" ro…
aarongodin Oct 11, 2023
46dc898
Fix container width not being set after latest scenes update (#76372)
dprokop Oct 11, 2023
7329e2d
Flamegraph: Fix inefficient regex generating error on some function n…
aocenas Oct 11, 2023
bf7fae4
Tempo: Fix type errors that appeared when removing the "any" type fro…
torkelo Oct 11, 2023
6983af3
Playlist: Add an api wrapper for playlist requests (#76308)
ryantxu Oct 11, 2023
046e9b7
Canvas: Button API - Block Calls to Grafana (#76309)
drew08t Oct 11, 2023
6a8649d
Alerting: Remove vendored models in migration service (#74503)
JacobsonMT Oct 11, 2023
54050be
Explore: Use short units in graphs (#76358)
Elfo404 Oct 11, 2023
f6649d7
Revert "Alerting: Remove vendored models in migration service" (#76387)
alexweav Oct 11, 2023
ea50695
Alerting: add help texts to insights (#76366)
VikaCep Oct 11, 2023
d003ffe
Update origin annotation names (#76301)
DanCech Oct 11, 2023
a12cb8c
LibraryPanels: Add RBAC support (#73475)
kaydelaney Oct 11, 2023
65a94d9
ZoomPlugin: No-op on modifier keys (#76398)
leeoniya Oct 12, 2023
4dfffa3
Add context to transformation editor (#76317)
mdvictor Oct 12, 2023
94c15e4
TooltipPlugin2: Raise parent grid item z-index when pinned (#76379)
leeoniya Oct 12, 2023
fbbf9b1
Alerting: Use new endpoints in the Modify Export (#75796)
soniaAguilarPeiron Oct 12, 2023
665dc1f
Sandbox: e2e tests for apps running inside the frontend sandbox (#76357)
academo Oct 12, 2023
466f8a1
Teams: Move team API to own service (#76347)
Jguer Oct 12, 2023
9bb3d64
Minor fixes for TraceQL query editor (#76344)
fabrizio-grafana Oct 12, 2023
b6dff85
Chore: Update grafana/saml to the latest (#76363)
mgyongyosi Oct 12, 2023
d004105
Custom variable: Initialize options from query if not present in pers…
dprokop Oct 12, 2023
df6cc96
Update dependency @grafana/scenes to v1.17.0 (#75862)
renovate[bot] Oct 12, 2023
6e0825d
Plugins: Fix sorting issue with expandable rows (#75553)
fabrizio-grafana Oct 12, 2023
420fb56
RBAC: Fix plugins pages access-control (#76321)
gamab Oct 12, 2023
f012b75
PluginExtensions: Made it possible to control modal size from extensi…
mckn Oct 12, 2023
2771fb9
FeatureToggle: Add awsDatasourcesNewFormStyling feature toggle (#76110)
idastambuk Oct 12, 2023
46b0066
Chore: Improve EchoSrv logging (#76385)
joshhunt Oct 12, 2023
5e918f0
Chore: Update @testing-library/dom to v9.3.3 (#76364)
itsmylife Oct 12, 2023
334fc6a
i18n: Markup Explorer Graph for translation (#76099)
chauchausoup Oct 12, 2023
a9f7cb0
Changelog: Updated changelog for 9.4.17 (#76409)
grafana-delivery-bot[bot] Oct 12, 2023
790f878
Changelog: Updated changelog for 9.5.13 (#76418)
grafana-delivery-bot[bot] Oct 12, 2023
43928d3
RBAC: Allow the basic role None as option of the org role selector (#…
buccarel Oct 12, 2023
87ff5b6
TraceView/TracesPanel: Allow providing custom span link creator funct…
domasx2 Oct 12, 2023
38cdce5
Auth: Enable `None` role for 10.2 (#76343)
eleijonmarck Oct 12, 2023
99e2f40
Changelog: Updated changelog for 10.0.9 (#76425)
grafana-delivery-bot[bot] Oct 12, 2023
625b400
CI: github-release workflow should forward "latest" input (#75139)
zerok Oct 12, 2023
f10b4bc
Auth: None basic role update docs (#75955)
eleijonmarck Oct 12, 2023
97d5481
Changelog: Updated changelog for 10.1.5 (#76436)
grafana-delivery-bot[bot] Oct 12, 2023
358b395
Alerting: text updates / replace panel (#76407)
VikaCep Oct 12, 2023
7d9617e
Changelog: Updated changelog for 10.1.5 (#76441)
grafana-delivery-bot[bot] Oct 12, 2023
afa64fc
Alerting: Enable Insights landing page (#76381)
VikaCep Oct 12, 2023
f6d2c11
Fix typo in link label (#76443)
jdbaldry Oct 12, 2023
82f3127
Alerting: Move legacy alert migration from sqlstore migration to serv…
JacobsonMT Oct 12, 2023
2f6e0c6
Changelog: Updated changelog for 10.0.9 (#76444)
grafana-delivery-bot[bot] Oct 12, 2023
f7ede48
Changelog: Updated changelog for 9.5.13 (#76450)
grafana-delivery-bot[bot] Oct 12, 2023
cfc33c1
Changelog: Updated changelog for 9.4.17 (#76453)
grafana-delivery-bot[bot] Oct 12, 2023
700e6e3
AuthN: Add service account token generation to `ExtSvcAccountsService…
gamab Oct 12, 2023
7562607
[Docs] Annotate visualizations update (#76395)
lshippy Oct 12, 2023
29cf609
Playlist: Use a different go struct for sql service vs k8s (#76393)
ryantxu Oct 12, 2023
bdeb829
Revert "Nested Folders: Fix fetching a folder by title" (#76469)
papagian Oct 12, 2023
c4ac4eb
Alerting: Export of notification policies to HCL (#76411)
yuri-tceretian Oct 12, 2023
9d8be05
Test data source: Add random node radius for nodegraph (#75381)
aocenas Oct 12, 2023
67e3e57
Prometheus: Fix config bug for sigv4 auth (#76390)
bohandley Oct 12, 2023
5a79e70
Add date parameter (#76479)
imatwawana Oct 12, 2023
94ce875
Caching: Add feature toggle for memory efficient cache payload serial…
mmandrus Oct 12, 2023
c21e2be
Prometheus: Variable query, allow for label values query type with la…
bohandley Oct 12, 2023
42f4244
Alerting: Add rules export on a folder level (#76016)
konrad147 Oct 12, 2023
f3a997a
Add RBAC note to library panels (#76480)
natellium Oct 12, 2023
cb1dfbe
Chore: remove legacy components and CSS classes for OpenTsdbDetails C…
Dhoni77 Oct 12, 2023
2442532
chore(76107): Remove legacy form from InfluxConfigEditor (#76382)
shabeebk Oct 12, 2023
be7fe76
Fix Influxdb language order in config page (#76488)
itsmylife Oct 12, 2023
2a527aa
K8s: Namespace parsing updates (default + stack-id) (#76310)
ryantxu Oct 12, 2023
efec1d9
Chore: Remove redundant code and update types (#76489)
itsmylife Oct 12, 2023
0a6d78f
AzureMonitor: Azure Monitor Cheat sheet (#75931)
alyssabull Oct 12, 2023
372082d
Alerting: Export of contact points to HCL (#75849)
yuri-tceretian Oct 12, 2023
5f48619
Alerting: Handle custom dashboard permissions in migration service (#…
JacobsonMT Oct 12, 2023
a6d928e
Alerting: Prevent cleanup of non-empty folders on migration revert (#…
JacobsonMT Oct 12, 2023
18128c2
chore: geomap cleanup betterer styles object notation edition (#76400)
nmarrs Oct 13, 2023
d5945bc
Canvas: Button API Editor visual feedback on response (#76499)
adela-almasan Oct 13, 2023
1a34cf6
Transformations: Add support for setting timezone in Format time and …
codeincarnate Oct 13, 2023
03bb6d6
devenv: postgres: make it work (#76323)
gabor Oct 13, 2023
d72ec22
Update babel monorepo to v7.23.2 (#76500)
renovate[bot] Oct 13, 2023
239bda2
SparklineCell: Display absolute value (#76125)
domasx2 Oct 13, 2023
549d8d4
add library panels rbac (#76483)
natellium Oct 13, 2023
09a4fcd
Alerting: Add docs for Repeat interval (#76303)
grobinson-grafana Oct 13, 2023
b6fb1e5
Navigation: Limit `SectionNav` to rendering items up to 3 levels (#76…
ashharrison90 Oct 13, 2023
de8ab7e
DashboardScene: Support for dashboard PanelContext actions via state …
torkelo Oct 13, 2023
1573f25
dependency ownership: as-code -> alerting for testing package (#76455)
xlson Oct 13, 2023
2857870
TimeSeries: Fix showing datalinks when clicking on a point (#76492)
leeoniya Oct 13, 2023
9fc0e15
Feature Management: Update admin page UI after a successful update (#…
jcalisto Oct 13, 2023
d6920a8
Revert "Add RBAC note to library panels" (#76531)
natellium Oct 13, 2023
28c2555
Revert "add library panels rbac" (#76532)
natellium Oct 13, 2023
f251f1d
Add role mapping support for Google OIDC (#76459)
imatwawana Oct 13, 2023
bf2f254
Search: Add feature toggle for panel title search (#76525)
suntala Oct 13, 2023
d282b7a
Grafana UI: Make it possible to bundle package with plugins (#76191)
jackw Oct 13, 2023
30cb720
Chore: Add tracing to tempo, parca and pyroscope datasource backends …
adrapereira Oct 13, 2023
e2ba399
IDForwarding: Use single flight for SignIdentity (#76530)
kalleep Oct 13, 2023
151f6d6
Plugins: Update PDC pattern from latest plugin SDK changes (#76036)
wbrowne Oct 13, 2023
d18766e
PluginExtensions: Make sure to pass default timeZone in context (#76513)
mckn Oct 13, 2023
939b311
Add support for dashboard variables in transformations to cloud what'…
imatwawana Oct 13, 2023
69b84fe
Tempo: Fix empty values in TraceQL filters (#76544)
adrapereira Oct 13, 2023
23fe8fc
Correlations: Add documentation around variable exceptions (#71511) (…
ifrost Oct 13, 2023
0d55dad
DashboardScene: Fixes full page reload of fullscreen view of a repeat…
torkelo Oct 13, 2023
b01cbc7
Dashboard: Fixes save drawer always comparing changes against first l…
torkelo Oct 13, 2023
a42040a
DashboardScene: Backward compatability with getDashboardSrv.getCurren…
torkelo Oct 13, 2023
40b79de
PublicDashboards: Enable feature by default for GA and remove public …
juanicabanas Oct 13, 2023
8bf0143
Grafana/ui: Wrap Box in forwardRef (#76555)
Clarity-89 Oct 13, 2023
ed4c9bb
Navigation: Correctly set active nested plugin pages (#76526)
ashharrison90 Oct 13, 2023
7794697
Doc: Add docs for direct mapping of `None` role for SAML (#76551)
eleijonmarck Oct 13, 2023
2877723
InfluxDB: Use apache/arrow v13 (#76548)
itsmylife Oct 13, 2023
20e624d
Alerting: Add Mimir Backend image to devenv (blocks) (#76416)
santihernandezc Oct 13, 2023
c4b02d7
BarChart: Improve data links UX in tooltip (#76514)
torkelo Oct 13, 2023
f2ad666
Loki: Autocomplete returning labels already in use when cursor is bef…
gtk-grafana Oct 13, 2023
3dbda43
Docs: Update whats-new-next with RBAC permission validation (#76470)
mgyongyosi Oct 13, 2023
5204977
Docs: Revisit Manage Dashboard docs for new UI (#75840)
joshhunt Oct 13, 2023
0592fe7
Alerting: Add support for msteams contact point in external Alertmana…
alexweav Oct 13, 2023
5a62a97
Update angular-plugins.md (#76556)
sympatheticmoose Oct 13, 2023
e0f32f4
Elasticsearch: Clean up query print leftover (#76543)
NikolayTsvetkov Oct 13, 2023
cdca151
PublicDashboards: Title logo and footer redesign (#74769)
juanicabanas Oct 13, 2023
5e9dac6
Transformations: De-emphasize non-applicable transformations (#76373)
codeincarnate Oct 13, 2023
91cf4f0
Revert "Plugins: Update PDC pattern from latest plugin SDK changes" (…
DanCech Oct 13, 2023
4ec54bc
Explore: Content Outline (#74536)
harisrozajac Oct 13, 2023
1d19dcd
Chore: Update data migration to update rows that have changes (#76545)
zserge Oct 13, 2023
97f5c1c
Explore: Content outline add documentation (#76482)
harisrozajac Oct 13, 2023
1e3254b
Correlations: Docs update (#76508)
ifrost Oct 13, 2023
4d8560d
i18n: Markup Explore's Query Inspector for translations (#76157)
Oct 13, 2023
5ba32e0
Add public dashboards GA content (#76496)
imatwawana Oct 13, 2023
7f89251
chore: Remove gh-form and LegacyForms from InfluxFluxConfig (#76495)
papidb Oct 13, 2023
335b73d
Chore: remove gf-forms and LegacyForms from Graphite ConfigEditor (#7…
tskarhed Oct 13, 2023
48ef88a
Access: Fetch fresh permissions for target GlobalOrgID in AuthorizeIn…
Jguer Oct 13, 2023
889576a
Transforms: Add 'Format String' Transform (#73624)
sjd210 Oct 13, 2023
3622120
Docs k8smon whats new content (#76153)
BeverlyJaneJ Oct 13, 2023
ae6f478
Docs: add content outline to Cloud what's new (#76579)
imatwawana Oct 13, 2023
f906bc1
Docs: add no basic role to Cloud what's new (#76577)
imatwawana Oct 13, 2023
862fd83
Docs: add cloud feature release dates (#76585)
imatwawana Oct 13, 2023
3ba78c4
Canvas: Promote Button to beta (#76582)
adela-almasan Oct 13, 2023
56c2d8f
Snapshots: Fix breakage of some panel types due to missing structureR…
leeoniya Oct 13, 2023
0238db4
DashGPT: Improve save dashboard description generation (#75699)
nmarrs Oct 14, 2023
f3c4d76
Update dependency eslint-plugin-import to v2.28.1 (#76539)
renovate[bot] Oct 16, 2023
ad15c55
Loki: Remove legacy form classes from LokiQuerySettings (#76331)
shabeebk Oct 16, 2023
474e433
Update dependency @grafana/scenes to v1.19.0 (#76507)
renovate[bot] Oct 16, 2023
e380daf
Update dependency eslint to v8.51.0 (#76522)
renovate[bot] Oct 16, 2023
70d41d5
Update dependency eslint-plugin-jest to v27.4.2 (#76602)
renovate[bot] Oct 16, 2023
260e123
Transformations: Remove usage of gf-forms in FilterByValue transforma…
JoaoSilvaGrafana Oct 16, 2023
a8b9c04
Grafana/UI: Extend all layout component props to include html attribu…
JoaoSilvaGrafana Oct 16, 2023
549df18
Update dependency eslint-plugin-jsdoc to v46.8.2 (#76606)
renovate[bot] Oct 16, 2023
5423e75
Nav: Replace cloneDeep() in MegaMenu (#76607)
L-M-K-B Oct 16, 2023
ede77b0
Update dependency eslint-plugin-react to v7.33.2 (#76610)
renovate[bot] Oct 16, 2023
fb7ba57
Update dependency i18next-browser-languagedetector to v7.1.0 (#76611)
renovate[bot] Oct 16, 2023
c04e96b
Elasticsearch: Remove LegacyForms and gf-form from DataLink (#76397)
Ciggzy1312 Oct 16, 2023
bc98f3d
Grafana UI: Add Avatar component (#76429)
Clarity-89 Oct 16, 2023
ae5e030
RBAC: generated prefixed uids for external service role (#76601)
kalleep Oct 16, 2023
aad68ac
Update dependency msw to v1.3.2 (#76615)
renovate[bot] Oct 16, 2023
db4b7a3
Update dependency rc-cascader to v3.18.1 (#76616)
renovate[bot] Oct 16, 2023
406888d
Stack: Filter out undefined children (#76617)
Clarity-89 Oct 16, 2023
8156457
Add Aggregate by to what's new (#76550)
09jvilla Oct 16, 2023
c986029
Sandbox: Add e2e tests to test global variables access (#76598)
academo Oct 16, 2023
7680576
Docs: Whats new for multiple spansets (#76447)
joey-grafana Oct 16, 2023
67656eb
Documentation: Clean up Docker installation docs (#76164)
d4nyll Oct 16, 2023
c095ffa
Docs: add correlations content to What's new in Cloud (#76558)
imatwawana Oct 16, 2023
9d92818
Plugins: Update PDC pattern from latest plugin SDK changes (#76576)
wbrowne Oct 16, 2023
1bc3bb4
Docs: add alerting insights entry (#76549)
imatwawana Oct 16, 2023
2054c53
CloudWatch Logs: Add pattern command to syntax (#76152)
iwysiu Oct 16, 2023
5a2a3ab
docs/whatsnew: (10.2) Add recorded queries multiple metrics (#76554)
kylebrandt Oct 16, 2023
87d697e
TeamPicker: Add optional initial value support (#76353)
alexanderzobnin Oct 16, 2023
6d5e728
Update dependency rc-drawer to v6.5.2 (#76621)
renovate[bot] Oct 16, 2023
8c456ec
Docs: Update new Browse Dashboards (#76567)
joshhunt Oct 16, 2023
157ea31
Build testdata frontend standalone (#75833)
andresmgot Oct 16, 2023
8dfd918
Dashboard: Use Interval variable in DashboardScene (#75836)
axelavargas Oct 16, 2023
19795f9
Legend: Better support for 2 y-axis (#76092)
adela-almasan Oct 17, 2023
faa22b8
CI: Remove `0.0.0-test` tag event (#76662)
dsotirakis Oct 17, 2023
676877f
Chore: Reduce flakiness of e2e tests caused by write contention in sq…
JacobsonMT Oct 17, 2023
8ebbe06
Tracing: Remove unused code (#76538)
joey-grafana Oct 17, 2023
f5076d1
Plugins: Add status_source label to plugin request metrics (#76236)
xnyo Oct 17, 2023
99c2467
Update dependency rc-slider to v10.3.1 (#76622)
renovate[bot] Oct 17, 2023
a546db4
Nav: Remove and refactor MegaMenu and its sub-components (#76614)
L-M-K-B Oct 17, 2023
2cab0d3
Social: Fix error decoding id_token log (#76664)
gamab Oct 17, 2023
8db5993
Release: Bump version to 10.2.0 (#59)
grafana-delivery-bot[bot] Oct 23, 2023
ce793fe
Chore: Update whatsnew URL
zerok Oct 23, 2023
895fbaf
[v10.2.x] Chore: Fix formatter test (#76867)
grafana-delivery-bot[bot] Oct 20, 2023
ce46596
Fix: Disable armv7 et al builds during tag building
zerok Oct 24, 2023
ae830f6
Fix: Disable armv7 et al in more build steps
zerok Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
11,448 changes: 5,437 additions & 6,011 deletions .betterer.results

Large diffs are not rendered by default.

131 changes: 83 additions & 48 deletions .betterer.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
import { regexp } from '@betterer/regexp';
import { BettererFileTest } from '@betterer/betterer';
import { promises as fs } from 'fs';
import { ESLint, Linter } from 'eslint';
import { existsSync } from 'fs';
import path from 'path';
import { glob } from 'glob';

// Why are we ignoring these?
// They're all deprecated/being removed soon so doesn't make sense to fix types
const eslintPathsToIgnore = [
'packages/grafana-e2e', // deprecated.
'public/app/angular', // will be removed in Grafana 11
'public/app/plugins/panel/graph', // will be removed alongside angular
];

export default {
'no enzyme tests': () => regexp(/from 'enzyme'/g).include('**/*.test.*'),
'better eslint': () => countEslintErrors().include('**/*.{ts,tsx}'),
'no undocumented stories': () => countUndocumentedStories().include('**/*.story.tsx'),
'better eslint': () =>
countEslintErrors()
.include('**/*.{ts,tsx}')
.exclude(new RegExp(eslintPathsToIgnore.join('|'))),
'no undocumented stories': () => countUndocumentedStories().include('**/!(*.internal).story.tsx'),
};

function countUndocumentedStories() {
return new BettererFileTest(async (filePaths, fileTestResult) => {
filePaths.forEach((filePath) => {
if (!existsSync(filePath.replace(/\.story.tsx$/, '.mdx'))) {
// In this case the file contents don't matter:
const file = fileTestResult.addFile(filePath, '');
// Add the issue to the first character of the file:
file.addIssue(0, 0, 'No undocumented stories are allowed, please add an .mdx file with some documentation');
}
});
await Promise.all(
filePaths.map(async (filePath) => {
// look for .mdx import in the story file
const regex = new RegExp("^import.*.mdx';$", 'gm');
const fileText = await fs.readFile(filePath, 'utf8');
if (!regex.test(fileText)) {
// In this case the file contents don't matter:
const file = fileTestResult.addFile(filePath, '');
// Add the issue to the first character of the file:
file.addIssue(0, 0, 'No undocumented stories are allowed, please add an .mdx file with some documentation');
}
})
);
});
}

Expand All @@ -27,46 +43,65 @@ function countEslintErrors() {
const { baseDirectory } = resolver;
const cli = new ESLint({ cwd: baseDirectory });

await Promise.all(
filePaths.map(async (filePath) => {
const linterOptions = (await cli.calculateConfigForFile(filePath)) as Linter.Config;
const eslintConfigFiles = await glob('**/.eslintrc');
const eslintConfigMainPaths = eslintConfigFiles.map((file) => path.resolve(path.dirname(file)));

const rules: Partial<Linter.RulesRecord> = {
'@typescript-eslint/no-explicit-any': 'error',
};
const baseRules: Partial<Linter.RulesRecord> = {
'@emotion/syntax-preference': [2, 'object'],
'@typescript-eslint/no-explicit-any': 'error',
'@grafana/no-aria-label-selectors': 'error',
};

const isTestFile =
filePath.endsWith('.test.tsx') || filePath.endsWith('.test.ts') || filePath.includes('__mocks__');
const nonTestFilesRules: Partial<Linter.RulesRecord> = {
...baseRules,
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
};

if (!isTestFile) {
rules['@typescript-eslint/consistent-type-assertions'] = [
'error',
{
assertionStyle: 'never',
},
];
}
// group files by eslint config file
// this will create two file groups for each eslint config file
// one for test files and one for non-test files
const fileGroups: Record<string, string[]> = {};

const runner = new ESLint({
baseConfig: {
...linterOptions,
rules,
},
useEslintrc: false,
cwd: baseDirectory,
});
for (const filePath of filePaths) {
let configPath = eslintConfigMainPaths.find((configPath) => filePath.startsWith(configPath)) ?? '';
const isTestFile =
filePath.endsWith('.test.tsx') ||
filePath.endsWith('.test.ts') ||
filePath.includes('__mocks__') ||
filePath.includes('public/test/');

if (isTestFile) {
configPath += '-test';
}
if (!fileGroups[configPath]) {
fileGroups[configPath] = [];
}
fileGroups[configPath].push(filePath);
}

const lintResults = await runner.lintFiles([filePath]);
lintResults
.filter((lintResult) => lintResult.source)
.forEach((lintResult) => {
const { messages } = lintResult;
const file = fileTestResult.addFile(filePath, '');
messages.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
for (const configPath of Object.keys(fileGroups)) {
const rules = configPath.endsWith('-test') ? baseRules : nonTestFilesRules;
// this is by far the slowest part of this code. It takes eslint about 2 seconds just to find the config
const linterOptions = (await cli.calculateConfigForFile(fileGroups[configPath][0])) as Linter.Config;
const runner = new ESLint({
baseConfig: {
...linterOptions,
rules: rules,
},
useEslintrc: false,
cwd: baseDirectory,
});
const lintResults = await runner.lintFiles(fileGroups[configPath]);
lintResults
.filter((lintResult) => lintResult.source)
.forEach((lintResult) => {
const { messages } = lintResult;
const filePath = lintResult.filePath;
const file = fileTestResult.addFile(filePath, '');
messages.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
})
);
});
}
});
}
22 changes: 17 additions & 5 deletions .bingo/Variables.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.7. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
Expand All @@ -23,24 +23,36 @@ $(BRA): $(BINGO_DIR)/bra.mod
@echo "(re)installing $(GOBIN)/bra-v0.0.0-20200517080246-1e3013ecaff8"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=bra.mod -o=$(GOBIN)/bra-v0.0.0-20200517080246-1e3013ecaff8 "github.com/unknwon/bra"

CUE := $(GOBIN)/cue-v0.5.0
$(CUE): $(BINGO_DIR)/cue.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/cue-v0.5.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=cue.mod -o=$(GOBIN)/cue-v0.5.0 "cuelang.org/go/cmd/cue"

DRONE := $(GOBIN)/drone-v1.5.0
$(DRONE): $(BINGO_DIR)/drone.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/drone-v1.5.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=drone.mod -o=$(GOBIN)/drone-v1.5.0 "github.com/drone/drone-cli/drone"
@cd $(BINGO_DIR) && GOWORK=off CGO_ENABLED=0 $(GO) build -mod=mod -modfile=drone.mod -o=$(GOBIN)/drone-v1.5.0 "github.com/drone/drone-cli/drone"

GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.49.0
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.53.3
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/golangci-lint-v1.49.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.49.0 "github.com/golangci/golangci-lint/cmd/golangci-lint"
@echo "(re)installing $(GOBIN)/golangci-lint-v1.53.3"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.53.3 "github.com/golangci/golangci-lint/cmd/golangci-lint"

JB := $(GOBIN)/jb-v0.5.1
$(JB): $(BINGO_DIR)/jb.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/jb-v0.5.1"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=jb.mod -o=$(GOBIN)/jb-v0.5.1 "github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb"

LEFTHOOK := $(GOBIN)/lefthook-v1.4.8
$(LEFTHOOK): $(BINGO_DIR)/lefthook.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/lefthook-v1.4.8"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=lefthook.mod -o=$(GOBIN)/lefthook-v1.4.8 "github.com/evilmartians/lefthook"

SWAGGER := $(GOBIN)/swagger-v0.30.2
$(SWAGGER): $(BINGO_DIR)/swagger.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
Expand Down
5 changes: 5 additions & 0 deletions .bingo/cue.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT

go 1.19

require cuelang.org/go v0.5.0 // cmd/cue
58 changes: 58 additions & 0 deletions .bingo/cue.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
cuelang.org/go v0.4.3 h1:W3oBBjDTm7+IZfCKZAmC8uDG0eYfJL4Pp/xbbCMKaVo=
cuelang.org/go v0.4.3/go.mod h1:7805vR9H+VoBNdWFdI7jyDR3QLUPp4+naHfbcgp55HI=
cuelang.org/go v0.5.0-beta.2 h1:am5M7jGvNTJ0rnjrFNyvE7fucL/wRqb0emK4XxdThQI=
cuelang.org/go v0.5.0-beta.2/go.mod h1:okjJBHFQFer+a41sAe2SaGm1glWS8oEb6CmJvn5Zdws=
cuelang.org/go v0.5.0 h1:D6N0UgTGJCOxFKU8RU+qYvavKNsVc/+ZobmifStVJzU=
cuelang.org/go v0.5.0/go.mod h1:okjJBHFQFer+a41sAe2SaGm1glWS8oEb6CmJvn5Zdws=
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
github.com/cockroachdb/apd/v2 v2.0.1 h1:y1Rh3tEU89D+7Tgbw+lp52T6p/GJLpDmNvr10UWqLTE=
github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E=
github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw=
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/emicklei/proto v1.6.15 h1:XbpwxmuOPrdES97FrSfpyy67SSCV/wBIKXqgJzh6hNw=
github.com/emicklei/proto v1.10.0 h1:pDGyFRVV5RvV+nkBK9iy3q67FBy9Xa7vwrOTE+g5aGw=
github.com/emicklei/proto v1.10.0/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0=
github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0=
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de h1:D5x39vF5KCwKQaw+OC9ZPiLVHXz3UFw2+psEX+gYcto=
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de/go.mod h1:kJun4WP5gFuHZgRjZUWWuH1DTxCtxbHDOIJsudS8jzY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/protocolbuffers/txtpbfmt v0.0.0-20201118171849-f6a6b3f636fc h1:gSVONBi2HWMFXCa9jFdYvYk7IwW/mTLxWOF7rXS4LO0=
github.com/protocolbuffers/txtpbfmt v0.0.0-20220428173112-74888fd59c2b h1:zd/2RNzIRkoGGMjE+YIsZ85CnDIz672JK2F3Zl4vux4=
github.com/protocolbuffers/txtpbfmt v0.0.0-20220428173112-74888fd59c2b/go.mod h1:KjY0wibdYKc4DYkerHSbguaf3JeIPGhNJBp2BNiFH78=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449 h1:xUIPaMhvROX9dhPvRCenIJtU78+lbEenGbgqB5hfHCQ=
golang.org/x/mod v0.6.0-dev.0.20220818022119-ed83ed61efb9 h1:VtCrPQXM5Wo9l7XN64SjBMczl48j8mkP+2e3OhYlz+0=
golang.org/x/mod v0.6.0-dev.0.20220818022119-ed83ed61efb9/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b h1:0mm1VjtFUOIlE1SbDlwjYaDxZVDP2S5ou6y0gSgXHu8=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/tools v0.0.0-20200612220849-54c614fe050c h1:g6oFfz6Cmw68izP3xsdud3Oxu145IPkeFzyRg58AKHM=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion .bingo/drone.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.17

replace github.com/docker/docker => github.com/docker/engine v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible

require github.com/drone/drone-cli v1.5.0 // drone
require github.com/drone/drone-cli v1.5.0 // drone CGO_ENABLED=0
Loading