mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
create HistoryFilters instance from Filtering class
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import Filtering, { compare, contains, equals, expandNameTag, toBool, toDate } from "utils/filtering";
|
||||
|
||||
export const validFilters = {
|
||||
hid: equals("hid"),
|
||||
state: equals("state"),
|
||||
name: contains("name"),
|
||||
extension: equals("extension"),
|
||||
hid_ge: compare("hid", "ge"),
|
||||
hid_gt: compare("hid", "gt"),
|
||||
hid_le: compare("hid", "le"),
|
||||
hid_lt: compare("hid", "lt"),
|
||||
tag: contains("tags", "tag", expandNameTag),
|
||||
visible: equals("visible", "visible", toBool),
|
||||
deleted: equals("deleted", "deleted", toBool),
|
||||
create_time: compare("create_time", "le", toDate),
|
||||
create_time_ge: compare("create_time", "ge", toDate),
|
||||
create_time_gt: compare("create_time", "gt", toDate),
|
||||
create_time_le: compare("create_time", "le", toDate),
|
||||
create_time_lt: compare("create_time", "lt", toDate),
|
||||
update_time: compare("update_time", "le", toDate),
|
||||
update_time_ge: compare("update_time", "ge", toDate),
|
||||
update_time_gt: compare("update_time", "gt", toDate),
|
||||
update_time_le: compare("update_time", "le", toDate),
|
||||
update_time_lt: compare("update_time", "lt", toDate),
|
||||
};
|
||||
|
||||
export const HistoryFilters = new Filtering(validFilters, true);
|
||||
Reference in New Issue
Block a user