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

safe-global / safe-config-service / 7528317545

11 Jan 2024 03:28PM UTC coverage: 99.757% (-0.02%) from 99.772%
7528317545

push

github

web-flow
Invalidate safe apps for removed chains (#1020)

- Decouples `post_delete` signal from the affected flow, as it remains as it is.
- Change the handling of `post_save` signal to handle `pre_save` signal, to have access to the instance's `Chain` list before the update is made.
- Both the `Chain` items related to the `SafeApp` before and after the update are stored in a `Set` to avoid repetitions. Hooks are dispatched for all the `Chain` items in the set.

4923 of 4935 relevant lines covered (99.76%)

1.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/chains/migrations/0001_initial.py
1
# Generated by Django 3.2.3 on 2021-06-02 14:44
2
from typing import List, Tuple
1✔
3

4
from django.db import migrations, models
1✔
5

6

7
class Migration(migrations.Migration):
1✔
8
    initial = True
1✔
9

10
    dependencies: List[Tuple[str, str]] = []
1✔
11

12
    operations = [
1✔
13
        migrations.CreateModel(
1✔
14
            name="Chain",
1✔
15
            fields=[
1✔
16
                (
1✔
17
                    "id",
1✔
18
                    models.PositiveBigIntegerField(
1✔
19
                        primary_key=True, serialize=False, verbose_name="Chain Id"
1✔
20
                    ),
21
                ),
22
                ("name", models.CharField(max_length=255, verbose_name="Chain name")),
1✔
23
                ("rpc_url", models.URLField()),
1✔
24
                ("block_explorer_url", models.URLField(null=True)),
1✔
25
                ("currency_name", models.CharField(max_length=255, null=True)),
1✔
26
                ("currency_symbol", models.CharField(max_length=255)),
1✔
27
                ("currency_decimals", models.IntegerField(default=18)),
1✔
28
            ],
29
        ),
30
    ]
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