Charis
3b7052b5a9
cleanup: fix import order and prefixes for studio/data ( #44501 )
2026-04-03 09:15:57 +02:00
Joshen Lim
be26feb9ba
Chore/shift manual queries into pg meta 03 ( #43951 )
...
## Context
Shifting more dashboard queries into pg-meta so that we centralize all
manually written queries in one place
Having them in packages/pg-meta also allows us to write tests for them
## To test
Just needs a smoke test on
- Table Editor
- Fetching entities
- Viewing definition
- SQL Editor
- View ongoing queries
- Abort queries
- Integrations
- Queues
- Database
- Migrations
-Triggers (Updating)
2026-03-19 18:31:46 +08:00
Ivan Vasilov
8b657165b5
chore: Migrate to use custom type for ReactQuery queries and mutations ( #40073 )
...
* Add custom types for queries, mutations and infinite queries.
* Migrate all queries to use the new type.
* Migrate all infinite queries to useCustomInfiniteQueryOptions.
* Migrate all mutations to use useCustomMutationOptions.
* Add type to all imports in `types` folder.
2025-11-03 13:18:13 +01:00
Alaister Young and Joshen Lim
8855d05803
chore(studio): swap react-query to object syntax ( #39842 )
...
* chore(studio): swap react-query to object syntax
* Fix small issues found
* Fix realtime settings
* Nit
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2025-10-27 09:38:27 +01:00
Andrew Valleteau
31aad403de
fix(studio): early fail query when x-connection-encrypted is invalid ( #35331 )
...
* fix(studio): early fail query when x-connection-encrypted is invalid
* fix(studio): uniformize readDatabase and projectDetails connString handling
* chore: update api types
* chore: add connectionString null option
* fix: only enforce x-connection-encrypted on platform
* chore: refactor connString check in a single point
* chore: fix guard logic
* chore: fix pgMetaGuard
* chore: fix types
2025-05-08 12:11:03 +02:00
Alaister Young and Joshen Lim
6c592dec99
chore: remove useExecuteSqlQuery() part 2 ( #30467 )
...
* foreign-key-constraints
* update entity-types stale time
* schemas query
* deprecate useExecuteSqlQuery
* users count query
* database size query
* indexes query
* keywords query
* migrations query
* table columns
* database functions
* database roles query
* fdws query
* replication lag query
* ongoing queries query
* vault secrets query
* remove unneeded staleTime: 0
* max connections query
* fix entity types key in tests
* Some fixes
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-11-18 05:15:37 +00:00
Alaister Young
8e47d317fa
chore: pg-meta functions ( #26881 )
...
* start pg-meta functions
* pg meta create function
* pg meta database functions update and delete
* fix ts
* update execute sql error type
* update execute sql error type
* remove duplicate database functions query
2024-06-03 23:21:19 +08:00
Ivan Vasilov
8879dd273a
fix: Fix max connections label ( #19627 )
...
* Convert the SQL query to react-query. Minor refactor.
* Make the widget better in case of a API call failure.
2023-12-13 11:20:47 +01:00