FEATURE: Claim Reviewables by Topic

This is a feature that used to be present in discourse-assign but is
much easier to implement in core. It also allows a topic to be assigned
without it claiming for review and vice versa and allows it to work with
category group reviewers.
This commit is contained in:
Robin Ward
2019-05-08 10:20:51 -04:00
parent 8dfb15a2e5
commit b380ed5282
30 changed files with 448 additions and 47 deletions

View File

@ -142,7 +142,7 @@ QUnit.test("destroyRecord when new", function(assert) {
QUnit.test("find embedded", function(assert) {
const store = createStore();
return store.find("fruit", 2).then(function(f) {
return store.find("fruit", 1).then(function(f) {
assert.ok(f.get("farmer"), "it has the embedded object");
const fruitCols = f.get("colors");
@ -154,6 +154,14 @@ QUnit.test("find embedded", function(assert) {
});
});
QUnit.test("embedded records can be cleared", async assert => {
const store = createStore();
let f = await store.find("fruit", 4);
f.set("farmer", { dummy: "object" });
f = await store.find("fruit", 4);
assert.ok(!f.get("farmer"));
});
QUnit.test("meta types", function(assert) {
const store = createStore();
return store.find("barn", 1).then(function(f) {