Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] Creating a query with a duplicate name

Hi Tom,

To date, connectors have been handling conflicts of this nature in the query page ui. As you point out, this is not ideal and we are improving this for Mylyn 3.0. The framework will guard against handle conflicts of this nature and throw the appropriate exceptions where necessary. To follow resolution of this issue, consider adding yourself to the cc:

  234767: make sure handles are unique within task list
  https://bugs.eclipse.org/bugs/show_bug.cgi?id=234767


-Rob


Tom Bryan (tombry) wrote:
While testing my connector, I noticed some odd behavior when creating
queries for the repository.
If the user creates a query named "My bugs" for the repository, and then
he creates a new query with different criteria that is also named "My
bugs", the existing "My bugs" query is replaced with the new query.
That is, there is no error, but the properties for the "My bugs" query
now show the query criteria that were entered with the most recent New
Query dialog.

Is that normal behavior for a connector?  I wouldn't have expected Mylyn
to replace my old query silently like that.  That is, when creating a
*new* query, if I reuse a query title, it was probably a mistake, right?

Or are other connectors handling this themselves in their
AbstractRepositoryQueryPage?  It seems like collision detection is
something that could be better centralized by the Task List itself.

--
Tom Bryan <tombry@xxxxxxxxx>
Cisco Systems
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators



--
Robert Elves
Mylyn Committer, http://eclipse.org/mylyn



Back to the top