Kekun / gnome-games

Moving to gnome.org — A game manager application for GNOME
https://git.gnome.org/browse/gnome-games/
GNU General Public License v3.0
21 stars 4 forks source link

tracker: Split result handling from game creation #299

Closed rgascons closed 8 years ago

Kekun commented 8 years ago

Here are the commit message rules: https://wiki.gnome.org/Git/CommitMessages

To these rules we add some others (that you couldn't know so no worries), here is a list out of my head:

Here is what I would write for this commit:

tracker: Split result handling from game creation

Replace the each_game_for_query() method of TrackerGameSource and its
subtypes by the process_cursor() and foreach_game() methods.

This unties the number of tracker query results from the number of
produced games, avoiding useless errors in case of invalid query result
and allowing to build a game from multiple results, for example for
multi-disc games.
rgascons commented 8 years ago

I'm taking note of these extra guidelines, thanks! Applying the commit message you have suggested to the PR.

Kekun commented 8 years ago

I though we decided to use this as the commit message, am I wrong?

tracker: Split result handling from game creation

Replace the each_game_for_query() method of TrackerGameSource and its
subtypes by the process_cursor() and foreach_game() methods.

This unties the number of tracker query results from the number of
produced games, avoiding useless errors in case of invalid query result
and allowing to build a game from multiple results, for example for
multi-disc games.
Kekun commented 8 years ago

Besides that, it looks good.

rgascons commented 8 years ago

Closing with https://github.com/Kekun/gnome-games/commit/68bdb83d36ff48234b06eb8e8dbf121f75061048