New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix challenges order #101
Fix challenges order #101
Conversation
Така нещата ми изглеждат доста по-добре :) Аз лично не държа да squash-ваме commit-ите, но @skanev спомена нещо? |
This is done to match the same order used in tasks.
Върнах старите имена по желание на Стефан, оправих индентацията и squash-нах всичко до един commit защото вече нямаше смисъл от останалите. |
Къде е станала тази дискусия? |
Върху commit-a който изтрих защото revert-нах промените му (преименоването) и само замърсяваше историята. Аргумента му беше че за тест с повече от 2 challenge-а няма подходящо име за третия. Освен това явно е конвенция в проекта да се именоват подобни ситуации first/second. |
@KristianTashkov Мерси за информацията. Това е добра бележка, между другото, какви са недостатъците да се коментира на commit, а не в diff-а тук и какви са недостатъците да се squash-ва. В сходна ситуация в бъдеще, аз не бих squash-нал, за да запазя тази дискусия и аргументация там. Иначе, мисля, че сме окей за merge. Нека @skanev има честта :) А аз ще се разплатя с теб формално. |
it "can fetch all visible records, sorted in reverse chronological order" do | ||
second = create :visible_challenge, created_at: 3.days.ago | ||
it "can fetch all visible records, sorted in chronological order" do | ||
first = create :visible_challenge, created_at: 3.days.ago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тук си развалил идентацията ;D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
преди it-а са 2 , преди first 4 space-a, това е ок? За това че равното не е подравнено с долното ли говориш?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
За същото. Било е така, няма нужда да го убиваш :)
Оправих я :) |
Перфектно 👍 |
Sort challenges by ascending create date so it matches the order in tasks.