Commit Graph

60 Commits

Author SHA1 Message Date
Binaek Sarkar
08b447a261 Differentiate between user and system queries using application name. Closes #3600 2023-08-25 16:50:27 +01:00
Puskar Basu
6aaf9bc5be Update 'sperr' import references. Closes #3748 2023-08-17 13:52:04 +05:30
kaidaguerre
202cb68692 Add HCL support for defining rate limiters, with filewatching as per connection config. Closes #3746 2023-08-11 14:24:44 +01:00
Binaek Sarkar
72323ef37a Merge branch 'v0.20.x' 2023-08-09 17:48:09 +05:30
Puskar Basu
5995e35937 Fix issue where interactive prompt exits/crashes when the code panics. Closes #3713 2023-08-07 11:23:31 +01:00
Binaek Sarkar
854819f8f1 Validates workspace profile cache settings. Closes #3646 2023-07-14 13:22:08 +01:00
Binaek Sarkar
d807c9c093 Fixes issue where CAPITAL arguments to '.cache' meta command were not getting recognised. Closes #3670 2023-07-13 15:37:48 +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
Binaek Sarkar
120999a374 Adds feature where type '.cache' in interactive shows the current value of cache. Closes #2439 2023-07-04 16:02:52 +01:00
Binaek Sarkar
aeec7622d8 Fixes issue where interactive prompt autocomplete dropdown was showing connections in error. Closes #3628 2023-06-30 08:53:22 +01:00
Binaek Sarkar
bb53c87c86 Fixes issue where connection state fails to load when connecting to pre-0.20.7 service. Closes #3612 2023-06-22 16:21:10 +01:00
Binaek Sarkar
c3d21d4436 Fixes issue where 'dot' commands in interactive prompt fail to execute if there's a file/folder by the same name in the working directory. Closes #3558 2023-06-12 16:35:43 +01:00
kai
7753d5385d If custom is search path is set, only fail a query if ALL connections are in error 2023-05-18 16:54:56 +01:00
kai
8ec8c76907 Fix .connection meta-command in interactive returning an empty table #3449 2023-05-18 14:56:24 +01:00
kai
3b1e99182a Replace all '...' with ellipsis … in terminal output. Closes #3441 2023-05-18 10:41:27 +01:00
kai
f7be761c5c Fix NRE when inspecting introspection tables. Closes #3440 2023-05-18 10:34:51 +01:00
kaidaguerre
5fdf6920cf Add support for connecting to a steampipe server which does not have connection state table (i.e. it is a pre v0.20.0 version). Closes #3414 2023-05-16 17:15:13 +01:00
kaidaguerre
4635640f4e Remove 'steampipe_command' schema and move settings and scan_metadata foreign tables to 'steampipe_internal' schema. Closes #3416 2023-05-16 17:12:44 +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
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
kai
b94a47cc6f Fix rendering issues when running .inspect. Closes #3268 2023-03-24 17:02:19 +00:00
Binaek Sarkar
a5c56bebe2 Fixes issue where spinner was not showing up in interactive prompt while a query was executing. Closes #3259 2023-03-24 14:43:23 +00: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
kai
39cd67ed89 Fix crash on shutdown if init not complete. Fixes #3252 2023-03-21 16:53:17 +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
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
kai
7292008a68 Fix autocomplete for queries - call initialiseQuerySuggestions from initialiseSuggestions. #3149 2023-03-02 17:33:59 +00:00
kaidaguerre
763167bef1 Fix workspace load crash for invalid mod definition. Closes #3174 2023-03-01 15:21:34 +00:00
kai
fcb87b685c Fix interactive prompt adding extra spaces when showing status messages when fdw is updated. Closes #3173 2023-03-01 13:45:34 +00:00
kaidaguerre
718718d053 Rationalise and optimize autocomplete. Closes #3149 2023-02-24 15:31:47 +00:00
Binaek Sarkar
c896d88e88 Make workspace loading async. Closes #3123 2023-02-20 17:18:33 +00:00
Binaek Sarkar
d7673ecf08 Adds a mechanism for status updates during initialisation. Closes #3108 2023-02-16 17:09:34 +00:00
kaidaguerre
b67d39ecde Fix duplicated text input on interactive prompt during initialisation. Closes #3075 2023-02-16 12:35:43 +00:00
Puskar Basu
51f557cf60 Fixes issue where autocomplete does not quote table names that need to be quoted. Closes #3065 2023-02-08 11:14:39 +00:00
Binaek Sarkar
9053d7e121 Fixes issue where extra newline was added to interactive prompt before messages were printed. Closes #3027 2023-01-31 15:59:42 +00:00
Puskar Basu
e4c50a9477 Ensure correct exit code is returned when a mod plugin requirements are not met. Closes #2986 2023-01-18 14:43: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
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
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
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
Binaek Sarkar
efea8a72f2 Fixes issue where 'Alt` keyboard combinations would error in WSL. Closes #2549 2022-11-02 15:40:13 +00:00
Binaek Sarkar
b71bb6c18b Fixes issue where pasting content immediately after start in interactive prompt would result in duplicate content. Closes #2628 2022-10-31 15:45:22 +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
Meet Rajesh Gor
b0dfee67bb Add auto-completion toggle meta command and terminal option. Closes #2560. Closes #1692 2022-10-27 17:48:45 +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
Binaek Sarkar
a373b9ca91 Fixes issue where prompt fails to show up when service installation runs in interactive mode. Closes #2529 2022-10-21 12:13:52 +01:00
michizhou
f80f9c1b21 Deprecate workspace-chdir, replace with mod-location. Closes #2511 2022-10-19 11:08:34 +01:00