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

DataBiosphere / consent / #5834

02 May 2025 06:55PM UTC coverage: 78.772% (+0.04%) from 78.733%
#5834

push

web-flow
[DT-1601] Add a check that all datasets in a progress report must be approved (#2510)

5 of 5 new or added lines in 1 file covered. (100.0%)

54 existing lines in 6 files now uncovered.

10075 of 12790 relevant lines covered (78.77%)

0.79 hits per line

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

58.33
/src/main/java/org/broadinstitute/consent/http/resources/EmailNotifierResource.java
1
package org.broadinstitute.consent.http.resources;
2

3
import com.google.inject.Inject;
4
import jakarta.annotation.security.RolesAllowed;
5
import jakarta.ws.rs.GET;
6
import jakarta.ws.rs.POST;
7
import jakarta.ws.rs.Path;
8
import jakarta.ws.rs.PathParam;
9
import jakarta.ws.rs.core.Response;
10
import org.broadinstitute.consent.http.service.EmailService;
11

12
@Path("api/emailNotifier")
13
public class EmailNotifierResource extends Resource {
14

15
  private final EmailService emailService;
16

17
  @Inject
18
  public EmailNotifierResource(EmailService emailService) {
1✔
19
    this.emailService = emailService;
1✔
20
  }
1✔
21

22
  @POST
23
  @Path("/reminderMessage/{voteId}")
24
  @RolesAllowed({ADMIN, CHAIRPERSON})
25
  public Response sendReminderMessage(@PathParam("voteId") String voteId) {
26
    try {
27
      emailService.sendReminderMessage(Integer.valueOf(voteId));
1✔
28
      return Response.ok().build();
1✔
29
    } catch (Exception e) {
1✔
30
      return createExceptionResponse(e);
1✔
31
    }
32
  }
33

34
  @GET
35
  @Path("/darExpirationNotices")
36
  @RolesAllowed({SERVICE_ACCOUNT})
37
  public Response sendDarExpirationNotices() {
38
    try {
UNCOV
39
      emailService.sendExpirationNotices();
×
UNCOV
40
    } catch (Exception e) {
×
UNCOV
41
      return createExceptionResponse(e);
×
UNCOV
42
    }
×
43

UNCOV
44
    return Response.ok().build();
×
45
  }
46
}
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