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

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

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2024 12:06PM UTC
Jobs 1
Files 558
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

19 Aug 2024 12:04PM UTC coverage: 46.827% (-0.1%) from 46.944%
10452957617

push

github

web-flow
Allow optional signature when registering notifications (#1797)

This adapts the `POST` `/v2/register/notifications` endpoint to make the `accessToken` optional and, if not present, register for notifications as a non-owner/delegate with no `signer_address` saved. When notifications are dispatched, if no `signer_address` is present, only "public" notifications are therefore dispatch to the related Firebase token:

- Make `notification_subscriptions['signer_address']` column nullable
- Allow upsertion of subscriptions without a signer address, adapting the logic to first clear the subscription if the signer address matches or is undefined in order to "align" subscriptions.
- Add/adjust tests accordingly.

476 of 2900 branches covered (16.41%)

Branch coverage included in aggregate %.

6 of 19 new or added lines in 5 files covered. (31.58%)

7 existing lines in 4 files now uncovered.

4557 of 7848 relevant lines covered (58.07%)

12.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
8.33
-1.47% src/datasources/notifications/notifications.datasource.ts
6
6.25
-0.51% src/domain/hooks/helpers/event-notifications.helper.ts
6
33.33
src/routes/auth/guards/optional-auth.guard.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.32
-6.45% src/datasources/transaction-api/transaction-api.manager.ts
1
72.22
-3.7% src/datasources/balances-api/balances-api.manager.ts
2
8.33
-1.47% src/datasources/notifications/notifications.datasource.ts
3
6.25
-0.51% src/domain/hooks/helpers/event-notifications.helper.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 10452957617.1 19 Aug 2024 12:06PM UTC 1116
51.36
GitHub Action Run
Source Files on build 10452957617
  • Tree
  • List 558
  • Changed 10
  • Source Changed 7
  • Coverage Changed 165
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #10452957617
  • b423384f on github
  • Prev Build on main (#10400269180)
  • Next Build on main (#10454727634)
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

© 2025 Coveralls, Inc