fix: resolve CI failures — RetentionService bean, frontend types, artifact upload
CI — Build, Lint & Security Scan / backend (push) Failing after 1m24s
CI — Build, Lint & Security Scan / frontend (push) Failing after 48s
CI — Build, Lint & Security Scan / image-scan (push) Has been skipped
CI — Build, Lint & Security Scan / secrets-scan (push) Failing after 27s
Deploy to TrueNAS / deploy (push) Successful in 3m0s

- Remove @ConditionalOnProperty from RetentionService class; guard only @Scheduled method
- Fix QuotaStatus property references in frontend tests
- Downgrade upload-artifact to v3 for Gitea compatibility
This commit is contained in:
Patrick Plate
2026-06-19 16:23:18 +02:00
parent 51a9d1db58
commit 53931d9d2b
5 changed files with 17 additions and 11 deletions
@@ -98,11 +98,11 @@ export const mockStaffList = [
]
export const mockQuotaStatus = {
memberId: "m1",
dailyUsedGrams: 15,
dailyLimitGrams: 25,
monthlyUsedGrams: 15,
monthlyLimitGrams: 50,
usedGrams: 15,
remainingGrams: 35,
distributionCount: 3,
isUnder21: false,
}
export const mockRecentDistributions = [
@@ -62,7 +62,7 @@ describe("useQuotaQuery", () => {
await waitFor(() => expect(result.current.isSuccess).toBe(true))
expect(result.current.data).toEqual(mockQuotaStatus)
expect(result.current.data?.monthlyLimitGrams).toBe(50)
expect(result.current.data?.usedGrams).toBe(15)
expect(result.current.data?.dailyUsedGrams).toBe(15)
})
it("is disabled when memberId is empty", async () => {
@@ -91,7 +91,7 @@ describe("useMemberQuotaQuery", () => {
await waitFor(() => expect(result.current.isSuccess).toBe(true))
expect(result.current.data).toEqual(mockQuotaStatus)
expect(result.current.data?.remainingGrams).toBe(35)
expect(result.current.data?.monthlyUsedGrams).toBe(15)
})
})