-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1201 from AletheiaFact/add-informative-news-claim…
…-review-type Add new Informative News report type
- Loading branch information
Showing
34 changed files
with
693 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
migrations/20240523215235-add-report-model-field-in-claim-review-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Db } from "mongodb"; | ||
|
||
export async function up(db: Db) { | ||
await db | ||
.collection("claimreviews") | ||
.updateMany({}, { $set: { reportModel: "Fact-checking" } }); | ||
} | ||
|
||
export async function down(db: Db) { | ||
await db | ||
.collection("claimreviews") | ||
.updateMany({}, { $unset: { reportModel: "" } }); | ||
} |
13 changes: 13 additions & 0 deletions
13
migrations/20240523215659-add-report-model-field-in-reports-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Db } from "mongodb"; | ||
|
||
export async function up(db: Db) { | ||
await db | ||
.collection("reports") | ||
.updateMany({}, { $set: { reportModel: "Fact-checking" } }); | ||
} | ||
|
||
export async function down(db: Db) { | ||
await db | ||
.collection("reports") | ||
.updateMany({}, { $unset: { reportModel: "" } }); | ||
} |
13 changes: 13 additions & 0 deletions
13
migrations/20240523215811-add-report-model-field-in-claimreviewtasks-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Db } from "mongodb"; | ||
|
||
export async function up(db: Db) { | ||
await db | ||
.collection("claimreviewtasks") | ||
.updateMany({}, { $set: { reportModel: "Fact-checking" } }); | ||
} | ||
|
||
export async function down(db: Db) { | ||
await db | ||
.collection("claimreviewtasks") | ||
.updateMany({}, { $unset: { reportModel: "" } }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.