coolcrowd / object-service

Central API service.
Apache License 2.0
0 stars 1 forks source link

db: fixed bug #319

Closed LeanderK closed 8 years ago

LeanderK commented 8 years ago

this commit fixes a bug in a query: Unknown column 'sum' in 'where clause'

mention-bot commented 8 years ago

By analyzing the blame information on this pull request, we identified @kelunik, @marcelhollerbach and @lucaskrauss to be potential reviewers

kelunik commented 8 years ago

You could really start writing your DB fixes as Fix WorkerOperations.getWorkerWithCreditBalanceGreaterOrEqual in commit messages.

LeanderK commented 8 years ago

well i had like 2 seconds of time, also who reads commit messages? ;)

kelunik commented 8 years ago

Everybody using git blame and git log.

marcelhollerbach commented 8 years ago
LeanderK commented 8 years ago

haha i just wanted to refer to git blame...i think its simple and expresses what i did. When i am using git blame i already know what code i am looking at, so Fix WorkerOperations.getWorkerWithCreditBalanceGreaterOrEqualdoes not make much sense i think. I could add it after a few lines in case some strange person really reads them, but i don't think this is useful, one could just look at the diff. Especially in git blame long titles are confusing i think.

kelunik commented 8 years ago

Not git blame by default, but in e.g. GitHub's interface. It's also quite handy when reviewing commits when doing a deploy or tagging a new version and writing a summary of fixes, e.g. viewing https://github.com/coolcrowd/object-service/compare/841c83598c014cac6b1e61af3ccf42bc99450de4...master It's fine when looking at the extended message, but it could have been just without the first line, so it would appear directly as Fixed Unknown column 'sum' in 'where clause'.

marcelhollerbach commented 8 years ago

githubs interfaces != git blame.

and also if you want to write a summary of fixes you maybe dont want to know that WorkerOperations.getWorkerWithCreditBalanceGreaterOrEqual is fixed, since this is telling nobody anything. Maybe the result of the issue could be written into the message but really NOT the class+function name.

kelunik commented 8 years ago

Almost everything is better for an overview than db: fixed bug ;-)

marcelhollerbach commented 8 years ago

But definitly not "Fixed WorkerOperations.getWorkerWithCreditBalanceGreaterOrEqual".

LeanderK commented 8 years ago

i don't think that db: fixed bug is bad. when i look at a bug i want to know what was going on in git blame and it servers that purpose. I changed 2 lines, not much to justify, i just fixed a bug. And which method i changed, thats what the diff is for. Also Fixed WorkerOperations.getWorkerWithCreditBalanceGreaterOrEqual is really long and i don't understand the benefit over fixed bug