Update event filters naming and add sub label filter (#3194)

* Use default names so filters are more clear

* Add endpoint to get list of sub labels inside DB

* Fix crash on no internet

* Cleanups for sub_label http

* Add sub label selector to events UI

* Add event filtering for sub label

* Formatting files

* Reduce size of filters to fit on one line

* Add handler for tests

* Remove unused imports

* Only show the sub labels filter when there are sub labels in the DB

* Fix tests

* Use distinct instead of group_by

* Formatting

* Cleanup event logic
This commit is contained in:
Nicolas Mowen
2022-05-29 08:47:43 -06:00
committed by GitHub
parent ca693240b1
commit 5f9d477863
3 changed files with 54 additions and 13 deletions

View File

@@ -72,4 +72,13 @@ export const handlers = [
)
);
}),
rest.get(`${API_HOST}api/sub_labels`, (req, res, ctx) => {
return res(
ctx.status(200),
ctx.json([
'one',
'two',
])
);
}),
];