Remove user GQL prop 'filedUnclosedReportByCurrentUser' again

- Shall be implemented in a later PR.
This commit is contained in:
Wolfgang Huß 2020-02-20 10:54:34 +01:00
parent 4bd7f61fcc
commit 5c7f92e557
3 changed files with 0 additions and 16 deletions

View File

@ -25,8 +25,6 @@ describe('file a report on a resource', () => {
__typename
... on User {
name
# Wolle filedUnclosedReportByCurrentUser
# Wolle test followedByCurrentUser
}
... on Post {
title
@ -198,7 +196,6 @@ describe('file a report on a resource', () => {
describe('valid resource', () => {
describe('creates report', () => {
it('which belongs to resource', async () => {
// Wolle it('which belongs to resource now reported by current user', async () => {
await expect(
mutate({
mutation: fileReportMutation,
@ -210,7 +207,6 @@ describe('file a report on a resource', () => {
reportId: expect.any(String),
resource: {
name: 'abusive-user',
// Wolle filedUnclosedReportByCurrentUser: true,
},
},
},
@ -752,8 +748,6 @@ describe('file a report on a resource', () => {
resource: {
__typename: 'User',
id: 'abusive-user-1',
// Wolle filedUnclosedReportByCurrentUser: false,
// Wolle test followedByCurrentUser: false,
},
filed: expect.arrayContaining([
expect.objectContaining({

View File

@ -251,8 +251,6 @@ export default {
boolean: {
followedByCurrentUser:
'MATCH (this)<-[:FOLLOWS]-(u:User {id: $cypherParams.currentUserId}) RETURN COUNT(u) >= 1',
filedUnclosedReportByCurrentUser:
'MATCH (this)<-[:BELONGS_TO]-(:Report {closed: false})<-[:FILED]-(u:User {id: $cypherParams.currentUserId}) RETURN COUNT(u) >= 1',
isBlocked:
'MATCH (this)<-[:BLOCKED]-(u:User {id: $cypherParams.currentUserId}) RETURN COUNT(u) >= 1',
blocked:

View File

@ -69,14 +69,6 @@ type User {
"""
)
# Has the currently logged in user reported that user?
filedUnclosedReportByCurrentUser: Boolean! @cypher(
statement: """
MATCH (this)<-[:BELONGS_TO]-(:Report {closed: false})<-[:FILED]-(u:User { id: $cypherParams.currentUserId})
RETURN COUNT(u) >= 1
"""
)
isBlocked: Boolean! @cypher(
statement: """
MATCH (this)<-[:BLOCKED]-(user:User {id: $cypherParams.currentUserId})