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

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

Build:
DEFAULT BRANCH: main
Ran 18 Jan 2024 09:59AM UTC
Jobs 2
Files 517
Run time 48s
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

18 Jan 2024 09:57AM UTC coverage: 93.634% (+0.06%) from 93.57%
7568240211

push

github

web-flow
Add email subscriptions datasource (#1028)

Adds two new tables: `subscriptions` and `account_subscriptions`.

The `subscriptions` table holds a collection of subscription types:

|         id         |         key          |     name      |
|:------------------:|:--------------------:|:-------------:|
| SERIAL PRIMARY KEY | TEXT NOT NULL UNIQUE | TEXT NOT NULL |

The `key` should be used to reference the category in a human-readable format. The `name` should be used for rendering purposes.

A default entry is added with `migrations/000001_initial`: `key='account_recovery' name='Account Recovery'`. (Note: migration was edited directly because there's no deployment yet).

The `account_subscriptions` table holds the data on the account subscriptions which are active (i.e., if there is a row, then there is a subscription).

| account_id | subscription_id |
|:----------:|:---------------:|
| FOREIGN KEY (emails.account_emails) | FOREIGN KEY (emails.subscriptions) |

---
The following functionality was added to `IEmailDataSource`:
- `getSubscriptions` – Gets all the subscriptions for the account on chain id, with the specified Safe address.
- `subscribe` – Subscribes the account on chain id, with the Safe address to a category.
- `unsubscribe` – Unsubscribes from the notification category with the provided category key.
- `unsubscribeAll` – Unsubscribes from all notification categories.

---------

Co-authored-by: Aaron Cook <aaron@safe.global>
Co-authored-by: Héctor Gómez <hector.gomez.varela@gmail.com>

1459 of 1732 branches covered (0.0%)

Branch coverage included in aggregate %.

5528 of 5730 relevant lines covered (96.47%)

169.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 7568240211.1 18 Jan 2024 10:00AM UTC 1030
94.39
GitHub Action Run
2 run-test:e2e:cov - 7568240211.2 18 Jan 2024 09:59AM UTC 880
53.97
GitHub Action Run
Source Files on build 7568240211
  • Tree
  • List 517
  • Changed 395
  • Source Changed 3
  • Coverage Changed 126
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7568240211
  • 34dda612 on github
  • Prev Build on main (#7559688000)
  • Next Build on main (#7569224087)
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