Skip to content

Commit

Permalink
Støtte å vise "utgatteVarsel" i statustall
Browse files Browse the repository at this point in the history
  • Loading branch information
slovrid committed Nov 29, 2024
1 parent bc5573b commit dda4bd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class Statustall {
private long fargekategoriF;
private long fargekategoriIngenKategori;
private long tiltakshendelser;
private long utgatteVarsel;

public Statustall() {
this.totalt = 0;
Expand Down Expand Up @@ -63,6 +64,7 @@ public Statustall() {
this.fargekategoriF = 0;
this.fargekategoriIngenKategori = 0;
this.tiltakshendelser = 0;
this.utgatteVarsel = 0;
}

public Statustall(StatustallResponse.StatustallAggregation.StatustallFilter.StatustallBuckets buckets, boolean vedtakstottePilotErPa) {
Expand Down Expand Up @@ -93,5 +95,6 @@ public Statustall(StatustallResponse.StatustallAggregation.StatustallFilter.Stat
this.fargekategoriF = buckets.getFargekategoriF().getDoc_count();
this.fargekategoriIngenKategori = buckets.getFargekategoriIngenKategori().getDoc_count();
this.tiltakshendelser = buckets.getTiltakshendelser().getDoc_count();
this.utgatteVarsel = buckets.getUtgatteVarsel().getDoc_count();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ static SearchSourceBuilder byggStatustallQuery(BoolQueryBuilder filtrereVeileder
mustMatchQuery(filtrereVeilederOgEnhet, "fargekategoriF", "fargekategori", FargekategoriVerdi.FARGEKATEGORI_F.name()),
mustNotExistFilter(filtrereVeilederOgEnhet, "fargekategoriIngenKategori", "fargekategori"),
mustExistFilter(filtrereVeilederOgEnhet, "mineHuskelapper", "huskelapp"),
mustExistFilter(filtrereVeilederOgEnhet, "tiltakshendelser", "tiltakshendelse")
mustExistFilter(filtrereVeilederOgEnhet, "tiltakshendelser", "tiltakshendelse"),
mustExistFilter(filtrereVeilederOgEnhet, "utgatteVarsel", "utgatt_varsel")
};

return new SearchSourceBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public static class StatustallBuckets {
Bucket fargekategoriF;
Bucket fargekategoriIngenKategori;
Bucket tiltakshendelser;
Bucket utgatteVarsel;
}
}
}
Expand Down

0 comments on commit dda4bd5

Please sign in to comment.