The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/scripts/ci-frontend-metrics.sh

50 lines
1.7 KiB

#!/bin/bash
echo -e "Collecting code stats (typescript errors & more)"
7.0.0 cherry-picks (#24726) * TablePanel: Fix JSON tooltip positioning (#24420) * Fix block element and overflow * Width not needed * Add to styles file (cherry picked from commit f714357fbfa5863d786434a6ff87cd23617d27bd) * 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 63d25944c424a820350fd00ce306cdea7cabddcb) * Reporting: tzdata is needed for reporting (#24422) (cherry picked from commit de8c1b9ad7d793205a73a0b36e28ae8ae88c115a) * Storybook: Position panel to right (#24429) (cherry picked from commit 8257633b1d9eaabe7313067629b669588e1c8526) * Chore: move dataFramesReceived event to @grafana/data (#24443) (cherry picked from commit 7e6ac12b9aa7e0644b0806805c03a6891864217e) * 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 221042c29370898955cf2a99d664e3631e282417) * Logs: Clicking "Load more" from context overlay doesn't expand log row (#24299) Closes #24184 (cherry picked from commit 35c097e47508dda43ffa8c376ab2d08ec636a01c) * 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 a655aa1ca8fea5b468d1ffaa2387ef05f9a44647) * OldTable: Make old table options align & look better (#24485) (cherry picked from commit e333d61b97de46fddd911be63beffcfbc0c0ebf7) * Buttons: Use text color (#24439) (cherry picked from commit c671fdbbf824ec51e9588219c149b604de116845) * StatPanels: Hide calc option if all values is selected (#24416) (cherry picked from commit 352f22042c5f0dc22b1885a9d7d749da29d4276a) * 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 c5fc18ac02ccebe945586c8f49aea138618d754b) * Reduce Transform: sort order is preserved as entered by user (#24494) (cherry picked from commit e341d4b26f50115ccacbcde6069c19e799cbc91d) * TimeZone: added e2e tests for the custom time zone support. (#24442) (cherry picked from commit a521a39ebf47b90d8156228bca2adfbede55b151) * CloudWatch/Logs: Add error message when log groups are not selected (#24361) * Add error message * Fix empty check (cherry picked from commit d385045d16cae1905f5f46c47e853dbd6b3aac45) * 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 b16202acc28ac2ff5a496a5788bf482504f680f6) * 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 34f61934a1e6d3ca601c2418557da6cb0ba25bc3) * TablePanel: Fixed persisting column resize time series fields (#24505) (cherry picked from commit f13a15ae48d8fed899cda40723256414e6940815) * PluginsList: Remove unused panel options (#24501) * Remove unused panel options * satisfy ts (cherry picked from commit 2e69b869904b848e8e6441d21f1a025fdb0224e0) * CloudWatch/Logs: Language provider refactor and test (#24425) (cherry picked from commit 876011d931bb8f4214ccfb172f1c0c8ca86d448a) * 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 c26374b0b26a1d44cc745cfd82b465db8e84a50b) * CloudWatch/Logs: Fix suggestions of fields after comma (#24520) (cherry picked from commit 2d29997bdae241186e05e2a44846375de7547b28) * GraphLegend: Only display scrollbar if necessary (#24527) (cherry picked from commit cb74bc68285a9ad06e3f9062e5e82f1744c83515) * CloudWatch/Logs: Fix fields not being refetched when log group changed (#24529) (cherry picked from commit 55533d12fd66811142d549a3d0fd24e58c22a135) * 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 ae7f0aeb7a47625bf5e3453e38da0e18ffd73126) * 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 67ed579647866d0279b6682415ae3c506f31151b) * 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 db91961405f5c7fefb648e420f68005e8cc54b77) * 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 5caf7f59e6273919e4baaf37614fe4ffcbe44a7c) * LabelsToFields: avoid MutableDataFrame (#24493) (cherry picked from commit c8d3d15292f18f9b9fe9f4a8d419649f17947b63) * 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 143a26769b111249b12033cae0c6b891e6c11d24) * PanelEditor: Fix so defaults is selected when datasource can't be found. (#24526) (cherry picked from commit cb4266bae0371eeaf0597b885dc699a7c8e21f7b) * Graphite: makes query annotations work again (#24556) (cherry picked from commit 7992f8bfbcb97d22118f5c24f0e8b4b29f3a8bda) * azuremonitor: limit macro regex to known macros (#24528) (cherry picked from commit 64046e9a27cebeb89bd539902c08b8d5509f8556) * 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 28f54bc2f76a7a5b4189a236d69ea2497ccb49fb) * Admin Settings: makes long settings line break (#24559) (cherry picked from commit 74ddfe07a207e564c154ec773fd2baa63f33aba4) * Update light variable theme for dropdown (#24566) (cherry picked from commit 67dab0b7674180eb4934d53ee8e421c24b34b575) * UI spelling: use US form of visualization (#24558) (cherry picked from commit bffa0fa4f6ebe01bef58f0407a89c44a0661b52a) * e2e: adds verify release (#24568) (cherry picked from commit 7d800e73189873240f13bb107ccf17d830720379) * Search: Save folder expanded state (#24496) * Search: Save folder expanded state * Search: Remember expanded state on search close (cherry picked from commit 0396b220a362163d780bfb9a491a00726df61186) * Data sources: Don't fail if URL doesn't specify protocol (#24497) (cherry picked from commit 164242f5fd8fd8efa0e455ea70051f181cb1e09c) * 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 125ba95686df79989626ac1e8aa48e582c0efd98) * 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 8de10a8b9fe64ded8aed11165b543959e9934862) * Do not set insertText if the same as label (#24581) (cherry picked from commit 20f0ee2f223cd1149f6e80a0f4626dd5914faf91) * Plugins: Fix manifest verification (#24573) (cherry picked from commit 892f9f789c7b1a14d5cd4a3c8ec6ec38b1536f0f) * 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 15ac76a47bc218bea6b1c30787cbfbf2ac7c1aaf) * 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 0c1f1dd8fd13d47dfaa498c98c543abf25b8997b) * Loki: Allow multiple derived fields with the same name (#24437) (cherry picked from commit a50cb6aa1f005da0168e513f09a968fd7cfea068) * Datasource/CloudWatch: Fixes various autocomplete issues (#24583) (cherry picked from commit c1919944eacd5a5e539e1ee1315b42ef9b93f676) * 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 824eb94efecd7d3516e0a65adc484d4c1b503623) * CloudWatch/Logs: Make stats hint show consistently (#24392) (cherry picked from commit 5feef22034a05222ecbbce935174ba868f8ca4cd) * Table: fixes Cannot read property subRows of null (#24578) (cherry picked from commit 2d19c046f2d11f4049888e0138a4009b6ad93980) * 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 cab066f8ceae49459c05f61baf7bcaa8dc5de996) * 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 36fa54a28887679e006b5744f0ad6e63b8d857c3) * Chore: Fix strict null errors on getting started (#24605) * fix strict nulls * fix typings (cherry picked from commit 184890007032cb3f7be82bd2747fd6b3056f90de) * CircleCI: Upgrade grabpl in order to fix package publishing (#24609) Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> (cherry picked from commit 03940c847131a58c5ee8cfe67cc958f9401b4cb5) * Fix Safari Icon alignment (#24610) (cherry picked from commit 04c75265b5bd2814fe82bc6b44e7a202554c3815) * Transformations: Make transform dropdowns not cropped (#24615) (cherry picked from commit 9e24c0944f9dcd8a41e4d17900329b3c25bb2374) * 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 f23ecc40b43e85f0ec91cd39eb72c18a9f9ce9e2) * 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 97e2837d7c28199fb73a73edcd8c54c4a4c0ee82) * SharedPreferences: fixes so UI Theme can be set back to Default (#24628) (cherry picked from commit cd9cbe5e16d44f2ef5feda448660773c62d1e793) * 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 277aee864269753d45a2a2e725998aac59f592e9) * Datasource/CloudWatch: Correctly interpolate variables in CloudWatch Logs queries (#24619) Closes #24603 (cherry picked from commit bfd337dd004ef837eec112ee94ba64d5e213b8b8) * 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 285ea7595d8a5056ca881ea979e039e9caaf7955) * CloudWatch: Don't assume that errors are awserr.Error instances (#24641) Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> (cherry picked from commit 8e5a3a578a493f08f3695940739e5d3338d8b96a) * Zipkin: Fix error when span contains remoteEndpoint (#24524) (cherry picked from commit 0f964c02147dffdd548d18469fb296d5554925d1) * Templating: fixes so Textbox variables get value from url (#24623) (cherry picked from commit 622246d56de65978acf6d0a68eacd21fabfd2646) * 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 083a2ce220e6414d8a65a0280ca797393831e337) * 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 f769ed035d2934897a7314b6219508d5e3055d75) * @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 f1386c78929595a99ba28a39449a4350a908a186) * Search: Fix select item pressing enter 404 (#24634) * Remove appSubUrl for navigation * stripBaseFromUrl * Remove unused imports (cherry picked from commit 37a2ac20c321e5411b4c6faaa0d6125039beb07b) * @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 54a90166a5e07aa11a89dc52b3b95144a4497304) * Datasource Config: adds back correct styles for autofill fields (#24671) (cherry picked from commit 9481b7bcf2478cf14007dbf377f1c9a560993c2e) * Changelog and Readme: Update packages to beta and add Select breaking change (#24670) (cherry picked from commit 85ae144a87710578e1e891496ed759f2034140d0) * 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 2f22781cd8963fc810e24e550dee06b04f8f066e) * Provisioning: Use proxy as default access mode in provisioning (#24669) fixes #24591 fixes #19501 (cherry picked from commit 7610d5717aa46be6afef6bd15cbd94051e038f0e) * Fallback to process.cwd() when PWD is not present (#24677) Fixes #24582 - Error running yarn dev command (cherry picked from commit 660f2b4e99c6e8ba321747419d186a12de7f57dc) * SaveDashboard: Allow editing provisioned dashboard JSON and add confirmation when JSON is copied to dashboard (#24680) (cherry picked from commit cfac591234b1330ca7be8d1eb62412f446ee4cc6) * Units: adds scale symbol for currencies with suffixed symbol (#24678) (cherry picked from commit 51509bb2ffdb6794933456cec401174245198285) * CloudWatch/Logs: Fix panic on multiple aggregations queries (#24683) (cherry picked from commit c60765a178dcb4ad8b4527262d6abb10aa5b0a54) 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 abfa1b5d747a892a1b278f43f7d9c1756bdc59d8) * CloudWatch: Unify look of query mode select between dashboard and explore (#24648) (cherry picked from commit e754bcdcf9a0045a536a7c0c70e0761e254023ba) * 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 e11504dcd24bac55d6b7f26bfcb3a49122c2b35f) * 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 01bbcf4eea366f7fccf145a5d24520f483adcc48) * Add deprecation note about the unofficial first version of backend plugins (#24675) (cherry picked from commit 0c8ee5b2c92835a6d9229e9926321a665732863e) * CloudWatch/Logs: Fix autocomplete after by keyword (#24644) (cherry picked from commit 2b9cc8ba30c968f71dbc9ee4b46639824293788a) * TablePanel: Do not include angular options in options when switching from angular panel (#24684) (cherry picked from commit c59f5436c0307fc5b2d82c3d16e011ee33ab6755) * Datasources: fix pre styles (#24687) (cherry picked from commit 7fbed90b89befa73a2ecb1d26bab96a412e4c5e2) * @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 405145fdd3a8677981e922b6e9cc8a969893c306) * 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 25e1238022c9335601207a2867b054413e416ba4) * 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 ee12f5e7422afa4226eb37cebf57be2eff6b7606) * 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 e4cbeb5cb3da0d0017133edafc566a3bed5fed99) * Explore: fixes loading more logs in logs context view (#24135) (cherry picked from commit d3a8f6d0269f6dd9a55cd6c8f6841147d63d9d87) * Datasource/CloudWatch: Handle invalidation of log groups when switching datasources (#24703) (cherry picked from commit 1b29d3460e9fcc44fec738a716bfdbca2c8f9630) * 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 bf1e5aa16ccec249fdc2c21de163221d4b08b327) * CloudWatch/Logs: Fix query error when results are sparse (#24702) (cherry picked from commit bc8c05137bce3babcc89d2d66dcb2889c49e3725) * Datasource/CloudWatch: Allows a user to search for log groups that aren't there initially (#24695) Closes #24554 (cherry picked from commit 0e8638ec925b0d73e15a0ffc783b5a2becd5264e) * 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 96f26cbd5b9e7d9a7e89a3bd0dd4bc843b1469ef) * Fix: changing so we are using date/time values in UTC during test. (#24707) (cherry picked from commit 98d56336016066fad0758b1f18841eeb2fd920e4) * 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 6a0abf895e9d9f37eb08c66ab90a1049f03420df) * Query: do not require datasource name and id (#24718) (cherry picked from commit b73d237bf8d1235932f1942c7cb99d106e65cf36) * Metrictank: Fixed updated schema and dedupe strategy (#24685) * Metrictank: Fixed updated schema and dedupe strategy * revert schema change * fix (cherry picked from commit 7fcf2615e15512170e72fbe1325f43fdfe55eb81) * 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>
6 years ago
ERROR_COUNT_LIMIT=726
DIRECTIVES_LIMIT=172
CONTROLLERS_LIMIT=139
ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strictNullChecks true | grep -oP 'Found \K(\d+)')"
DIRECTIVES="$(grep -r -o directive public/app/**/* | wc -l)"
CONTROLLERS="$(grep -r -oP 'class .*Ctrl' public/app/**/* | wc -l)"
STORIES_COUNT="$(find ./packages/grafana-ui/src/components -name "*.story.tsx" | wc -l)"
MDX_COUNT="$(find ./packages/grafana-ui/src/components -name "*.mdx" | wc -l)"
LEGACY_FORMS="$(grep -r -oP 'LegacyForms;' public/app/**/* | wc -l)"
if [ "$ERROR_COUNT" -gt $ERROR_COUNT_LIMIT ]; then
echo -e "Typescript strict errors $ERROR_COUNT exceeded $ERROR_COUNT_LIMIT so failing build"
exit 1
fi
if [ "$DIRECTIVES" -gt $DIRECTIVES_LIMIT ]; then
echo -e "Directive count $DIRECTIVES exceeded $DIRECTIVES_LIMIT so failing build"
exit 1
fi
if [ "$CONTROLLERS" -gt $CONTROLLERS_LIMIT ]; then
echo -e "Controllers count $CONTROLLERS exceeded $CONTROLLERS_LIMIT so failing build"
exit 1
fi
echo -e "Typescript errors: $ERROR_COUNT"
echo -e "Directives: $DIRECTIVES"
echo -e "Controllers: $CONTROLLERS"
echo -e "Stories: $STORIES_COUNT"
echo -e "Documented stories: $MDX_COUNT"
echo -e "Legacy forms: $LEGACY_FORMS"
if [ "${CIRCLE_BRANCH}" == "master" ]; then
./scripts/ci-metrics-publisher.sh \
grafana.ci-code.strictErrors="$ERROR_COUNT" \
grafana.ci-code.directives="$DIRECTIVES" \
grafana.ci-code.controllers="$CONTROLLERS" \
grafana.ci-code.grafana-ui.stories="$STORIES_COUNT" \
grafana.ci-code.grafana-ui.mdx="$MDX_COUNT" \
grafana.ci-code.legacyForms="$LEGACY_FORMS"
fi