Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2016-03-28 16:03:58 -0400
committerFrank Becker2016-04-12 17:09:28 -0400
commit2f74d874093c2c379ce9d4268e45e8c1a1ff370a (patch)
tree89014fdfb740d33f81796027232fa206827c2e0d /connector-bugzilla-rest
parentdcf2e0aae45414e3c7134613f81df424c97497c9 (diff)
downloadorg.eclipse.mylyn.tasks-2f74d874093c2c379ce9d4268e45e8c1a1ff370a.tar.gz
org.eclipse.mylyn.tasks-2f74d874093c2c379ce9d4268e45e8c1a1ff370a.tar.xz
org.eclipse.mylyn.tasks-2f74d874093c2c379ce9d4268e45e8c1a1ff370a.zip
419311: support "Reset QA Contact to default" for REST Connector
Change-Id: I4f30d6e4154c9aeb6fdd82324b1796e9622ee07d Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419311
Diffstat (limited to 'connector-bugzilla-rest')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core.tests/src/org/eclipse/mylyn/internal/bugzilla/rest/core/tests/BugzillaRestClientTest.java1
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestConfiguration.java3
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestPutUpdateTask.java1
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskSchema.java3
4 files changed, 7 insertions, 1 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core.tests/src/org/eclipse/mylyn/internal/bugzilla/rest/core/tests/BugzillaRestClientTest.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core.tests/src/org/eclipse/mylyn/internal/bugzilla/rest/core/tests/BugzillaRestClientTest.java
index 597685f31..0667cb2a7 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core.tests/src/org/eclipse/mylyn/internal/bugzilla/rest/core/tests/BugzillaRestClientTest.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core.tests/src/org/eclipse/mylyn/internal/bugzilla/rest/core/tests/BugzillaRestClientTest.java
@@ -487,6 +487,7 @@ public class BugzillaRestClientTest {
taskDataGet.getRoot().removeAttribute(TaskAttribute.COMMENT_NEW);
taskDataGet.getRoot().removeAttribute("addCC");
taskDataGet.getRoot().removeAttribute("removeCC");
+ taskDataGet.getRoot().removeAttribute(BugzillaRestTaskSchema.getDefault().RESET_QA_CONTACT.getKey());
// attributes for operations
taskDataGet.getRoot().removeAttribute("task.common.operation-CONFIRMED");
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestConfiguration.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestConfiguration.java
index 828347e7a..8c4cc4e5a 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestConfiguration.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestConfiguration.java
@@ -128,7 +128,8 @@ public class BugzillaRestConfiguration implements Serializable {
TaskAttribute attribute = data.getRoot().getAttribute(key);
if (!key.equals(SCHEMA.PRODUCT.getKey())) {
String configName = mapTaskAttributeKey2ConfigurationFields(key);
- if ("addCC".equals(configName) || "removeCC".equals(configName)) {
+ if ("addCC".equals(configName) || "removeCC".equals(configName)
+ || "reset_qa_contact".equals(configName)) {
continue;
}
Field configField = getFieldWithName(configName);
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestPutUpdateTask.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestPutUpdateTask.java
index 9f6895892..fd35cb387 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestPutUpdateTask.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestPutUpdateTask.java
@@ -79,6 +79,7 @@ public class BugzillaRestPutUpdateTask extends BugzillaRestAuthenticatedPutReque
.add(BugzillaRestTaskSchema.getDefault().BLOCKS.getKey())
.add(BugzillaRestTaskSchema.getDefault().DEPENDS_ON.getKey())
.add(BugzillaRestTaskSchema.getDefault().KEYWORDS.getKey())
+ .add(BugzillaRestTaskSchema.getDefault().RESET_QA_CONTACT.getKey())
.build();
class TaskAttributeTypeAdapter extends TypeAdapter<OldAttributes> {
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskSchema.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskSchema.java
index 1cf478396..677bd131e 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskSchema.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskSchema.java
@@ -148,6 +148,9 @@ public class BugzillaRestTaskSchema extends AbstractTaskSchema {
public final Field DATE_MODIFICATION = inheritFrom(parent.DATE_MODIFICATION).create();
+ public final Field RESET_QA_CONTACT = createField("reset_qa_contact", "Reset QA Contact to default",
+ TaskAttribute.TYPE_BOOLEAN, Flag.PEOPLE);
+
@Override
public void initialize(TaskData taskData) {
for (Field field : getFields()) {

Back to the top