MAKENTNU / web

The website of the student organization MAKE NTNU, built with Django.
https://makentnu.no
MIT License
9 stars 5 forks source link

Template refactorization + internal home page + model history #359

Closed ddabble closed 2 years ago

ddabble commented 3 years ago

Depends on #358, and should change base to dev after that PR has been merged.

Main highlights

Additional highlight

codecov[bot] commented 3 years ago

Codecov Report

Merging #359 (94ca09c) into dev (c7a25b5) will increase coverage by 4.05%. The diff coverage is 94.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #359      +/-   ##
==========================================
+ Coverage   83.15%   87.21%   +4.05%     
==========================================
  Files         124      128       +4     
  Lines        4357     4801     +444     
==========================================
+ Hits         3623     4187     +564     
+ Misses        734      614     -120     
Impacted Files Coverage Δ
make_queue/views/api/reservation.py 100.00% <ø> (ø)
web/views.py 96.77% <ø> (-0.11%) :arrow_down:
docs/forms.py 59.09% <36.84%> (-18.69%) :arrow_down:
make_queue/forms.py 86.95% <78.04%> (+5.13%) :arrow_up:
docs/views.py 85.34% <80.00%> (+6.09%) :arrow_up:
util/auth_utils.py 88.00% <87.50%> (-12.00%) :arrow_down:
web/widgets.py 94.16% <88.88%> (-4.32%) :arrow_down:
util/view_utils.py 90.66% <90.27%> (-9.34%) :arrow_down:
internal/views.py 89.54% <98.48%> (+4.08%) :arrow_up:
announcements/views.py 100.00% <100.00%> (ø)
... and 64 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c7a25b5...94ca09c. Read the comment docs.

ddabble commented 2 years ago

@Maisergodt

  • When editing existing content boxes on the main page, the English section is gone.

Yes, that's on purpose (see 4ad67b746320bff1fa96ece77be22250f18af006), as it removes the hassle of translating all of the text and copying code from one language to the other 😊 Besides, all members are required to be able understand written Norwegian anyway 😅 EDIT: I read too quickly, and realize now that you said "on the main page", and what I was talking about above was for the internal home content box 😅 But this makes things even more weird than what I mentioned below, as only the internal home content box should have one language - all the other content boxes should not have changed, and neither the tests nor my local test server show that this is not the case 😮 Has maybe something unusual happened to your local code or database, or should we try to reproduce the discrepancy on more machines? 🤔

  • Additionally when trying to save a content box, an error message is raised. The same behavior goes for the content box on the internal page as well.

Hm, that's weird, as I've written tests that explicitly test this case for the internal home content box (see internal/tests/test_views.py), and I'm unable to reproduce the error you're getting (even when manually clearing the value of both languages in my local database, which I thought could be the cause) 🤔

Maisergodt commented 2 years ago

@ddabble

Hm, that's weird, as I've written tests that explicitly test this case for the internal home content box (see internal/tests/test_views.py), and I'm unable to reproduce the error you're getting (even when manually clearing the value of both languages in my local database, which I thought could be the cause) 🤔

The tests for internal content box are working, I spoke to quickly. It does indeed work for the content box on the internal page as intended, but the bugs on the main page still holds.

Has maybe something unusual happened to your local code or database, or should we try to reproduce the discrepancy on more machines?

I can debug it thoroughly later today/this weekend and spot if anything is unusual on my end. It does not hurt if other members could test it as well 👀

ddabble commented 2 years ago

@Maisergodt I'm fairly positive that it's been fixed now, would you mind testing again? 😊