mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Remove user GQL prop 'filedUnclosedReportByCurrentUser' again
- Shall be implemented in a later PR.
This commit is contained in:
parent
4bd7f61fcc
commit
5c7f92e557
@ -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({
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user