Commit Graph

37 Commits

Author SHA1 Message Date
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
Aaronstotle
17a00353ae Add check to the mod init function so users are aware if it's run in the home directory or if there are a large number of non-mod files in the path. Closes #2562 2023-04-06 09:10:41 +01:00
kai
be5219d446 Merge branch 'v0.19.x'
# Conflicts:
#	pkg/steampipeconfig/modconfig/mod_resources.go
2023-04-04 15:48:05 +01:00
kaidaguerre
dd08d9d8a4 Support mods requiring different versions of the same mod. Resources from transitive dependencies should not added the mod resource map #3302 (#3303) 2023-04-04 15:08:27 +01: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
Binaek Sarkar
993259de52 Increase database connection timeout and improve the error message if connection failure occurs. Closes #2377 2023-01-18 14:26:19 +00:00
kaidaguerre
33f4f80565 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. Closes #3007. Closes #3008 2023-01-17 12:52:59 +00:00
kaidaguerre
15984137ae Add deprecation warnings for deprecated hcl properties. Closes #2973 2023-01-11 16:34:58 +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
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
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
kai
dcc2691d15 Update FDW to v1.5.0 - update to work with sdk version 5 and dynamic updating of dynamic schemas. 2022-11-30 17:51:08 +00:00
kai
294c3e1db0 Update EventMask for connection and workspace file watcher to include Write. #2779 2022-11-30 11:00:57 +00:00
Binaek Sarkar
7a16ec8c57 Updates usages of 'go-kit; for changes in Filewatcher and String/Hash helpers. Closes #2779 2022-11-30 10:12:03 +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
Binaek Sarkar
d9e99167b5 Fixes issue where unit tests were not running on new Pull Requests . Closes #2794 2022-11-24 16:17:01 +00:00
Binaek Sarkar
18a1c51597 Upgrades 'pgx' to v5. Closes #2776 2022-11-23 17:34:21 +00:00
kaidaguerre
fe6365b1ef Remove usage of prepared statements - instead excute sql directly. Wrap with executions in LeafRuns to support runtime dependency resolution. Closes #2789. #2772 2022-11-23 14:11:56 +00:00
kai
6f7e48607a Fix config resolution so install-dir and mod-location are correctly resolved when set in workspace profiles/env vars. Closes #2681
Improve resource not found errors
Put install dir back into workspace profiles
Update export arg help
2022-11-07 10:37:34 +00:00
Binaek Sarkar
e5a14bce00 Adds 'list' sub command for 'query', 'check' and 'dashboard'. Closes #2653 2022-11-03 15:58:56 +00:00
kaidaguerre
59d224711c Fix regression - creating all prepared statements when executing a batch query. When connected to Steampipe cloud, create all prepared statements in a single sql statement to improve performance. Closes #2644. Closes #2650 2022-11-01 22:25:12 +00:00
kaidaguerre
0452bb0b81 Validate checkout output and export formats before execution. Closes #2619. Add support for using sps as snapshot output/export format. Closes #2623 2022-10-28 14:57:44 +01:00
kaidaguerre
0e27f38202 Update workspace profile parsing to load options blocks. Include these options values in viper with correct precedence. Closes #2579 2022-10-24 13:58:50 +01:00
kaidaguerre
2309abb7fd Support executing any query-provider resources using the steampipe query command. Optimize autocomplete. Closes #2558 2022-10-24 10:45:28 +01:00
kaidaguerre
b5f9319b9c Add support for WorkspaceProfile inheriting from another using base=. Closes #2574
Move AddReference and GetReferences to ResourceWithMetadata
Rename `RunContext` to `ModParseContext`
2022-10-21 19:16:17 +01:00
michizhou
f80f9c1b21 Deprecate workspace-chdir, replace with mod-location. Closes #2511 2022-10-19 11:08:34 +01:00
kaidaguerre
028d46c8ff Revert connection watching min-interval. Remove filewatcher from utils and and use go-kit filewatcher instead. 2022-10-17 22:07:21 +01:00
kaidaguerre
1dc28f4681 Add --source-snapshot option to dashboard command. Closes #2503. (#2491) 2022-10-11 23:36:27 +01:00
kaidaguerre
ef845286c1 Add support for sharing snapshots. Add snapshot output and export format for query and check. Add ability to run named dashboards. #2473 2022-10-05 15:30:57 +01:00
kaidaguerre
404dd35e21 Update database code to use pgx interface so we can leverage the connection pool hook functions to pre-warm connections. Closes #2422 (#2438)
* Provide feedback for failed prepared statements
* Move error functions to error_helpers
* Make maintenance client retriable
2022-10-05 12:38:57 +01:00
kaidaguerre
ae9472273d Only create introspection tables if STEAMPIPE_INTROSPECTION env var is set. Closes #2396 2022-08-31 11:08:05 +01:00
Puskar Basu
52d03140ac Add better help messages for mod plugin requirements not satisfied error. CLoses #2361 2022-08-31 11:01:41 +01:00
kaidaguerre
962ac0445a Fix intermittent dashboard shutdown stall - remove double websocket shutdown. Closes #2328 2022-08-23 15:56:47 +01:00
Mike Burgess
48e5192fe5 Add initial directed graph implementation #2249 (#2358) 2022-08-23 15:01:59 +01:00
kaidaguerre
b503f8f1a2 Ensure DashboardChanged events are generated when elements have only a changed index within a container. Closes #2228 2022-07-07 19:11:53 +01:00
kaidaguerre
4be75a2249 For DashboardChanged event, is a leaf node is changed, mark the whole parentage tree as changed. Fix incorrectly identified changed inputs. Closes #2221 Closes #2222 2022-07-07 09:27:48 +01:00
kaidaguerre
5193c70395 Restructure steampipe repo to use pkg folder. Closes #2204 2022-06-27 11:36:03 +01:00