Hiding scenes with missing dates from network overview. Using computed effective date column.

This commit is contained in:
DebaucheryLibrarian
2021-12-05 23:29:27 +01:00
parent 681db02784
commit a484396db4
2 changed files with 7 additions and 37 deletions

View File

@@ -22,8 +22,6 @@ function initEntitiesActions(store, router) {
$offset: Int = 0,
$after: Datetime = "1900-01-01",
$before: Datetime = "2100-01-01",
$afterTime: Datetime = "1900-01-01",
$beforeTime: Datetime = "2100-01-01",
$orderBy: [ReleasesOrderBy!]
$exclude: [String!]
$hasAuth: Boolean!
@@ -91,20 +89,19 @@ function initEntitiesActions(store, router) {
or: [
{
date: {
lessThan: $before,
greaterThan: $after
isNull: ${entityType === 'channel'}
}
},
}
{
date: {
isNull: true
},
createdAt: {
lessThan: $beforeTime,
greaterThan: $afterTime,
isNull: false
}
}
]
effectiveDate: {
lessThan: $before,
greaterThan: $after
}
releasesTagsConnection: {
none: {
tag: {
@@ -131,8 +128,6 @@ function initEntitiesActions(store, router) {
after,
before,
orderBy,
afterTime: store.getters.after,
beforeTime: store.getters.before,
exclude: store.state.ui.tagFilter,
hasAuth: !!store.state.auth.user,
userId: store.state.auth.user?.id,