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

LibreSign / libresign / 21008830184

14 Jan 2026 08:29PM UTC coverage: 44.286%. First build
21008830184

Pull #6436

github

web-flow
Merge 4bec3de23 into 9bd4c65c5
Pull Request #6436: feat: async parallel signing

390 of 923 new or added lines in 41 files covered. (42.25%)

7007 of 15822 relevant lines covered (44.29%)

4.93 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