1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/db
Thomas Heartman 0a43d341c0
fix: check whether a usage data is defined (#5393)
The previous check would return `false` if the value was 0, causing a
bug where the usage data wouldn't be included.

This also adds tests to ensure that usage data for CR segments is
propagated correctly because that's where I first encountered the issue.

Before this fix, if the values were 0, the data would display like the
bottom element in the screenshot:


![image](https://github.com/Unleash/unleash/assets/17786332/9642b945-12c4-4217-aec9-7fef4a88e9af)
2023-11-27 11:20:25 +01:00
..
access-store.test.ts chore: Improve access service iter 2 (#4779) 2023-09-19 16:15:27 +02:00
access-store.ts fix: User audit events (create, update, delete) should include rootRole. (#5399) 2023-11-24 16:06:37 +01:00
account-store.ts fix: add confirmation to disable password login (#3829) 2023-05-23 15:56:34 +01:00
addon-store.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
api-token-store.ts chore: handle transactions already started at the controller layer (#4953) 2023-10-06 13:38:32 +02:00
client-applications-store.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
client-instance-store.ts refactor: move metrics service scheduling (#5129) 2023-10-23 16:28:19 +02:00
client-metrics-store-v2.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
context-field-store.ts chore: remove context/segment usage flag (#4242) 2023-07-14 13:30:15 +03:00
db-pool.ts feat: add "application_name" as an optional DB option #1170 (#1478) 2022-04-07 20:55:56 +02:00
db.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
environment-store.ts feat: add max order to environments (#3988) 2023-06-15 12:21:35 +03:00
event-store.test.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
event-store.ts feat: feature changes counted in new table (#4958) 2023-10-10 12:32:23 +02:00
favorite-features-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
favorite-projects-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
feature-environment-store.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
feature-strategy-store.test.ts Refactor/move features to feature oriented architecture (#4994) 2023-10-11 09:38:57 +02:00
feature-tag-store.ts fix: fix bulk removal of tags (#3651) 2023-04-28 14:49:34 +03:00
feature-type-store.ts feat: feature type updated audit log (#5415) 2023-11-24 14:24:31 +01:00
group-store.ts fix: only delete SSO-synced group membership where membership was added by SSO sync (#4929) 2023-10-05 13:22:46 +02:00
index.ts fix: add sort to deep diff (#5084) 2023-10-18 16:34:42 +02:00
pat-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
project-stats-store.ts feat: DORA metrics lead time to production (#4589) 2023-08-30 14:39:43 +02:00
project-store.ts fix: hardcoded stickiness and mode fields (#5342) 2023-11-17 12:32:13 +01:00
public-signup-token-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
reset-token-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
role-store.ts feat: add prom metric for total custom root roles in use (#4438) 2023-08-08 08:14:40 +01:00
segment-store.test.ts chore: only return change request data if the unleash instance is an enterprise instance (#5331) 2023-11-22 12:15:29 +00:00
segment-store.ts fix: check whether a usage data is defined (#5393) 2023-11-27 11:20:25 +01:00
session-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
setting-store.ts chore: expose instanceId so it can be used from addons (#5231) 2023-10-31 12:38:21 +01:00
strategy-store.ts feat: add title to strategy (#3510) 2023-04-18 08:59:02 +02:00
tag-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
tag-type-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
transaction.ts chore: introduce type to prevent potential issues (#5066) 2023-10-17 12:30:44 +02:00
user-feedback-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
user-splash-store.ts feat: allow every store to participate in transaction (#3016) 2023-01-30 09:02:44 +01:00
user-store.ts feat: Add active users statistics to metrics (#4674) 2023-09-18 15:05:17 +02:00