Open JarUrb opened 7 years ago
@JarUrb Cześć, po pierwsze miło Ciebie widzieć i super, że ktoś się angażuje!
Druga sprawa jest taka, że ten akurat PR nie przechodzi testów na Travisie (https://travis-ci.org/stxnext-csr/volontulo/builds/174596430) i w tym sensie nikt tego nie zmerdżuje.
No i trzecia kwestia, turaj raczej to już w ogóle nie pracuje, całą zaangażowaną ekipą przenosimy się do @CodeForPoznan, więc jeżeli będziesz chciał nad tym projektem popracować w kilka osób, to pewnie dobrze byłoby, gdybyś tam wystawiał PR i zgłaszał błędy.
Mamy tam jeszcze kilka rzeczy do dociągnięcia (chociażby skonfigurować poprawnie gittera i travisa), ale to typowe choroby wieku dziecięcego i pewnie niedługo ruszymy dosyć sprawnie.
Daj znać co o tym myślisz.
pzdr
@@ master #582 diff @@
==========================================
Files 53 56 +3
Lines 2073 2099 +26
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 1892 1918 +26
Misses 181 181
Partials 0 0
Powered by Codecov. Last update 5a7a192...eed92e5
Cześć @magul.
Chciałem się zająć którymś z wcześniej zgłoszonych błędów, ale nie miałem zbyt wiele czasu, żeby się wgryźć w kod i połapać, o co w tym wszystkim chodzi. Będę jednak próbował porobić coś w projekcie.
Pozdrawiam.
Bug id: https://github.com/stxnext-csr/volontulo/issues/581
Reference person: @JarUrb
Description:
When user is created using
manage.py createsuperuser
, user's profile isn't created. It can lead to internal server errors (HTTP 500).In commit 2bdb371437d121d73739b981f39b1906c6377606 I added test to show that case. That test would fail without changes in commit bb924b50fffe51093e1ae87cfbf84894539d0797. I also had to fix other tests in commit 1e5d85ced5ccf056874d85f98e961fe4f7cd3f73.
I know that some people don't like signals, but without this change we would have to deal with inconsistent data (i.e. user without corresponding UserProfile) or solve the problem another way (e.g. by subclassing Django's User model and overriding
save()
method) or forbid usingmanage.py createsuperuser
entirely.