Commit Graph

90 Commits

Author SHA1 Message Date
Puskar Basu
e7e1184e95 dashboardexecute -> snapshot 2024-09-27 18:13:12 +05:30
Puskar Basu
4966e01a67 remove controlexecute and controlstatus and remove control and benchmark refs from dashboardexecute 2024-09-27 18:13:12 +05:30
Puskar Basu
2ea42e690d remove pkg/dashboard/dashboardassets 2024-09-27 18:13:12 +05:30
Puskar Basu
d2f56e2716 remove pkg/dashboard/dashboardserver 2024-09-27 18:13:12 +05:30
Puskar Basu
6db67846e9 remove dashboard service from service cmd 2024-09-27 18:13:12 +05:30
kai
4e031b447b Merge branch 'v0.21.x'
# Conflicts:
#	pkg/steampipeconfig/modconfig/mod.go
2024-02-06 11:47:32 +00:00
kaidaguerre
08f49d843f For query command, load mod variables syncronously but the rest of mod async. Closes #4109 2024-02-02 15:03:31 +00:00
kaidaguerre
3458984aaf Update go-kit to v0.9.0. Use terraform-components instead of a direct terraform reference 2024-02-01 17:12:23 +00:00
kaidaguerre
103d53f8e8 Fix setting dependency vars in var file. Fix UI freeze when prompting for workspace variables. Closes #4105 2024-02-01 13:53:21 +00:00
kaidaguerre
79b66fb9fa Move hcl_helpers and type_conversion package to go-kit. Closes #3962
(cherry picked from commit 737efa381b)
2023-11-29 12:55:13 +00:00
kaidaguerre
ed76a879da Executing benchmark as dashboard failing with segmentation fault. Closes #3905 2023-09-26 15:51:19 +01:00
Binaek Sarkar
a3e624869e Make dashboard start timeout configurable. Closes #3369 2023-08-12 17:42:54 +01:00
Puskar Basu
dc90bc0afe Update BuildFullResourceName to validate for non empty arguments. Closes #3601 2023-08-07 13:39:58 +01:00
kaidaguerre
b06348757a Fix linting warnings
---------

Co-authored-by: Binaek Sarkar <binaek@turbot.com>
Co-authored-by: Puskar Basu <puskar@turbot.com>
2023-07-06 16:08:23 +01:00
kai
3b1e99182a Replace all '...' with ellipsis … in terminal output. Closes #3441 2023-05-18 10:41:27 +01:00
kaidaguerre
40804a3201 Execute RefreshConnections asyncronously and optimise for high connection count. Add connection_state table.
- Execute RefreshConnections asyncronously
- Add connection_state table to indicate the loading state of connections
- Optimise RefreshConnections by cloning connection schemas
- Add locking to ensure only a single instance of RefreshConnections runs
- Start executing queries without waiting for connections to load, add smart error handling to wait for required connection
- Optimise autocomplete for high connection count
- Autocomplete and inspect data available before all conections are refreshed
- Update file watcher to respond to CHMOD, so thaat it pickes up deletion of file contents

 Closes #3394
 Closes #3267
2023-05-10 09:05:08 +01:00
kaidaguerre
137e438bdc Resource references in depdency mods must be fully qualified. Locals in dependency mods cannot be referenced. Support transitive dependencies referencing variables from different versions of same mod. Closes #3335. Closes #3336. Closes #3337 2023-04-14 12:37:32 +01:00
Binaek Sarkar
ee8b6647c4 Rationalising 'status hooks'. Do not show spinner when setting status, instead require an explicit Show. #2432 2023-03-14 11:48:14 +00:00
kaidaguerre
92396d77c0 Remove connection pool min size. Remove need to create empty mod introspection tables if introspection is not enabled. Remove connection pool min size. Closes #3207
* Remove all references to prepared statements
* remove sessionInitWaitGroup
2023-03-09 16:55:08 +00:00
Mike Burgess
6fa8aa2a07 Dashboard server should emit updated dashboard metadata when available dashboards changes. Closes #3182. 2023-03-02 16:39:25 +00:00
kaidaguerre
7c2ae6da93 when executing a query as a dashboard, name the dashboard custom.dashboard.sql_<query_hash>. Closes #3150 2023-02-28 18:19:13 +00:00
Binaek Sarkar
06af870908 Fix running a single dashboard from the command line failing if the dashboard needs inputs and the dashboard name is not fully qualified. Closes #3168. Closes #3154 2023-02-28 15:27:09 +00:00
kaidaguerre
75aab0c2eb When adding vars from dependency mods to a snapshot using spvars name format: <mod-name>.<var-name>. #2730 2023-02-01 13:18:55 +00:00
kaidaguerre
a5703fb377 Fix when running a dashboard from a dependent mod, default var vals not being included in the snapshot. Closes #2730 2023-01-31 17:29:41 +00:00
kaidaguerre
6ee391faba Workspace file watching events sometime cause dashboard to stall and stop responding to events. Cancelling dashboards (e.g. by pressing 'back' on the browser) sometimes leave the server in a state where it will not respond to socket events. #3007.#. #3008 2023-01-17 11:52:53 +00:00
kaidaguerre
0e4f0460ed Revert "Add blocking_children to LeafNodeUpdated event" (#2988)
* Revert "Add `blocking_children` to LeafNodeUpdated event"

This reverts commit 302181dd
2023-01-12 14:42:17 +00:00
Mike Burgess
1ba8c7d7a1 Dashboard panels should not show if dependent inputs are not populated. Closes #2894. (#2982) 2023-01-11 17:54:21 +00:00
kaidaguerre
d254301f9e When editing dashboard files, after adding/fixing errors in the HCL the dashboard server will sometimes stall. Closes #2952
Fixed tactically by increasing the channel buffer size and also adding a timeout/cancellation support to the dashboard event sending code
2023-01-06 17:49:43 +00:00
kaidaguerre
718c4f1944 Update steampipe_reference introspection table to include references from with blocks. Closes #2934
* Move AddReference and GetReferences to ResourceWithMetadataImpl
* Remove resourceMapProvider from setBaseProperties signature
* Remove MergeBaseDependencies
* Remove 'base; property from with
* Only populate refs if introspection is enabled
2023-01-06 17:18:24 +00:00
kaidaguerre
2d2a137705 Split WithProvider from RuntimeDependencyProvider. Only dashboard and NodeEdgeProviders can have with blocks. Closes #2946 2023-01-05 18:02:44 +00:00
kaidaguerre
0a391e9636 Update dashboard states to "initialized", "blocked", "running", "complete", "error", "canceled". Closes #2939 2023-01-04 14:08:56 +00:00
kaidaguerre
689ed6d06b Add support for dependencies between withs. Closes #2914 2022-12-23 13:36:40 +00:00
kai
dbc209147d Fix incorrect initial value of CheckRun RunStatus, which was preventing benchmarks from running as dashboard.
Rationalise MappableResource
2022-12-23 13:36:19 +00:00
kai
cd80fa28e4 Remove redundant code. Add issues to TODOs. 2022-12-23 13:15:46 +00:00
kaidaguerre
dfcff84f2d Add support for param runtime dependencies. Closes #2910 2022-12-22 13:44:40 +00:00
Mike Burgess
f1888f3d69 Show dashboard panel log in panel detail. Closes #2895. (#2902) 2022-12-21 12:46:42 +00:00
kaidaguerre
3bf90acaf6 Add support for independent execution and resolution of base resource runtime dependencies. Closes #2893 2022-12-19 16:55:26 +00:00
Mike Burgess
cf7f5f878b Dashboard panels should support more granular statuses. Closes #2889. (#2891) 2022-12-19 16:35:48 +00:00
kaidaguerre
d915ce69f4 Refactor base resolution to use nested structs. Remove modified gohcl parsing code. Closes #2884 2022-12-16 13:47:51 +00:00
kai
1cbf7bdd77 Populate 'withs' property of leaf nodes at construction, not execution to ensure they appear in ExecutionStarted event. Add the actual error to LeafNodeError event when raising it. Closes #2877 2022-12-15 11:09:19 +00:00
kaidaguerre
fa18c8f0e2 Add support for node reuse. Update graph, flow and hierarchy to declare nodes and edges inline, rather than as a list of references. Closes #2871
Only top level resources can have with and param blocks. Closes #2872
Refactor resource and dashboard run hierarchies to use base impl structs. Closes #2873
2022-12-14 17:18:57 +00:00
dependabot[bot]
70086c2c19 [dep][go](deps): Bump github.com/turbot/steampipe-cloud-sdk-go from 0.2.0 to 0.3.0 (#2843)
* [dep][go](deps): Bump github.com/turbot/steampipe-cloud-sdk-go

Bumps [github.com/turbot/steampipe-cloud-sdk-go](https://github.com/turbot/steampipe-cloud-sdk-go) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/turbot/steampipe-cloud-sdk-go/releases)
- [Changelog](https://github.com/turbot/steampipe-cloud-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/turbot/steampipe-cloud-sdk-go/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/turbot/steampipe-cloud-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Binaek Sarkar <binaek@turbot.com>
2022-12-09 14:28:28 +00:00
Mike Burgess
dbd8356bb9 Ensure categories are included in dashboard server changed dashboard logic #2841. 2022-12-07 09:47:56 +00:00
kaidaguerre
3acf46697b Implement workspace change detection for nodes/edges/with blocks. Close #2827 2022-12-02 13:12:27 +00:00
kaidaguerre
c35f5ae045 Update with execution to be fully asyncronous, i.e. nodes/edges are run immediately and wait for any dependencies to be available. Closes #2824 2022-12-02 11:40:56 +00:00
kaidaguerre
6cbf541e73 Ensure when LeafRuns for nodes/edges are unique to avoid name clash when they are re-used. If a node/edge fails, copy data from successful nodes /edges to the parent run. Fixes #2810 2022-11-30 18:03:41 +00:00
kaidaguerre
dbd1d10fcc Add support for plugin sdk v5, with plugin message stream - support update of dynamic plugin schema based on file events. Closes #2767 2022-11-30 10:50:46 +00:00
kaidaguerre
94356ae371 Fix with that have no results. #2772 2022-11-25 16:47:49 +00:00
kaidaguerre
882b678478 When parsing query args, ensure jsonb args are passed to query as string not map. Support argument definitions which make an array out of a runtime dependency. #2772, Closes #2802 2022-11-25 12:01:16 +00:00
kaidaguerre
b1c1c4ea3c When passing a slice as a query arg, ensure it is strongly typed so Postgres can convert it. Fix multiple with blocks. #2789. #2772 2022-11-24 14:33:48 +00:00