Mercurial > gemma
diff pkg/models/import.go @ 4196:948e312e87bc
Add flag and filter for imports having errors
Items in the list of imports gain a boolean attribute 'errors' set to
true, if the logs of an import contain any errors.
Using the parameter 'errors=true' in the request to get the list of
imports leads to only entries with errors being returned.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 14 Aug 2019 16:55:46 +0200 |
parents | 80bdcd137a1d |
children | 47922c1a088d |
line wrap: on
line diff
--- a/pkg/models/import.go Wed Aug 14 14:56:35 2019 +0200 +++ b/pkg/models/import.go Wed Aug 14 16:55:46 2019 +0200 @@ -32,6 +32,7 @@ User string `json:"user"` Signer string `json:"signer,omitempty"` Summary bool `json:"summary,omitempty"` + Errors bool `json:"errors,omitempty"` Warnings bool `json:"warnings,omitempty"` }