Compare commits
No commits in common. "a1adc028df47e48b78551a3ef4c2c1cbf76c156b" and "08cfe1181464eed13d0212d722754245991de46f" have entirely different histories.
a1adc028df
...
08cfe11814
|
@ -39,7 +39,7 @@ type DiagsForm struct {
|
||||||
|
|
||||||
func (h *ApplicationHandler) DiagsHome(w http.ResponseWriter, r *http.Request) {
|
func (h *ApplicationHandler) DiagsHome(w http.ResponseWriter, r *http.Request) {
|
||||||
resp, err := h.services.GRPC.Diags.GetDiags(context.TODO(), &diags.GetDiagsRequest{
|
resp, err := h.services.GRPC.Diags.GetDiags(context.TODO(), &diags.GetDiagsRequest{
|
||||||
Namespaces: []string{"parcoursmob_beneficiaries", "parcoursmob_diagnostiques", "parcoursmob_vehicles", "parcoursmob_bookings"},
|
Namespaces: []string{"parcoursmob_beneficiaries", "parcoursmob_diagnostiques", "parcoursmob_vehicles"},
|
||||||
// Mindate: timestamppb.New(time.Now().Add(-24 * time.Hour)),
|
// Mindate: timestamppb.New(time.Now().Add(-24 * time.Hour)),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ func (h *ApplicationHandler) DiagsHome(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
func (h *ApplicationHandler) DiagsHistory(w http.ResponseWriter, r *http.Request) {
|
func (h *ApplicationHandler) DiagsHistory(w http.ResponseWriter, r *http.Request) {
|
||||||
resp, err := h.services.GRPC.Diags.GetDiags(context.TODO(), &diags.GetDiagsRequest{
|
resp, err := h.services.GRPC.Diags.GetDiags(context.TODO(), &diags.GetDiagsRequest{
|
||||||
Namespaces: []string{"parcoursmob_beneficiaries", "parcoursmob_diagnostiques", "parcoursmob_vehicles", "parcoursmob_bookings"},
|
Namespaces: []string{"parcoursmob_diagnostiques"},
|
||||||
//Maxdate: timestamppb.New(time.Now().Add(24 * time.Hour)),
|
//Maxdate: timestamppb.New(time.Now().Add(24 * time.Hour)),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -73,9 +73,7 @@ func (h *ApplicationHandler) DiagsHistory(w http.ResponseWriter, r *http.Request
|
||||||
responses := []diagsstorage.Diag{}
|
responses := []diagsstorage.Diag{}
|
||||||
|
|
||||||
for _, e := range resp.Diags {
|
for _, e := range resp.Diags {
|
||||||
if e.Deleted {
|
responses = append(responses, e.ToStorageType())
|
||||||
responses = append(responses, e.ToStorageType())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h.Renderer.DiagsHistory(w, r, responses)
|
h.Renderer.DiagsHistory(w, r, responses)
|
||||||
|
|
1
main.go
1
main.go
|
@ -203,7 +203,6 @@ func main() {
|
||||||
application.HandleFunc("/diags/{diagid}", applicationHandler.DiagsDisplayDiag)
|
application.HandleFunc("/diags/{diagid}", applicationHandler.DiagsDisplayDiag)
|
||||||
application.HandleFunc("/diags/{diagid}/update", applicationHandler.DiagUpdate)
|
application.HandleFunc("/diags/{diagid}/update", applicationHandler.DiagUpdate)
|
||||||
application.HandleFunc("/diags/{diagid}/delete", applicationHandler.DiagDelete)
|
application.HandleFunc("/diags/{diagid}/delete", applicationHandler.DiagDelete)
|
||||||
// application.HandleFunc("/diags/history", applicationHandler.DiagsHistory)
|
|
||||||
|
|
||||||
export := r.PathPrefix("/exports").Subrouter()
|
export := r.PathPrefix("/exports").Subrouter()
|
||||||
export.HandleFunc("/fleets/bookings", exportsHandler.Bookings)
|
export.HandleFunc("/fleets/bookings", exportsHandler.Bookings)
|
||||||
|
|
Loading…
Reference in New Issue