You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in 20200212 meeting, we want to allow editor to edit their reply when
The reply is only used by the editor itself (the author should know the impact of the edit)
The reply has not yet received any feedback (the edit should now invalidate user's feedbacks)
We plan to add 1 mutation API, and one new field to Reply type for this:
"""The reason why the editor cannot edit"""enumReplyUpdateBlocker {
NOT_AUTHORIZED # Not logged in or not the author of reply HAS_FEEDBACK USED_BY_OTHER_EDITORS
}
typeReply {
""" The reason why the current user cannot edit this reply. null if the current user can edit. The blockers are determined in the following order: (1) current user is the author or not (2) `positiveFeedbackCount` and `negativeFeedbackCount` are both 0 or not (3) all normal article-reply to this article are by the current author or not """updateBlocker: ReplyUpdateBlocker
}
mutation {
""" Updates reply text, type & reference when (1) current user is the author (2) `positiveFeedbackCount` and `negativeFeedbackCount` are both 0 (3) all normal article-reply to this article are by the current author """UpdateReply(
replyId: String!
text: Stringtype: ReplyTypeEnumreference: StringwaitForHyperlinks: Boolean = false
) {
""'
Thereplyafterupdate. `null` whenupdateisnotsuccessful""" reply: Reply """Thereasonwhyupdatefails. nullwhencanupdate.
""" blocker: ReplyUpdateBlocker }}
"all normal article-reply to this article are by the current author" can be achieved by loading article-reply of a reply using articleRepliesByReplyIdLoader and check each article-reply's author ID.
The text was updated successfully, but these errors were encountered:
As discussed in 20200212 meeting, we want to allow editor to edit their reply when
We plan to add 1 mutation API, and one new field to
Reply
type for this:"all normal article-reply to this article are by the current author" can be achieved by loading article-reply of a reply using
articleRepliesByReplyIdLoader
and check each article-reply's author ID.The text was updated successfully, but these errors were encountered: