• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 10279565714
89%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2024 06:55AM UTC
Jobs 1
Files 556
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2024 06:53AM UTC coverage: 47.073% (+0.2%) from 46.901%
10279565714

push

github

web-flow
Add v2 notifications routes (#1787)

Adds v2 notifications routes for upserting push notification subscriptions/getting preferences, as well as deletion routes for Safe/device subscriptions:

- `POST` `/v2/register/notifications` (guarded)
- `GET` `/v2/chains/:chainId/notifications/devices/:deviceUuid/safes/:safeAddress` (guarded)
- `DELETE` `/v2/chains/:chainId/notifications/devices/:deviceUuid/safes/:safeAddress`
- `DELETE` `/v2/chains/:chainId/notifications/devices/:deviceUuid`

- Create above routes in a new `NotificationsModuleV2` with associated service and controller, tweaking the respective repository/datasource in accordance.
- Add relative validation for entities:
  - Create `UpsertSubscriptionsDto`, located on the route level and infer the type from it.
  - Create `UuidSchema`.
- Remove `Uuid` entity in place of `crypto.UUID`.
- Add appropriate tests.

462 of 2842 branches covered (16.26%)

Branch coverage included in aggregate %.

34 of 61 new or added lines in 8 files covered. (55.74%)

2 existing lines in 2 files now uncovered.

4539 of 7782 relevant lines covered (58.33%)

12.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
66.67
src/validation/entities/schemas/uuid.schema.ts
5
76.19
src/routes/notifications/notifications.controller.v2.ts
5
37.5
src/routes/notifications/notifications.service.v2.ts
6
9.8
0.0% src/datasources/notifications/notifications.datasource.ts
10
19.51
-6.29% src/domain/notifications/notifications.repository.v2.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
9.8
0.0% src/datasources/notifications/notifications.datasource.ts
1
19.51
-6.29% src/domain/notifications/notifications.repository.v2.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 10279565714.1 07 Aug 2024 06:55AM UTC 1112
51.62
GitHub Action Run
Source Files on build 10279565714
  • Tree
  • List 556
  • Changed 8
  • Source Changed 6
  • Coverage Changed 162
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #10279565714
  • ee041568 on github
  • Prev Build on main (#10268649697)
  • Next Build on main (#10279577349)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc