Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Disable posts #207

Merged
merged 14 commits into from
Mar 7, 2019
Merged

Disable posts #207

merged 14 commits into from
Mar 7, 2019

Conversation

roschaefer
Copy link
Contributor

This is a horribly complicated implementation to allow only moderators to disable posts (only posts).

Reasons why this is so bad:

  • No convenient access to database during tests (everything has to go through the API)
  • I cannot change the generated mutation
  • No filtering for disabled: true if disabled is a derived property

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
+ return more attributes in post factory for convenience
@roschaefer roschaefer requested review from appinteractive and removed request for appinteractive March 6, 2019 16:22
@mattwr18
Copy link
Member

mattwr18 commented Mar 7, 2019

@roschaefer it looks good! was just having a look at the tests and reading the comments here... it looks like it was more work than we were anticipating?

@roschaefer roschaefer requested a review from Tirokk March 7, 2019 18:00
Copy link
Member

@Tirokk Tirokk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, this was a stack load of work. Well done!

@roschaefer roschaefer merged commit 2d24fc9 into master Mar 7, 2019
@roschaefer roschaefer deleted the 27_disable_posts branch March 7, 2019 18:14
@appinteractive
Copy link
Member

🥳

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants