MAKENTNU / web

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

Make some views use URL query parameters instead of distinct paths #650

Closed ddabble closed 1 year ago

ddabble commented 1 year ago

Proposed changes

Changed multiple pages' URLs to use query parameters, instead of having multiple distinct paths for practically the same page.

Here's an exhaustive list of all affected URLs:

Also refactored the following views to use the newly added QueryParameterFormMixin (bca894670afa2381e942162854911da0ec31cd16):

Also made all JsonResponses use UTF8 as encoding instead of ASCII (28f86df49c9df3e5c40ff75431090a749c1edac8).

Areas to review closely

That all the changed views still work as intended, and that changing the encoding of JsonResponses to UTF8 doesn't cause any unforeseen bugs.

Checklist

(If any of the points are not relevant, mark them as checked)

codecov[bot] commented 1 year ago

Codecov Report

Merging #650 (82631fa) into dev (82631fa) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 82631fa differs from pull request most recent head f70538e. Consider uploading reports for the commit f70538e to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #650   +/-   ##
=======================================
  Coverage   87.72%   87.72%           
=======================================
  Files         148      148           
  Lines        5937     5937           
=======================================
  Hits         5208     5208           
  Misses        729      729           
ddabble commented 1 year ago

Merging without explicit approval from another member, as the Dev committee previously agreed to merge these changes and assume they're relatively bug-free, simply to get things done quicker.