Commit f2e533b
feat(keda): add posthog events (#2340)
* feat(keda): add posthog event when KEDA is enabled at cluster level
Track cluster-keda-enabled event with organization_id, cluster_id, and cloud_provider properties when users activate KEDA feature in cluster settings.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* feat(keda): add posthog events for KEDA autoscaling mode selection and scaler management
Track three new PostHog events for KEDA autoscaling:
- service-autoscaling-keda-selected: When user selects KEDA autoscaling mode
- service-keda-scaler-added: When user adds a new scaler
- service-keda-scaler-type-set: When user sets the scaler type
All events include organization_id, environment_id, service_id, service_type, min_running_instances, and max_running_instances. The scaler events also include scaler-specific properties.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* refactor(keda): remove unnecessary tracking properties and comments from posthog events
Remove organization_id, environment_id, service_id, and service_type from all KEDA PostHog events. Remove code comments. Keep only essential properties: cloud_provider, min/max instances, scaler_type, and scaler_count.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix(keda): resolve typescript errors in posthog event tracking
Fix onBlur handler to use onChange instead (InputText doesn't support onBlur prop) and remove unused imports from keda-settings.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* chore: update qovery-typescript-axios to v1.1.821
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent c7b4c25 commit f2e533b
6 files changed
Lines changed: 47 additions & 11 deletions
File tree
- libs
- domains
- clusters/feature/src/lib/hooks/use-edit-cluster
- services/feature/src/lib/keda/components
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
108 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
109 | 129 | | |
110 | 130 | | |
111 | 131 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5679 | 5679 | | |
5680 | 5680 | | |
5681 | 5681 | | |
5682 | | - | |
| 5682 | + | |
5683 | 5683 | | |
5684 | 5684 | | |
5685 | 5685 | | |
| |||
24520 | 24520 | | |
24521 | 24521 | | |
24522 | 24522 | | |
24523 | | - | |
24524 | | - | |
24525 | | - | |
| 24523 | + | |
| 24524 | + | |
| 24525 | + | |
24526 | 24526 | | |
24527 | 24527 | | |
24528 | | - | |
| 24528 | + | |
24529 | 24529 | | |
24530 | 24530 | | |
24531 | 24531 | | |
| |||
0 commit comments