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

LibreSign / libresign / 20907588007

12 Jan 2026 03:57AM UTC coverage: 43.867%. First build
20907588007

Pull #6436

github

web-flow
Merge 9c5490a63 into 8fe916f99
Pull Request #6436: feat: async parallel signing

242 of 775 new or added lines in 26 files covered. (31.23%)

6920 of 15775 relevant lines covered (43.87%)

4.86 hits per line

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

20.0
/lib/Service/SigningCoordinatorService.php
1
<?php
2

3
declare(strict_types=1);
4
/**
5
 * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
6
 * SPDX-License-Identifier: AGPL-3.0-or-later
7
 */
8

9
namespace OCA\Libresign\Service;
10

11
use OCA\Libresign\AppInfo\Application;
12
use OCP\IAppConfig;
13

14
/**
15
 * Lightweight coordinator to decide parallel vs sequential signing.
16
 */
17
class SigningCoordinatorService {
18
        public function __construct(
19
                private IAppConfig $appConfig,
20
        ) {
21
        }
47✔
22

23
        public function shouldUseParallelProcessing(int $signRequestCount): bool {
NEW
24
                if ($signRequestCount <= 1) {
×
NEW
25
                        return false;
×
26
                }
27

NEW
28
                $signingMode = $this->appConfig->getValueString(Application::APP_ID, 'signing_mode', 'async');
×
NEW
29
                return $signingMode === 'async';
×
30
        }
31
}
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