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

rdmorganiser / rdmo / 20428555173

22 Dec 2025 10:02AM UTC coverage: 94.693% (-0.1%) from 94.814%
20428555173

Pull #1436

github

web-flow
Merge 0ffb48a5d into 57a75b09e
Pull Request #1436: Draft: add `rdmo.config` app for `Plugin` model (plugin managament)

2191 of 2304 branches covered (95.1%)

23411 of 24723 relevant lines covered (94.69%)

3.79 hits per line

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

54.55
rdmo/services/views.py
1
from django.shortcuts import render
4✔
2
from django.utils.translation import gettext_lazy as _
4✔
3

4
from rdmo.config.constants import PluginType
4✔
5
from rdmo.config.models import Plugin
4✔
6

7
PROVIDER_TYPES = [
4✔
8
    PluginType.PROJECT_ISSUE_PROVIDER,
9
    PluginType.PROJECT_EXPORT,
10
    PluginType.PROJECT_IMPORT,
11
]
12

13

14
def oauth_callback(request, provider_key):
4✔
15
    for plugin in (Plugin.objects.for_context(
×
16
            user=request.user,
17
            format=provider_key,
18
            plugin_types=PROVIDER_TYPES
19
        )
20
    ):
21
        provider = plugin.initialize_class()
×
22
        if provider and provider.get_from_session(request, 'state'):
×
23
            return provider.callback(request)
×
24

25
    return render(request, 'core/error.html', {
×
26
        'title': _('Integration Error'),
27
        'errors': [_('Something went wrong. Please contact support.')]
28
    }, status=500)
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