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

hicommonwealth / commonwealth / 15559623773

10 Jun 2025 12:34PM UTC coverage: 40.748% (-0.08%) from 40.827%
15559623773

push

github

web-flow
Merge pull request #12366 from hicommonwealth/rotorsoft/12364-topic-gate-getthreadsbyids

Adds new query for single ids and protect private topics

1771 of 4719 branches covered (37.53%)

Branch coverage included in aggregate %.

0 of 18 new or added lines in 4 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

3206 of 7495 relevant lines covered (42.78%)

37.45 hits per line

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

82.35
/libs/model/src/middleware/errors.ts
1
import { Actor, INVALID_ACTOR_ERROR, InvalidActor } from '@hicommonwealth/core';
2
import { GroupGatedActionKey } from '@hicommonwealth/shared';
3

4
export class BannedActor extends InvalidActor {
5
  constructor(public actor: Actor) {
2✔
6
    super(actor, 'Banned User');
2✔
7
    this.name = INVALID_ACTOR_ERROR;
2✔
8
  }
9
}
10

11
export class NonMember extends InvalidActor {
12
  constructor(
13
    public actor: Actor,
10✔
14
    public topic: string,
10✔
15
    public action: GroupGatedActionKey,
10✔
16
  ) {
17
    super(
10✔
18
      actor,
19
      `User does not have permission to perform action ${action} in topic ${topic}`,
20
    );
21
    this.name = INVALID_ACTOR_ERROR;
10✔
22
  }
23
}
24

25
export class RejectedMember extends InvalidActor {
26
  constructor(
27
    public actor: Actor,
5✔
28
    public topic: string,
5✔
29
    public action: GroupGatedActionKey,
5✔
30
    public reasons: string[],
5✔
31
  ) {
32
    super(
5✔
33
      actor,
34
      `User does not have permission to perform action ${action} in topic ${topic}`,
35
    );
36
    this.name = INVALID_ACTOR_ERROR;
5✔
37
  }
38
}
39

40
export class UnauthorizedView extends InvalidActor {
NEW
41
  constructor(public actor: Actor) {
×
NEW
42
    super(actor, `User does not have permission to view this topic`);
×
NEW
43
    this.name = INVALID_ACTOR_ERROR;
×
44
  }
45
}
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