* Fix various Q&A moderation/tagging issues

- Allow Staff members to have their questions
answered and appropriately tagged
- Properly filter answering for only top level
questions (comments)
- Add documentation around various moderation
phases and comment creation steps
- Remove unnecessary status filter when setting
the status for a comment

* fix: abstracted out perspective configs

* fix: reworked tag injection

* Fix sorting/unused imports

Co-authored-by: Wyatt Johnson <accounts+github@wyattjoh.ca>
This commit is contained in:
Nick Funk
2020-02-27 14:40:01 -07:00
committed by GitHub
co-authored by Wyatt Johnson
parent c052d37a6f
commit 769ab2a910
22 changed files with 393 additions and 399 deletions
@@ -11,7 +11,6 @@ export const Actions = (ctx: GraphContext) => ({
approveComment(
ctx.mongo,
ctx.redis,
ctx.config,
ctx.broker,
ctx.tenant,
input.commentID,
@@ -23,7 +22,6 @@ export const Actions = (ctx: GraphContext) => ({
rejectComment(
ctx.mongo,
ctx.redis,
ctx.config,
ctx.broker,
ctx.tenant,
input.commentID,
@@ -173,7 +173,6 @@ export const Comments = (ctx: GraphContext) => ({
? approveComment(
ctx.mongo,
ctx.redis,
ctx.config,
ctx.broker,
ctx.tenant,
commentID,
@@ -15,6 +15,7 @@ export interface CommentStatusUpdatedInput extends SubscriptionPayload {
oldStatus: GQLCOMMENT_STATUS;
moderatorID: string | null;
commentID: string;
commentRevisionID: string;
}
export type CommentStatusUpdatedSubscription = SubscriptionType<