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

liqd / adhocracy-plus / 18908688697

29 Oct 2025 12:59PM UTC coverage: 44.622% (-44.5%) from 89.135%
18908688697

Pull #2986

github

web-flow
Merge 1dfde8ee7 into 445e1d498
Pull Request #2986: Draft: Speed up Github Ci Tests

3012 of 6750 relevant lines covered (44.62%)

0.45 hits per line

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

78.95
/apps/mapideas/dashboard.py
1
from django.urls import reverse
1✔
2
from django.utils.translation import gettext_lazy as _
1✔
3

4
from adhocracy4.dashboard import DashboardComponent
1✔
5
from adhocracy4.dashboard import components
1✔
6

7
from . import exports
1✔
8
from . import views
1✔
9

10

11
class ExportMapIdeaComponent(DashboardComponent):
1✔
12
    identifier = "mapidea_export"
1✔
13
    weight = 50
1✔
14
    label = _("Export Excel")
1✔
15

16
    def is_effective(self, module):
1✔
17
        return (
×
18
            module.blueprint_type in ["MIC", "MBS"]
19
            and not module.project.is_draft
20
            and not module.is_draft
21
        )
22

23
    def get_progress(self, module):
1✔
24
        return 0, 0
×
25

26
    def get_base_url(self, module):
1✔
27
        return reverse(
×
28
            "a4dashboard:mapidea-export-module",
29
            kwargs={
30
                "organisation_slug": module.project.organisation.slug,
31
                "module_slug": module.slug,
32
            },
33
        )
34

35
    def get_urls(self):
1✔
36
        return [
×
37
            (
38
                r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/$",
39
                views.MapIdeaDashboardExportView.as_view(),
40
                "mapidea-export-module",
41
            ),
42
            (
43
                r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/ideas/$",
44
                exports.MapIdeaExportView.as_view(),
45
                "mapidea-export",
46
            ),
47
            (
48
                r"^modules/(?P<module_slug>[-\w_]+)/export/mapidea/comments/$",
49
                exports.MapIdeaCommentExportView.as_view(),
50
                "mapidea-comment-export",
51
            ),
52
        ]
53

54

55
components.register_module(ExportMapIdeaComponent())
1✔
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