mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Resource store sql backend watch (#90480)
* Squashed commit of the following: commit 3ae9aea0fdc5eef70e16e0ba26f817ca1883ebc9 Author: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 17 23:21:07 2024 +0200 Add group and resource to ListOptions commit 638441a656d4098343fd72f1942c5845fb50f536 Author: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 17 22:25:35 2024 +0200 poll for resources independently commit 4c4c88e2d6b69a589a03fc4ea3b287ef557d67a0 Author: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 17 17:39:10 2024 +0200 Update pkg/storage/unified/sql/data/resource_history_poll.sql Co-authored-by: Dan Cech <dcech@grafana.com> commit 67f42dbfcaa6b92056c7e6e25f21e870b7fa08e6 Author: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 17 16:01:13 2024 +0200 Update pkg/storage/unified/sql/backend.go Co-authored-by: Dan Cech <dcech@grafana.com> commit e869e829d07d6fce6f79f18679680d32fa9491f5 Author: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 17 16:01:06 2024 +0200 Update pkg/storage/unified/sql/backend.go Co-authored-by: Dan Cech <dcech@grafana.com> commit 6e498c0cd7434007649fd8de30a7d17e1c425c42 Author: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 16 16:47:35 2024 +0200 Add watch working for multiple resources commit0da775e521Author: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 16 11:14:55 2024 +0200 indent commite15d1d060cAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 15 14:41:15 2024 +0200 reindent sql commita64f88b0eaAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Fri Jul 12 18:32:13 2024 +0200 Update pkg/storage/unified/sql/backend.go Co-authored-by: Dan Cech <dcech@grafana.com> commitdd383150bfAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Wed Jul 10 10:45:56 2024 +0200 lint commitccf12406a6Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 9 15:25:54 2024 -0700 merge main commit2b4b9f66d3Merge:df72a61a52079f0715aaAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 9 15:12:51 2024 -0700 merge main commitdf72a61a52Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 9 15:06:32 2024 -0700 clearnup against smaller upstream commit12257d9dfeAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 9 15:03:50 2024 -0700 clearnup against smaller upstream commit07b804457eAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 9 21:41:30 2024 +0200 listAtRevision should always use the token from the RV if present commit1fc1dd0914Author: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 9 19:45:44 2024 +0200 Update pkg/storage/unified/sql/backend.go commit2207ef10deAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 9 19:44:35 2024 +0200 Update pkg/storage/unified/sql/queries_test.go commit36d9099d1aAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 9 15:57:55 2024 +0200 lint commit37e0745d7aAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Tue Jul 9 12:26:49 2024 +0200 Fix missing rows.Close() commita6538fa8dfAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 23:54:33 2024 +0200 add resource_history_list test commite8214869deAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 23:51:14 2024 +0200 add resource_history_list test commitf6b32c94bdAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 23:42:46 2024 +0200 improve tests for pagination commitd305f1baf4Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 22:57:11 2024 +0200 Add pagination commitc8f516fc55Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 21:55:25 2024 +0200 pagination first page commitf3c554e668Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 12:16:16 2024 +0200 watch commit68a0cf5d81Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 12:12:09 2024 +0200 remove testdataJSON commitd98da81a42Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 11:49:05 2024 +0200 move sqltemplate commit80bf285216Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 10:49:25 2024 +0200 watch from head commit396979bcf6Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 10:19:01 2024 +0200 Cleanup commit26a2f947e8Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 10:04:13 2024 +0200 basic list commit4275a01bc2Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 00:54:33 2024 +0200 add watch commit75c25a527dAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 8 00:51:40 2024 +0200 add watch commit774ae238cbAuthor: Georges Chaudy <chaudyg@gmail.com> Date: Sun Jul 7 21:49:44 2024 +0200 Implement SQL store commit95ffa3486bAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 20:30:42 2024 -0700 cleanup commitab591cf4d1Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 20:25:12 2024 -0700 cleanup commitaa4901e206Merge:36f761009740cb4ac30fAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 20:16:34 2024 -0700 merge upstream commit40cb4ac30fMerge:8f4b3062d6fe201b6bb2Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 20:02:04 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store-bridge commit8f4b3062d6Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 19:23:40 2024 -0700 fix lint commit428b90c14bMerge:9e5b88c6ddedc1f50c4eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 18:46:30 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store-bridge commit9e5b88c6ddAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 15:56:28 2024 -0700 add field selectors commit8dd8bc85a6Merge:59a142095fde06762852Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 15:44:27 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store-bridge commit59a142095fMerge:53f16521a7f70f60efd0Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 14:45:35 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store-bridge commit53f16521a7Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 14:45:25 2024 -0700 add doc.go commit9fa906ab80Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 14:45:14 2024 -0700 add doc.go commit22d3f163dfMerge:d09979b332411bab6d44Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 13:55:27 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store-bridge commitd09979b332Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 13:55:12 2024 -0700 check for deleted commitddcbc753d3Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 13:38:16 2024 -0700 fix tabs to spaces commit2a4fedb6eeAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 10:58:43 2024 -0700 remove sort parsing commite728b12ec0Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 10:56:22 2024 -0700 remove watch tests -- key func complications commitdc163d10ccAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jul 3 08:59:09 2024 -0700 add resource store abstraction commit36f7610097Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 21:37:01 2024 -0700 using basic storage engine commit26ef342b7eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 21:24:53 2024 -0700 renamed to basic commitddb5f125f0Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 18:21:59 2024 -0700 add sqlobj basic implementation commit6a08224725Merge:04d57a99e55b6edc96d9Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 17:47:36 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store commit04d57a99e5Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:47:02 2024 -0700 merge main commit33917141f0Merge:924c42f7072a1b620c38Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:45:45 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store commit924c42f707Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:37:35 2024 -0700 make list preparelist commit0db0e13248Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:37:28 2024 -0700 make list preparelist commita3d9f8aab2Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:08:42 2024 -0700 remove eventID commit8c1f60aa8bAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 14:08:34 2024 -0700 remove eventID commitabacd9aef2Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 07:36:07 2024 -0700 split off blob store services commitddae2b4969Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jul 2 07:23:53 2024 -0700 rename search service to index service commita984a4e4f9Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 17:03:23 2024 -0700 more lint commitb25e735c02Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 16:04:53 2024 -0700 frontend refactors commit1fb97cf417Merge:fe8a05c648c3b5cabb14Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 15:02:34 2024 -0700 minor lint fixes commitfe8a05c648Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 08:12:28 2024 -0700 minor lint fixes commit9f2aae1c48Merge:ece478e12d86466aec61Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 08:03:18 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store commitece478e12dMerge:f472e95f9255ba32bda7Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jul 1 01:41:29 2024 -0700 Merge remote-tracking branch 'origin/main' into resource-store commitf472e95f92Author: Andres Martinez Gotor <andres.martinez@grafana.com> Date: Mon Jul 1 09:31:05 2024 +0200 Adapt docs/sources/developers/plugins/plugin.schema.json codeowners (#89832) commit8674d705eaAuthor: Sebastian Hiebl <bastidest@mailbox.org> Date: Sat Jun 29 01:13:34 2024 +0200 TimeSeries: Expose option for "Bar width factor" (#77338) Co-authored-by: Leon Sorokin <leeoniya@gmail.com> commit52d476db05Author: Leon Sorokin <leeoniya@gmail.com> Date: Thu Jun 27 18:58:49 2024 -0500 Table: Don't error if first frame is field-less (empty response) (#89867) commitcc5b4d6a94Author: Simon Podlipsky <simon@podlipsky.net> Date: Fri Jun 28 00:53:43 2024 +0300 Dockerfile: Fix go deps (#89857) Add missing deps commit7c86705b9bAuthor: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Thu Jun 27 15:49:20 2024 -0600 VizTooltip: Hide tooltip options from when tooltip is hidden (#89864) commitaa9299c4d7Author: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com> Date: Thu Jun 27 17:16:57 2024 -0400 Docs: Add tooltip options to histogram v11.2 (#89863) Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> commitf90168f500Author: Nathan Marrs <nathanielmarrs@gmail.com> Date: Thu Jun 27 14:43:10 2024 -0600 Chore: Lint json files in .github directory (#89861) commit0f65c06cfeAuthor: Nathan Marrs <nathanielmarrs@gmail.com> Date: Thu Jun 27 14:22:15 2024 -0600 Chore: Update DataViz github automation (#89852) commit058538287fAuthor: Lucy Chen <140550297+lucychen-grafana@users.noreply.github.com> Date: Thu Jun 27 15:36:23 2024 -0400 ShareModal: Export options (JSON) (#87082) * Adding new export button * Create Export as JSON drawer * update scene drawer and add css * update css * Update ExportAsJson to be regular react component * add tests to export menu and button * add tests * prettier and lint * fix translations * update translation * Apply suggestions from code review Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com> * delete extra file * Update to use SceneObject * add spinner * Rename ExportAsJSON.tsx to ExportAsJson.tsx * update i18n * Upate texts * small fixes from code review * add space * i18n * fix build issues * changes from review feedback * update test * update test --------- Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com> commit79092ebc6aAuthor: Juan Cabanas <juan.cabanas@grafana.com> Date: Thu Jun 27 14:30:33 2024 -0300 ShareDrawer: Schedule Report (#89802) commitd842178c6aAuthor: linoman <2051016+linoman@users.noreply.github.com> Date: Thu Jun 27 18:29:16 2024 +0200 SAML: Add Azure AD configuration for SAML integration (#89767) * Add Azure AD configuration for SAML integration commit920756f797Author: Ashley Harrison <ashley.harrison@grafana.com> Date: Thu Jun 27 16:43:43 2024 +0100 Storybook: Add basic e2e verification test (#89779) * add very basic tests to verify storybook builds correctly * add storybook step to drone * reorder steps * drone tweaks * don't need host since it's set in env * don't need to wait * format build.star and readd wait * install netcat in CI * do a yarn install here to get correct bindings * refactoring to hopefully work better in CI * add wait-on * add verbose logging * localhost? * more logging * specify storybook host * ... * back to grafana-server * does this work? 🤔 * run storybook e2e test after rgm-package so the backround process is running for less time * split into separate step * format commita760dad1e3Author: Ivan Ortega Alba <ivanortegaalba@gmail.com> Date: Thu Jun 27 17:26:38 2024 +0200 VizPanelManager: Adapt color palete after plugin change (#89790) * VizPanelManager: Adapt color palete after plugin change * Upgrade scenes * Remove broken code * Upgrade scenes version * linter commitc8ce20a807Author: Ida Štambuk <ida.stambuk@grafana.com> Date: Thu Jun 27 17:10:28 2024 +0200 Cloudwatch: Round up endTime in GetMetricData to next minute (#89341) * Add cloudWatchRoundUpEndTime feature toggle commit17ebc9614bAuthor: Kristina <kristina.durivage@grafana.com> Date: Thu Jun 27 09:46:49 2024 -0500 Explore / Query Library : Show user data (#88258) * Add basic button for adding a query template * Add hook to create a template * Handle notifications * Add tags to invalidate cache * Generate translations * Updates types * Add tests * Simplify code * Add user to type * Add a better default title * bring in piotrs pr and try to add user data * Move out of metadata (reserved in k8s) and make new values exportable * Show user data * Fix bad merge * WIP * Add annotation data to FE * add (failing) test * Fix types and test * Cleanup * Enhance user data and send to component for display * Fix type * Fix expected values * fix betterer * Fix test * Remove user lookup * testing slug usage for api * Revert "testing slug usage for api" This reverts commitcc4556c3b7. * change types, display userid if login isnt returned * Simply display whatever is in property * skip test on removed logic * Try waiting for query to finish before eval * Revert "Try waiting for query to finish before eval" This reverts commit6220cabd17. * Handle attribute not existing when storage type is file --------- Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com> commit91895e4835Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 27 17:43:59 2024 +0300 Chore(deps): Bump github.com/alicebob/miniredis/v2 from 2.30.1 to 2.33.0 (#88588) Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.30.1 to 2.33.0. - [Release notes](https://github.com/alicebob/miniredis/releases) - [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md) - [Commits](https://github.com/alicebob/miniredis/compare/v2.30.1...v2.33.0) --- updated-dependencies: - dependency-name: github.com/alicebob/miniredis/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commited6c948db0Author: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Thu Jun 27 14:17:21 2024 +0100 Dashboards: Change datemath parse logic so parsed dates always take timezone into account (#88182) * Dashboards: Change datemath parse logic so parsed dates always take timezone into account commit523d999414Author: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Thu Jun 27 14:00:42 2024 +0200 Alerting: Use runtime data source for getting events from alert state history in the bar chart (#89307) * Use runtime data source for getting events from alert state history in the bar chart * extract translations * refactor * More refactor * Update events limit * Add info icon with tooltip info for label querying filter * Add translations * Create new useRuleHistoryRecords hook skipping extraction of common labels as they are not used * Fix test * update limit value for the events in the api to 5000 * Use state for rows key * remove React import * Address review comments * Address review comments * run prettier * Remove duplicated handlers commitc3337c39b1Author: Laura Benz <48948963+L-M-K-B@users.noreply.github.com> Date: Thu Jun 27 14:00:12 2024 +0200 RestoreDashboards: Add search (#89692) * feat: add search * feat: run i18n extraction * refactor: styling issue for smaller screen sizes commit06084f0ed1Author: Alexander Zobnin <alexanderzobnin@gmail.com> Date: Thu Jun 27 13:57:06 2024 +0200 Zanzana: Initial schema loading (#89492) * Zanzana: Dummy schema loading * Load authorzation model for client --------- Co-authored-by: Karl Persson <kalle.persson@grafana.com> commitddea4ba8b2Author: ismail simsek <ismailsimsek09@gmail.com> Date: Thu Jun 27 13:33:35 2024 +0200 Chore: Remove CancelablePromise (#89564) * Remove CancelablePromise.ts as it wasn't used in anywhere * Move cancelable-promise to the place where it is used commit177747ecdaAuthor: Jack Westbrook <jack.westbrook@gmail.com> Date: Thu Jun 27 12:42:42 2024 +0200 Grafana/data: Remove barrel files part 1 (#89556) * chore(grafana-data): remove dataframe barrel file and update all imports and exports * chore(grafana-data): remove field barrel file and update imports n exports * chore(grafana-data): remove utils barrel file and update imports and exports * chore(grafana-data): remove tranformations barrel file and update imports n exports * chore(grafana-data): remove imports from root index.ts * chore(grafana-data): remove valueFormats barrel file and update imports n exports * chore(grafana-data): don't import from root barrel file commitc3b16639bcAuthor: Ashley Harrison <ashley.harrison@grafana.com> Date: Thu Jun 27 11:15:15 2024 +0100 Keybinds E2E: simplify keybinds e2e even further (#89819) simplify keybinds e2e even further commit8b7a891db4Author: AHeinlein <AHeinlein@users.noreply.github.com> Date: Thu Jun 27 12:07:30 2024 +0200 Docs: Update LDAP doc for debug view (#89522) Update LDAP doc LDAP debug view does not work with single bind since there is no way to bind to the LDAP server and perform the search. commitcb31a1b6ffAuthor: Tom Ratcliffe <tom.ratcliffe@grafana.com> Date: Thu Jun 27 10:33:40 2024 +0100 Alerting: Update warning message for Telegram parse_mode and default to empty value (#89630) commit3ef048cdd7Author: Sergej-Vlasov <37613182+Sergej-Vlasov@users.noreply.github.com> Date: Thu Jun 27 12:06:07 2024 +0300 DashboardScenes: Disable flaky new-datasource-variable e2e test (#89817) disable flaky new-datasource-variable e2e test commite09c1c7515Author: brendamuir <100768211+brendamuir@users.noreply.github.com> Date: Thu Jun 27 10:10:34 2024 +0200 Alerting docs: adds silence RBAC 11.1 (#89176) * Alerting docs: adds silence RBAC 11.1 * ran prettier * Improve docs with new rule-specific silence RBAC information * Apply suggestions from code review Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Apply suggestions from code review Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * prettier --------- Co-authored-by: Matt Jacobson <matthew.jacobson@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com> commit1aeceb9d9aAuthor: Alexander Akhmetov <me@alx.cx> Date: Thu Jun 27 09:45:15 2024 +0200 Alerting: Add setting for maximum allowed rule evaluation results (#89468) * Alerting: Add setting for maximum allowed rule evaluation results Added a new configuration setting `quota.alerting_rule_evaluation_results` to set the maximum number of alert rule evaluation results per rule. If the limit is exceeded, the evaluation will result in an error. commite96b1c0b42Author: Georges Chaudy <chaudyg@gmail.com> Date: Mon Jul 1 10:32:37 2024 +0200 Add unified-next-grpc (#89891) commitafe0848d16Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 13:11:10 2024 +0300 history UI commit2fab168fb1Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 12:08:46 2024 +0300 history UI commit1043efe3dbAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 11:26:42 2024 +0300 rename to legacy commitd452e53ce3Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 10:53:08 2024 +0300 avoid key from context commit19496ceed5Merge:b71329a8c3be1414b36bAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 10:19:58 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitb71329a8c3Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 10:09:59 2024 +0300 history in resource package commit37c6b56e4eMerge:80fa46b2259056ff73f6Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 08:49:46 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit80fa46b225Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 08:49:24 2024 +0300 history from SQL query commit4d49cc3118Merge:999cd506c0ed13959e33Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 07:35:23 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit999cd506c0Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 01:20:29 2024 +0300 now with dashboard history commit7345ece8efAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 27 00:10:30 2024 +0300 with dashboard service commit86a7064334Merge:f68390bebfba4f2713c5Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 26 16:04:23 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitf68390bebfAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 26 16:04:08 2024 +0300 not rest.Storage commitcfc192a2b5Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 26 12:53:57 2024 +0300 more utils commit197a837e1eMerge:44a134f72b4651506319Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 26 08:48:10 2024 +0300 merge main commit44a134f72bMerge:bac63d0edbf5d9c247d9Author: Ryan McKinley <ryantxu@gmail.com> Date: Mon Jun 24 20:55:15 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitbac63d0edbAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 17:39:19 2024 +0300 remove old comment commit37edc450a7Merge:af38567ea5b62f8c0f19Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 17:38:20 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitaf38567ea5Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 14:55:40 2024 +0300 remove unimplemented functions commitec925bab80Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 14:53:23 2024 +0300 has a watch bridge... but not working commitb771d38d78Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 11:13:35 2024 +0300 with build changes commit37c2dade15Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 09:58:38 2024 +0300 writing to SQL commitbb7d6d44cdAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 09:24:44 2024 +0300 with setup flags commitc2c9449629Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 09:09:01 2024 +0300 working commitd67f83a1f3Merge:b07c4e421061a102274dAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 07:49:24 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitb07c4e4210Merge:09741a3f49b075926202Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 21 00:52:10 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit09741a3f49Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 23:05:13 2024 +0300 merge main commit8a6d2e9b6eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 22:50:08 2024 +0300 merge main commit63ebf7b12eMerge:75d5ad465e5e95c1bdf8Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 22:34:38 2024 +0300 merge main commit75d5ad465eMerge:83df3bdec8d988f5c3b0Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 22:26:33 2024 +0300 merge main commit83df3bdec8Merge:a115bb621427e800768eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 18:07:48 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commita115bb6214Merge:c17140f26313e069b5afAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 20 17:05:36 2024 +0300 merge main commitc17140f263Merge:3a6e7dc3f05d328983a1Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 19 22:59:26 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit3a6e7dc3f0Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 19 22:09:33 2024 +0300 go mod tidy commit040f392018Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 19 22:01:10 2024 +0300 Storage: Add cdk blob support to ResourceStore (#89408) commit3e85f87db6Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 19 15:15:37 2024 +0300 Storage(NG): Move message and operation from protobuf to annotations (#89359) commit0b29ca5eacMerge:0717e39ec2b3907ca5ecAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 19 14:57:21 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit0717e39ec2Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 22:27:16 2024 +0300 K8s: Rename origin.key to origin.hash (#89337) commit4b4afa1fa7Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 21:19:21 2024 +0300 more cleanup commit9f6709c167Merge:7e171702f4b0c043de5fAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 21:17:30 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit7e171702f4Merge:760848d203890482052aAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 16:08:30 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit760848d203Author: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 16:07:55 2024 +0300 Storage (resource): Mutate object in storage, not k8s (#89331) commit5e4fa5d735Merge:4cde5bd59fea7f6ea32fAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 08:44:04 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit4cde5bd59fMerge:549ecfe0535f83fdef2cAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 18 07:27:05 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit549ecfe053Author: Ryan McKinley <ryantxu@gmail.com> Date: Sat Jun 15 00:49:06 2024 +0300 lint fix commit1a5de75c34Author: Ryan McKinley <ryantxu@gmail.com> Date: Sat Jun 15 00:42:19 2024 +0300 lint fix commit31a05d5666Author: Ryan McKinley <ryantxu@gmail.com> Date: Sat Jun 15 00:26:45 2024 +0300 hack hack hack... but working from kubectl commit2f64556cf1Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 23:34:04 2024 +0300 almost... but stuck on requester commitc1b786c718Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 23:10:59 2024 +0300 cleanup commitd8abf8d851Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 22:53:10 2024 +0300 entity bridge commitd5f3038421Merge:df9baddf538491e02cafAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 21:48:25 2024 +0300 merge main commitdf9baddf53Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 21:44:33 2024 +0300 move test files commit617dd1b40eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 21:30:41 2024 +0300 add basic list commit8108e90fe2Merge:ef3a60110915c81b2a8bAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 17:42:18 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitef3a601109Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 17:42:15 2024 +0300 update the event type messages commit55d1e8ad1dAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 17:41:16 2024 +0300 update the event type messages commita01f8dd099Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 16:52:17 2024 +0300 remove rv from key and update watch signature commite78a5122ceMerge:504d84b8b290c3d74955Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 16:19:53 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit504d84b8b2Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 15:21:28 2024 +0300 with storage wrapper commit4fa60b6546Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 15:21:17 2024 +0300 with storage wrapper commitd97d59ab38Merge:f66768c67d2dd44e2f58Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 14:55:52 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitf66768c67dAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 14:24:36 2024 +0300 now with a base server implementation commit4a41f7d0ddAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 14:24:26 2024 +0300 now with a base server implementation commit68003738fdAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 11:28:15 2024 +0300 use partial object metadata commitfc82089987Merge:9478befbcddd3c3b5857Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 10:57:16 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit9478befbcdMerge:19481990d12173429ce2Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 09:08:14 2024 +0300 merge main commit19481990d1Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 09:06:44 2024 +0300 merge main commit29714d87feAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 02:12:35 2024 +0300 use a path hash for the blob table commit382d5d4e01Author: Ryan McKinley <ryantxu@gmail.com> Date: Fri Jun 14 02:04:21 2024 +0300 add fs based store commit15b958b2d1Merge:a03a978eb4e2f65dda0cAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 22:56:34 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commita03a978eb4Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 22:37:29 2024 +0300 maybe happier commit79aed54c2cAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 22:12:55 2024 +0300 more body prep commit1540c98fe1Merge:f54af3d3719d3a4e236dAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 21:19:51 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitf54af3d371Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 20:12:53 2024 +0300 sum cleanup commita0f682b315Merge:2197a0e5e8eb535e163dAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 20:05:01 2024 +0300 merge main commit2197a0e5e8Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 16:02:06 2024 +0300 update workspace commitb696b6a32aAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 15:53:06 2024 +0300 update go.mod commit8f44e1a349Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 15:49:41 2024 +0300 lint fixes commitc1798320d2Merge:b44333730fafcb5a855cAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 14:27:42 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitb44333730fAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 14:26:57 2024 +0300 now with basic test commitf481f11d3aAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 09:11:10 2024 +0300 change tree structure commite7c15b0e96Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 08:42:00 2024 +0300 merged main and moved folder structure commit09e8605f14Merge:40829d645c99d8025829Author: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 07:14:54 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit40829d645cAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Thu Jun 13 07:08:54 2024 +0300 include client wrapper commit1857690bd0Merge:c9c18717f5ed400f0bbfAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 22:02:53 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commitc9c18717f5Merge:ad79d44db83ae95a6eb1Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 15:26:12 2024 +0300 packaging commitad79d44db8Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 14:44:21 2024 +0300 adding package commitf8a2a83d59Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 14:44:18 2024 +0300 adding package commit7b6e4d5da4Merge:16471fa05758f7032b39Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 14:21:41 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit16471fa057Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 13:02:06 2024 +0300 now with event setup commitd83aa7f865Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 02:44:49 2024 +0300 is_current commitdf148ca9eaAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 02:21:05 2024 +0300 use reflection commit0118c7666aAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 02:20:47 2024 +0300 use reflection commit5c91e52922Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 02:15:05 2024 +0300 get metadata with reflection commitaf86293d87Merge:4dc3d0ee7f465efbf802Author: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 00:48:13 2024 +0300 Merge remote-tracking branch 'origin/main' into resource-store commit4dc3d0ee7fAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 00:34:40 2024 +0300 update commit835879aa7aAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Wed Jun 12 00:29:52 2024 +0300 revert hash key issues commitac39953d0eAuthor: Ryan McKinley <ryantxu@gmail.com> Date: Tue Jun 11 23:01:40 2024 +0300 basic queries * remove old file
This commit is contained in:
@@ -43,6 +43,7 @@ var (
|
||||
sqlResourceVersionGet = mustTemplate("resource_version_get.sql")
|
||||
sqlResourceVersionInc = mustTemplate("resource_version_inc.sql")
|
||||
sqlResourceVersionInsert = mustTemplate("resource_version_insert.sql")
|
||||
sqlResourceVersionList = mustTemplate("resource_version_list.sql")
|
||||
)
|
||||
|
||||
// TxOptions.
|
||||
@@ -104,8 +105,11 @@ func (r *historyPollResponse) Results() (*historyPollResponse, error) {
|
||||
return r, nil
|
||||
}
|
||||
|
||||
type groupResourceRV map[string]map[string]int64
|
||||
type sqlResourceHistoryPollRequest struct {
|
||||
*sqltemplate.SQLTemplate
|
||||
Resource string
|
||||
Group string
|
||||
SinceResourceVersion int64
|
||||
Response *historyPollResponse
|
||||
}
|
||||
@@ -176,6 +180,11 @@ type resourceVersion struct {
|
||||
ResourceVersion int64
|
||||
}
|
||||
|
||||
type groupResourceVersion struct {
|
||||
Group, Resource string
|
||||
ResourceVersion int64
|
||||
}
|
||||
|
||||
func (r *resourceVersion) Results() (*resourceVersion, error) {
|
||||
return r, nil
|
||||
}
|
||||
@@ -189,3 +198,12 @@ type sqlResourceVersionRequest struct {
|
||||
func (r sqlResourceVersionRequest) Validate() error {
|
||||
return nil // TODO
|
||||
}
|
||||
|
||||
type sqlResourceVersionListRequest struct {
|
||||
*sqltemplate.SQLTemplate
|
||||
*groupResourceVersion
|
||||
}
|
||||
|
||||
func (r sqlResourceVersionListRequest) Validate() error {
|
||||
return nil // TODO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user