Skip to content

Commit

Permalink
#519: rename getDiff
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Jul 26, 2023
1 parent 000b2d8 commit 3a1ba56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private Behavior<Command> onStart() {
tenantName, scheduleId
);

VertxUtil.runOnContext(() -> service.getDiff(tenantName, scheduleId), list -> {
VertxUtil.runOnContext(() -> service.getDeletedContentIds(tenantName, scheduleId), list -> {

Long datasourceId = scheduler.getDatasource().getId();
DataIndex newDataIndex = scheduler.getNewDataIndex();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Uni<DataIndex> getNewDataIndex(Scheduler scheduler) {
return em.withStatelessTransaction(s -> Mutiny2.fetch(s, scheduler.getNewDataIndex()));
}

public Uni<List<String>> getDiff(String tenant, String schedulerId) {
public Uni<List<String>> getDeletedContentIds(String tenant, String schedulerId) {
return em.withStatelessTransaction(tenant, s -> s.createQuery(
"select s " +
"from Scheduler s " +
Expand All @@ -81,11 +81,11 @@ public Uni<List<String>> getDiff(String tenant, String schedulerId) {
.flatMap(this::indexesDiff);
}

public Uni<List<String>> getDiff(String schedulerId) {
return getDiff(null, schedulerId);
public Uni<List<String>> getDeletedContentIds(String schedulerId) {
return getDeletedContentIds(null, schedulerId);
}

public Uni<List<String>> getDiff(long id) {
public Uni<List<String>> getDeletedContentIds(long id) {
return em.withStatelessTransaction(s -> s.createQuery(
"select s " +
"from Scheduler s " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
@RolesAllowed("k9-admin")
public class SchedulerResource {

@Path("/{schedulerId}/getDiff")
@Path("/{schedulerId}/getDeletedContentIds")
@GET
public Uni<List<String>> getDeletedContentIds(@PathParam("schedulerId") long schedulerId) {
return schedulerService.getDiff(schedulerId);
return schedulerService.getDeletedContentIds(schedulerId);
}

@Inject
Expand Down

0 comments on commit 3a1ba56

Please sign in to comment.