vikunja-api/pkg
konrad 0a1d8c9404 feat: add date math for filters (#1086)
This adds support for relative dates in filters, similar to the ones from [grafana](https://grafana.com/docs/grafana/latest/dashboards/time-range-controls) or [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math).

In short, it allows you to filter for due dates by passing in dates like "now - 7d" to get a date from 7 days ago.

This is a very powerful addition for saved filters as they will allow you to create filters for all kinds of stuff where you previously only could use fixed dates. Now you can for example create a saved filter for "all tasks this week".

Frontend PR: https://kolaente.dev/vikunja/frontend/pulls/1342

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1086
2022-03-27 20:35:04 +00:00
..
caldav User Data Export and import (#967) 2021-09-04 19:26:31 +00:00
cmd fix: validate email address when creating a user via cli 2022-03-04 19:58:40 +01:00
config feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
cron Update copyright year 2021-02-02 20:19:13 +01:00
db feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
events Task mentions (#926) 2021-07-29 15:42:49 +00:00
files fix: checking for error types 2022-03-27 17:52:33 +02:00
initialize User Data Export and import (#967) 2021-09-04 19:26:31 +00:00
integrations feat: add date math for filters (#1086) 2022-03-27 20:35:04 +00:00
log fix: disabling logging completely now works 2022-02-19 17:42:32 +01:00
mail Fix panic on invalid smtp config 2021-08-02 00:05:13 +02:00
metrics Update module prometheus/client_golang to v1.11.0 (#879) 2021-06-11 13:08:28 +00:00
migration feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
models feat: add date math for filters (#1086) 2022-03-27 20:35:04 +00:00
modules feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
notifications User account deletion (#937) 2021-08-11 19:08:10 +00:00
red Update copyright year 2021-02-02 20:19:13 +01:00
routes fix: checking for error types 2022-03-27 17:52:33 +02:00
swagger feat: add date math for filters (#1086) 2022-03-27 20:35:04 +00:00
user feat: add long-lived api tokens (#1085) 2022-02-06 13:18:08 +00:00
utils feat: upgrade golangci-lint to 1.45.2 2022-03-27 16:55:37 +02:00
version Update copyright year 2021-02-02 20:19:13 +01:00