| Summary: | add support for custom priority levels (ie. if not using P1-P5) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Elliott Baron <ebaron> | ||||||
| Component: | Mylyn | Assignee: | Frank Becker <eclipse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P1 | CC: | eclipse, joakim.lundborg, kendl, peter.kullmann, rahul.som, robert.elves, rsbecker, steffen.pingel, thomas.g.hatley | ||||||
| Version: | unspecified | Keywords: | noteworthy, plan | ||||||
| Target Milestone: | 3.7 | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Elliott Baron
Specifically, mouse-over the bug in the task list to see Priority: P3 Assuming the order of priorities returned in the configuration is consistent with the priority order of a regular install, we should be able to map them directly to the mylyn P1-P5 more appropriately. This will require additional support in the client for holding these custom priorities and sending the appropriate value back to the server upon submission. *** Bug 260982 has been marked as a duplicate of this bug. *** *** Bug 289729 has been marked as a duplicate of this bug. *** *** Bug 271069 has been marked as a duplicate of this bug. *** *** Bug 283477 has been marked as a duplicate of this bug. *** I recommend using the same strategy as the Trac connector: Each custom priority value is mapped to P1-P5 based on it's rank. The implementation is in TracRepositoryConnector.getTaskPriority(String priority, TracPriority[] tracPriorities). I like that approach, Steffen Now I have fixed the failing tests. So we can close this. Created attachment 204805 [details]
mylyn/context/zip
I got this exception while opening bug 168204 in a debug workspace. Frank, can you please look into this and add a test case? Thanks! !ENTRY org.eclipse.mylyn.tasks.ui 4 0 2011-10-15 00:05:37.991 !MESSAGE Error creating task editor part: "org.eclipse.mylyn.tasks.ui.editors.parts.summary" !STACK 0 java.lang.NullPointerException at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector$1.getPriorityLevel(BugzillaRepositoryConnector.java:669) at org.eclipse.mylyn.internal.tasks.ui.editors.PriorityAttributeEditor.updateEditor(PriorityAttributeEditor.java:85) at org.eclipse.mylyn.internal.tasks.ui.editors.PriorityAttributeEditor.refresh(PriorityAttributeEditor.java:67) at org.eclipse.mylyn.internal.tasks.ui.editors.PriorityAttributeEditor.createControl(PriorityAttributeEditor.java:52) at org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorSummaryPart.addAttributeWithIcon(TaskEditorSummaryPart.java:110) at org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorSummaryPart.createControl(TaskEditorSummaryPart.java:171) at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage.initializePart(AbstractTaskEditorPage.java:1301) at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage.access$7(AbstractTaskEditorPage.java:1293) Steffen, I can not reproduce this! But I have create review http://review.mylyn.org/85. I did not know why the configuration is null here. But I create an fallback to the default Levels in this case. Created attachment 205264 [details]
mylyn/context/zip
Thanks. Can you add a test case for the mapping? Tests are now under review in Patch Set 2 of the review Steffen, I have "Publish and Submit" the Patch Set 2 but I can not found it in the http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.tasks.git/ Do you know what is the reason for this? The Gerrit instance is not connected to the Eclipse.org Git repository, it works of a mirror that is updated frequently. To merge a change you have to push it to Eclipse: http://dev.eclipse.org/mhonarc/lists/mylyn-dev/msg01414.html. changes are now commited, so i close this bug. |