discourse: distinguish the different AUTHORS edges

I've written the Discourse plugin with distinct edge types for post and
topic authorship; it allows us to have more precise control over how
cred flows (and mitigates the need for #968). However, I gave the two
types the same name, which is confusing in the weight config ui. Now
they are properly distinct.

Test plan: It's a simple string change. In (unpublished) commits with a
full Discourse integration, the new strings show up nicely in the UI.
This commit is contained in:
Dandelion Mané 2019-08-18 15:22:17 +02:00
parent cedc8e8fe5
commit 0d6e868324
1 changed files with 4 additions and 4 deletions

View File

@ -51,8 +51,8 @@ export const postRepliesEdgeType: EdgeType = deepFreeze({
}); });
export const authorsTopicEdgeType: EdgeType = deepFreeze({ export const authorsTopicEdgeType: EdgeType = deepFreeze({
forwardName: "authors", forwardName: "authors topic",
backwardName: "is authored by", backwardName: "topic is authored by",
prefix: EdgeAddress.fromParts([ prefix: EdgeAddress.fromParts([
"sourcecred", "sourcecred",
"discourse", "discourse",
@ -64,8 +64,8 @@ export const authorsTopicEdgeType: EdgeType = deepFreeze({
}); });
export const authorsPostEdgeType: EdgeType = deepFreeze({ export const authorsPostEdgeType: EdgeType = deepFreeze({
forwardName: "authors", forwardName: "authors post",
backwardName: "is authored by", backwardName: "post is authored by",
prefix: EdgeAddress.fromParts(["sourcecred", "discourse", "authors", "post"]), prefix: EdgeAddress.fromParts(["sourcecred", "discourse", "authors", "post"]),
defaultWeight: {forwards: 0.5, backwards: 1}, defaultWeight: {forwards: 0.5, backwards: 1},
description: "Connects an author to a post they've created.", description: "Connects an author to a post they've created.",