Re: Filtering by type




On Mon, 24 Jan 2011 15:49:03 +0000, Iago Toral <itoral igalia com> wrote:
On Mon, 24 Jan 2011 16:24:08 +0100, "Juan A." Suárez Romero
<jasuarez igalia com> wrote:
On Mon, 2011-01-24 at 14:58 +0000, Iago Toral wrote:

 So summing up, my opinion is that we should discard the idea of
filtering using flags and focus only on adding the filter API. Sorry that I did not mention this explicitly in the email were I proposed
to
 add a filtering API, I thought it would be obvious that it was
intended
 to be a complement of this option.


The proposal was a quick way of restricting results to a type of objects
that I'm interesting it, with no changes in the api. And it wasn't
intended as an alternative or replacement of your proposal. In this
case, for other types of filter (by date, by artist, whatever), user
would need to use your proposal.

Once you realize that you need to change the API to cover the basic
cases, a proposal that does not change the API and cover less than the
basic cases does not make sense any more.

Just in case my point is not clear: the idea of using the flags was ok until the moment we realized we needed to change the API and add support for more things. At that point, the flags idea stopped making sense any more, because its main purpose was to prevent the API change and the thing it resolved was a subset of what the filter API would permit anyway.

Iago


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]