Commit Graph

368 Commits

Author SHA1 Message Date
Puskar Basu
00dd1fc92d Fix issue where plugin list was returning non-0 exit code if the plugin was already installed. Closes #3444 2023-05-18 15:02:01 +01:00
kaidaguerre
fab91ebd7d Fix steampipe plugin list not printing the Missing Plugin and Failed Plugin tables. Closes #3439 2023-05-18 14:50:58 +01:00
Binaek Sarkar
68db840c92 Fixes issue where not being able to open the browser results in a fatal error during login. Closes 3437 2023-05-18 14:50:28 +01:00
kai
3b1e99182a Replace all '...' with ellipsis … in terminal output. Closes #3441 2023-05-18 10:41:27 +01:00
kaidaguerre
7703975883 Refactor/fix connection and plugin validation during refreshConnections - ensure failed connections are set to 'error' in connection state. Closes #3432 2023-05-17 14:43:27 +01:00
Binaek Sarkar
6c1393fdb7 Fixes issue where 'plugin-manager' incorrectly executes scheduled tasks (e.g. update check). Closes #3421 2023-05-17 13:16:40 +01:00
kaidaguerre
dcd0ced93a Update refresh connections to write comments for exemplar schemas first, followed by remaining schemas. Closes #3413 2023-05-16 14:13:02 +01:00
Meet Rajesh Gor
861e77d273 Adds a '--progress' flag to 'plugin install' to disable progress bars. Closes #2953 2023-05-15 16:01:15 +01:00
Binaek Sarkar
6db9656e5a Ensure plugin-manager command does not execute scheduled tasks - avoid deprecation warnings which make the plugin manager GRPC startup fail. Closes #3410 2023-05-15 15:59:41 +01:00
kaidaguerre
b0b2c62338 Add support for 'import_schema' property in connection config, controlling whether to create a postgres schema for a steampipe connection. Closes #3407
Rename 'connection_state' table to 'steampipe_connection_state'. #3403
Rename 'internal' table to 'steampipe_internal
Remove 'Connection' property from ConnectionState
2023-05-15 13:07:36 +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
Binaek Sarkar
3cf30ba45d Fixes issue where 'mod install' on an existing mod would sometimes corrupt the 'mod.sp' file.
Closes #3376
Closes #3383
Closes #3280
Closes #2676
2023-05-09 22:34:09 +01:00
Puskar Basu
414664080c Fixes issue where network failures during plugin install was returning 0 exit code. Closes #3367 2023-05-05 11:02:41 +01:00
kai
d1e677f220 Merge branch 'v0.19.x'
# Conflicts:
#	pkg/version/version.go
2023-04-27 15:14:05 +01:00
kai
25949522c4 Fix connection validation warning following a file watcher event causing plugin manager to crash with unhandled signal. Closes #3371 2023-04-27 15:05:47 +01:00
Puskar Basu
3bdd2eedde Improve error message when running steampipe check/dashboard outside a mod and refactor default mod creation. Closes #3215
Rationalise default mod creation 
Fix nil ref exception for mod commands when using legacy `requires` block

---------

Co-authored-by: kai <kai@turbot.com>
2023-04-20 12:02:50 +01:00
Binaek Sarkar
a6919cca75 Fixes issue where a mod would install even if plugin dependencies are not met. Closes #3041 2023-04-18 15:28:58 +01:00
Puskar Basu
8e8a093779 Do not show deprecation warnings every time while running any steampipe command. Closes #3281 2023-04-18 15:26:37 +01:00
Puskar Basu
18a2f65b41 Refactor display configuration options code. 2023-04-17 11:06:07 +01:00
Meet Rajesh Gor
7a5abf86bb fix: trim protocol in url for mod commands. Closes #3257 2023-04-13 14:47:48 +01:00
Puskar Basu
97bff47bc5 Show plugin name with stream in the progress bar during plugin update. Closes #3241 2023-04-13 14:44:42 +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
Binaek Sarkar
902ba89cf7 Fixes issue where execution continues even if there's an unexpected error in parsing config. Closes #3286 2023-04-03 11:43:00 +01:00
Binaek Sarkar
299697ae2f Updates in cache configuration to allow disabling of all caching on server. Closes #3258
STEAMPIPE_CACHE environment variable resolves to service cache enabled as well as client cache enabled

service cache enabled is used by the plugin manager to enable/disable caching on the plugins during startup (runtime toggle is not allowed) - with a max_ttl

client cache enabled is used to enable/disable the cache on the database connection (fdw)
A TTL can also be set on the client side capped to max_ttl on the server
2023-03-31 15:12:25 +01:00
Binaek Sarkar
be36276fd8 Add deprecation warnings for connection.options "connection" and global terminal options. CLoses #3246 2023-03-23 14:43:06 +00:00
kaidaguerre
1d2104bc26 Ensure successful shutdown after dashboard service start failure. Closes #3254 2023-03-23 10:36:47 +00:00
Binaek Sarkar
e4dbced826 Updates to workspace profile - add additional properties and command specific options blocks. Closes #3223 2023-03-21 12:00:47 +00:00
kaidaguerre
86246ed927 Only call RefreshConnections on service startup or after a file watching event. Closes #3229 2023-03-15 16:33:23 +00:00
Puskar Basu
6c4782c26f Fixes issue where we didn't get a proper uninstall help message for plugins that failed to load. First draft of Failed Plugin table. Closes #3212 2023-03-15 14:53:52 +00: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
Binaek Sarkar
17306488fc Fixes issue where fdw was not updated for 'service restart' command. Closes #3172 2023-03-10 12:33:59 +00:00
kai
9358051bed Fix Service Stop failing if invoked directly after a schema change notification. Closes #3206 2023-03-09 15:55:43 +00:00
kai
948d70388f Update executeSqlInTransaction to rollback transaction in case of error
Do not create a new client in pluginManager.OnConnectionsChanged, instead pass a client in.
Do not pass appname to plugin manager command - instead plugin manager adds prefix the pg app name. #3184. #3185
2023-03-08 10:56:29 +00:00
kaidaguerre
075fafec09 Use single Steampipe Postgres notification channel (#3191) 2023-03-07 17:34:41 +00:00
kaidaguerre
2171ce66ba Fix Postgres error "cached plan must not change result type" when dynamic plugin schema changes. Update interactive .inspect and autocomplete based on changes to connection config or dynamic schema updates. Closes #3184. Closes #3185 2023-03-03 18:45:40 +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
Binaek Sarkar
31037ff04b Fixes issue where spinner is left behind in 'plugin list' . Fixes #3138 2023-02-23 10:19:02 +00:00
Binaek Sarkar
c896d88e88 Make workspace loading async. Closes #3123 2023-02-20 17:18:33 +00:00
Binaek Sarkar
a4ab68812e Fixes issue where a spinner was hanging around even after plugin installation completes. Closes #3126 2023-02-20 10:49:20 +00:00
kaidaguerre
b67d39ecde Fix duplicated text input on interactive prompt during initialisation. Closes #3075 2023-02-16 12:35:43 +00:00
kai
d266917597 Merge branch 'v0.18.x' into main
# Conflicts:
#	CHANGELOG.md
#	pkg/version/version.go
2023-02-15 14:52:34 +00:00
Binaek Sarkar
d75ab0372e Fixes issue where snapshot mode in query leads to duplicate rows in console/file output 2023-02-15 19:08:19 +05:30
Puskar Basu
12f3a7314f Cleanup connection state file to remove old legacy properties. Closes #3086 2023-02-07 09:40:44 +00:00
Mike Burgess
9669829827 Merge branch 'v0.18.x' 2023-02-03 13:04:02 +00:00
Binaek Sarkar
fbf086f39c Fixes issue where config from 'default.spc' was taking precedence over ENV var settings. Closes #3060 2023-02-03 12:05:30 +00:00
Puskar Basu
6ee0183a63 Fix query batch mode returning zero exit code when rows return errors. Closes #3044 2023-02-03 11:36:21 +00:00
Puskar Basu
e5564457af Fix issue where snapshot creation was failing for command line queries in batch mode. Closes #2943 2023-02-03 11:05:21 +00:00
kai
01d53cfb9e Merge branch 'v0.18.x' into main
# Conflicts:
#	pkg/connectionwatcher/connection_watcher.go
2023-02-01 13:23:56 +00:00
kaidaguerre
34bea3d1ef Add support for aggregator connections with dynamic tables. Closes #2886 2023-01-27 19:47:43 +00:00