Community
Participate
Working Groups
If connector returns false on canCreateTaskFromKey, the task key field is disabled in the Task Search page. However if one uses the "Search repository key or summary" action in the task list, that field gets auto-populated even though it's disabled, and in turn disabling the rest of the search page. Usually hitting the clear button (or, in Leo's case, switching repositories) can resolve the state of disablement, but I think that it the field is disabled, it shouldn't even get the task key from the task list in the first place
I wont have time currently to provide a patch, also not entirely sure on how to fix this (due to the repository being able to change, and thus the enablement, but the task key field content remains the same). Also not sure if one goes through the list of repos, reaches one that can't do that lookup, and the field gets clears, it's weird, especially if he did not intent to query that repository. Maybe disablement of that key field should lead to not disabling the query page controls? That would mean changing line 221 from @if (keyText.getText() != null && keyText.getText().trim().length() > 0) {@ to @if (keyText.getText() != null && keyText.getText().trim().length() > 0 && keyText.isEnabled()) {@ It appears updatePageEnablement is called after the right values are set and the right query page is displayed, so that could work.
Created attachment 205144 [details] mylyn/context/zip
Thanks Thomas. That needs to be fixed. We should also improve validation of search keys while looking at this. Gerrit for instance allows searching for non numeric ids which are currently ignored when opening the page.
Steffen: Not a plan item?
I have removed the plan keyword. This must have dropped from the release to the release backlog. Now it's back in the backlog.
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn