Skip to main content

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

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 the user reuses a query title, I would guess that he
probably did that by mistake.

Or are other connectors handling this themselves in their
AbstractRepositoryQueryPage?  I had some trouble testing it with one of
my other task repositories here.  I'll give it a try again today, but it
seems like query name collision detection is something that could be
better centralized in tasks.core.

(Apologies if I double post this question.  I got a strange error last
time I tried to send it.)

--
Tom Bryan <tombry@xxxxxxxxx>
Cisco Systems


Back to the top