intel / dleyna-control

dLeyna-control is a Digital Media Player written in python to demonstrate how to use the dleyna DMS APIs. It detects Digital Media Servers on the local area network and allows users to browse, search and play their contents.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
8 stars 12 forks source link

[Search] Refactor: implement asynchronous search #7

Closed jku closed 11 years ago

jku commented 11 years ago

To prevent UI from blocking and to prevent excessive searches, the custom model needs to be refactored to not do synchronous searches in on_get_value().

This is achieved by

The commit is fairly large, but I did not see a way to do this in parts and still keep the in-between commits functional.

Fixes #2

Signed-off-by: Jussi Kukkonen jussi.kukkonen@intel.com

jku commented 11 years ago

With regards to discussion in the corresponding media-service-demo bug:

jku commented 11 years ago

This sounds fine to me. Although it ruins the commit author info, doesn't it? Is this why you guys use signed-off-by everywhere?

markdryan commented 11 years ago

Actually, we use signed-off everywhere because we are encouraged to do so by the 01.org guidelines.

https://01.org/community/participation-guidelines

And you are correct about the committer. If I squash two patches submitted by someone else, I am listed as the committer. The author is however still set to the original author. You can see this if you look in the commit logs in github. Squashed commits have both a committer and an author whereas as non squashed commits only have an author.

I hadn’t realised this before. Do you think this is a problem? If so perhaps we should stop doing this.


Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

markdryan commented 11 years ago

You should update the Authors file as well.

markdryan commented 11 years ago

So Jussi, what should I do? Should I squash?

jku commented 11 years ago

On 6 March 2013 14:35, markdryan notifications@github.com wrote:

Actually, we use signed-off everywhere because we are encouraged to do so by the 01.org guidelines.

https://01.org/community/participation-guidelines

That makes a bit more sense -- I didn't know we had a "certificate of origin" and without it having Signed-off-by didn't make sense.

And you are correct about the committer. If I squash two patches submitted by someone else, I am listed as the committer. The author is however still set to the original author. You can see this if you look in the commit logs in github. Squashed commits have both a committer and an author whereas as non squashed commits only have an author.

I hadn’t realised this before. Do you think this is a problem? If so perhaps we should stop doing this.

Ah, that's true: the author of the squashed commit is the original author and not the "squasher". I didn't know that, that's very clever of git. I have no problems with the process in that case, I think it's just fine.

markdryan commented 11 years ago

Squashed and pushed. Thanks.