Commit graph

56 commits

Author SHA1 Message Date
Kamil Kisiela
9160e56268
Fix usage-based exclusion of clients (#3503) (#3519)
Co-authored-by: Charlie Croom <charlie.croom@gmail.com>
2023-12-04 11:19:06 +00:00
Kamil Kisiela
fce33b23e6
Overwrite a query's request timeout using CLICKHOUSE_REQUEST_TIMEOUT env var (#3357) 2023-11-10 08:36:31 +01:00
Dotan Simha
72f59267a1
prettier v3 and apply fixes to existing files (#3279) 2023-11-07 07:14:57 +00:00
Kamil Kisiela
0188ec7ffe
Track performance of parsing and schema building + remove unused GraphQL fields in Explorer (#3198) 2023-11-02 14:51:38 +01:00
Kamil Kisiela
d97ff44bfd
Log ClickHouse query execution performance (#3200) 2023-11-02 11:12:14 +01:00
Kamil Kisiela
de83ef917f
Improve performance of OperationsReader.getTopOperationsForTypes (#3157) 2023-10-24 11:50:45 +00:00
Kamil Kisiela
258e8cdbd1
Sort Project and Target cards by requests count (#3064) 2023-10-20 14:47:52 -05:00
Kamil Kisiela
912d33b462
Add a unique id to every ClickHouse call (#3056) 2023-10-19 10:55:19 -05:00
Kamil Kisiela
9e7cb114a1
Adds a view of unused schema (#3014) 2023-10-09 15:38:19 +02:00
Kamil Kisiela
9c566e635d
Handle "unknown" client as empty or unknown (#2985) 2023-09-29 13:56:35 +00:00
Kamil Kisiela
743a256f3a
Dedicated page for a GraphQL consumer (#2976) 2023-09-28 14:52:52 +02:00
Kamil Kisiela
60bc828dc2
Dedicated page for a schema coordinate (#2974) 2023-09-27 15:41:22 +02:00
Kamil Kisiela
ce3ff29967
Print query with variables when logging the clickhouse call + fixes for top operations (#2949) 2023-09-18 22:50:12 -07:00
Kamil Kisiela
0fb31dc77a
Show top 5 operations in explorer (#2946) 2023-09-18 13:49:47 -07:00
Kamil Kisiela
0ad7b2ca2f
Use only new tables introduced by #2712 (#2796) 2023-09-04 07:34:53 +00:00
Kamil Kisiela
6b3812d648 Fix OperationsReader.canUseNewTable running once 2023-08-30 10:52:15 +02:00
Kamil Kisiela
db303f88de Fix missing columns in duration_and_count_over_time_regular query 2023-08-28 15:29:44 +02:00
Kamil Kisiela
0ae6968294
ClickHouse storage size and performance improvements (#2712) 2023-08-28 13:03:40 +00:00
Kamil Kisiela
1d173df6ed
Make get_hashes_for_schema_coordinates more efficient (#2709) 2023-08-04 18:42:22 +02:00
Kamil Kisiela
ba2c85e7d1
Fix client usage info on Explorer page (#2708) 2023-08-04 15:30:42 +00:00
Kamil Kisiela
9754fad918
Fix a missing parenthesis 2023-08-02 18:49:04 +02:00
Kamil Kisiela
857e2fa318
Use parallel_hash join algorithm for get_hashes_for_schema_coordinates query 2023-08-02 18:26:07 +02:00
Kamil Kisiela
e31491fe34
Use a single query to fetch client names per coordinate (#2696) 2023-08-02 17:48:47 +02:00
Kamil Kisiela
018d132a83
Improve performance of reading operation body (#2681) 2023-07-31 10:47:30 +02:00
Laurin Quast
90e242bc07
filter operations by client name (#2487) 2023-06-27 12:24:43 +02:00
Kamil Kisiela
f5675401c6
Speed up OrganizationGetStarted.reportingOperations (#2518) 2023-06-22 11:02:46 +02:00
Kamil Kisiela
7f123f972d
Use Float in operations module to show operations count (#2507) 2023-06-21 12:46:58 +00:00
Kamil Kisiela
5b0a78fbca
Check existence of operations in more efficient way (#2500) 2023-06-21 11:40:00 +02:00
Kamil Kisiela
a695ac297d
Face Lifting (#2418) 2023-06-20 14:01:46 +02:00
Laurin Quast
052de4828e
chore: improve types (#2472) 2023-06-19 09:21:55 +00:00
Dimitri POSTOLOV
1cc2a0adca
Operation Collections in Lab (#1610)
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2023-06-12 16:56:27 +02:00
Laurin Quast
e18b5d4ddd
fix: show clients from all operations that reference this a schema co… (#2311) 2023-05-24 16:27:48 +02:00
Laurin Quast
10f2c74fe7
feat: show clients that use a specific schema coordinate on the explorer view (#2210) 2023-05-24 12:18:50 +02:00
Kamil Kisiela
52a5005c72
Fix time window being parameterized (#2231) 2023-05-12 21:59:09 +02:00
Kamil Kisiela
63611ac9d3
Introduce sql template tag for clickhouse queries (#2228) 2023-05-12 15:30:56 +02:00
Kamil Kisiela
073406fed7
Add suffix to count_clients queryId in OperationsReader (#2090) 2023-04-21 14:42:37 +02:00
Denis Badurina
8287a51255
prettier should be responsible for import sorting instead of eslint (#1027) 2023-01-23 10:30:38 +01:00
Kamil Kisiela
5548a7bb32
Avoid overfetching and get operation's body on-demand (#1058) 2023-01-18 14:38:56 +01:00
Kamil Kisiela
f0af9f2e67
Use ClickHouse Cloud for READ operations and drop legacy tables (#1031) 2023-01-17 11:45:09 +01:00
Dimitri POSTOLOV
bd5496ebff
[🔧 ESLint] several different rules fixes (#737) 2022-12-28 21:38:03 +01:00
Dimitri POSTOLOV
7ad5e26c34
[🔧 ESLint] import sort (#736) 2022-12-28 20:22:54 +01:00
Kamil Kisiela
a031bb642c
Add current month to the date ranges in the admin panel (#708) 2022-11-29 12:25:51 +01:00
renovate[bot]
1afe0ec73a
Update dependency @theguild/prettier-config to v1 (#676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-24 10:00:41 +00:00
Laurin Quast
7656b7957d
feat: clean app env (#422)
* feat: document environment variables

* more env documentation

* wip

* add noop for backend env

* typo

* feat: embed environment validation/parsing in built app

* fix the sentry integration 😌

* feat: use env

* feat: decode the usage service environment

* feat: decode the webhooks service environment

* feat: disallow process.env

* feat: decode the tokens service environment

* feat: decode the stripe-billing service environment

* feat: decode server service environment

* feat: decode schema service environment

* feat: decode rate-limit service environment

* feat: decode usage-estimator service environment

* feat: decode emails service environment

* adjust env

* remove commented out code

* adjust env variable name

* use separate env variables

* env fixes

* more environmental stuff :)

* ...

* replace POSTGRES_CONNECTION_STRING with specific environment variables

* handle optional clickhouse (for now :)

* add missing POSTGRES_DB environment variable

* make ENVIRONMENT optional

* the other matters lol

* feat: support delivering mails via SMTP (#412)

* feat: optional CDN (#410)

* feat: optional CDN

* enable CDN in deployment

* enable the CDN in integration tests

* add sendmail provider

* remove unused env variables from the deployment

* only show login alert when legacy auth0 migration is enabled

* feat: make TOKENS_ENDPOINT mandatory and RATE_LIMIT_ENDPOINT optional for usage service

* feat: upgrade supertokens and enable server side email confirmation (#423)

* feat: upgrade supertokens and enable server side email confirmation

* feat: opt into required email verification

* docs: self hosting (#428)

* docs: self-hosting quick start

* Update packages/web/docs/pages/self-hosting/get-started.mdx

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* feat: optional GitHub and Slack environment variables (#440)

* feat: optional github integration environment variables

* feat: optional slack integration (#441)

* use latest stable supertokens

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-04 14:30:21 +02:00
Kamil Kisiela
da14815d10
Update operations-reader.ts (#438) 2022-10-03 20:11:34 +02:00
Kamil Kisiela
2931441473
Reduce the number of active connections (#388) 2022-09-21 11:38:41 +02:00
Kamil Kisiela
091b75f38a
Fix calculation of total number of requests per client (#318) 2022-08-26 13:33:48 +02:00
Kamil Kisiela
d9b0aa65f9
Add "Copy Invite Link" button to invitations (#317)
* Add Copy Invite Link button to invitations
* Adjust the logic behind picking agg tables

Closes #316
2022-08-26 12:15:36 +02:00
Kamil Kisiela
db19282bf8
Implement new ClickHouse DB structure (#304)
FF_CLICKHOUSE_V2_TABLES
2022-08-23 12:53:22 +02:00
Kamil Kisiela
43f6817e1f
Schema Explorer (experimental) (#241) 2022-07-29 16:13:52 +02:00