Skip to content
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

Deployment #389

Merged
merged 99 commits into from
Oct 29, 2021
Merged

Deployment #389

merged 99 commits into from
Oct 29, 2021

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented Oct 29, 2021

eirikamb and others added 30 commits February 3, 2021 18:02
# Conflicts:
#	faq/admin.py
#	faq/forms.py
#	faq/templates/faq/admin_question_list.html
#	faq/views.py
The reason for this is that the two tags can be useful to use in contexts other than the "semantic_ui_calendar".

Also renamed them.
Also removed `overview.py`, as it's now empty.
They now more closely follow the names of Django's generic views, like `ListView` and `DetailView` (with matching path names).
Because overriding the blocks in child templates does not overwrite all of the contents of the `<head>` tag or existing scripts, but adds additional content to them.
Also moved links to stylesheets and scripts in all `header.html`s to the respective `base.html`'s `<head>` tag.
Also moved linking `delete_modal.js` to `base.html`.
# Conflicts:
#	locale/nb/LC_MESSAGES/django.mo
#	locale/nb/LC_MESSAGES/django.po
#	make_queue/models/reservation.py
#	make_queue/templates/make_queue/machine/machine_edit.html
#	make_queue/tests/views/test_machine_views.py
#	make_queue/urls.py
#	make_queue/views/admin/course.py
#	news/tests/views/test_article_views.py
#	news/tests/views/test_event_time_place_views.py
#	web/templates/web/index.html
#	web/tests/tests.py
#	web/urls.py
...when not logged in. They will redirect the user to the login page if clicked on.
In addition to general logic improvements in `dataporten/views.py`, the user's username is now also extracted from the social data,
and prioritized over the username from LDAP.

Also added checks of whether the values for updating `first_name`/`last_name`/`ldap_full_name`/`username` exist or not, before saving the user.

Also, removed the unused (and deprecated) requirement `python-social-auth`.
This fixes the bug that occurred when looking up the quotas of a user with e.g. and underscore in their name, as it didn't match the regex of the
`UserByUsername` converter.

Also removed the `UserByUsername` converter, now that it's not used anymore.
...for removing old files and images when a model object is changed or deleted.
After a page refresh of the course registration list, without changing the sorting or filtering: If the order of the users from the template context
differed from the order that they would appear in after being sorted with the `sort()` function, the rows that were "out of place" would disappear
when selecting them (they would actually just "jump" to their proper place - determined by the `sort()` function - which often happened to be on
another list page). This has now been fixed by sorting the list on page load.
Markus Ho-Yen and others added 19 commits October 27, 2021 21:45
…-admin

# Conflicts:
#	faq/templates/faq/admin_question_list.html
#	faq/urls.py
#	faq/views.py
#	locale/nb/LC_MESSAGES/django.mo
#	locale/nb/LC_MESSAGES/django.po
Co-authored-by: Anders <6058745+ddabble@users.noreply.github.com>
Also reordered some of the views' fields.
This was for consistency, as the styling made the title have a slightly larger bottom margin than most other admin pages.
The new code utilizes more of the built-in classes in Fomantic-UI.
This fixes the bug that made them look like they were "extended" without having clicked any of the accordion elements.
The FAQ page is now also not listing categories with no questions.
They now lead to their respective admin list pages, instead of the FAQ admin panel.
@ddabble ddabble added hacktoberfest-accepted deployment Pull requests from another branch (usually `dev`) into the `main` branch labels Oct 29, 2021
@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #389 (ae2d774) into master (9c2a17e) will increase coverage by 0.39%.
The diff coverage is 83.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #389      +/-   ##
==========================================
+ Coverage   83.31%   83.71%   +0.39%     
==========================================
  Files         119      118       -1     
  Lines        3770     3837      +67     
==========================================
+ Hits         3141     3212      +71     
+ Misses        629      625       -4     
Impacted Files Coverage Δ
announcements/urls.py 100.00% <ø> (ø)
checkin/templatetags/checkin_tags.py 71.42% <0.00%> (ø)
checkin/urls.py 100.00% <ø> (ø)
checkin/views.py 35.92% <ø> (ø)
contentbox/urls.py 100.00% <ø> (ø)
dataporten/social.py 52.77% <0.00%> (-10.56%) ⬇️
docs/urls.py 100.00% <ø> (ø)
faq/urls.py 100.00% <ø> (ø)
groups/urls.py 100.00% <ø> (ø)
internal/templatetags/member.py 91.30% <ø> (ø)
... and 42 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 9c2a17e...ae2d774. Read the comment docs.

Copy link
Member

@sigridge sigridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

When I go to register for an event I get this error. The ticket gets reserved, so I'm assuming this is because of the email that would get sendt.

@ddabble
Copy link
Member Author

ddabble commented Oct 29, 2021

@sigtheidiot Ah, yes, I've seen the same error before on my machine as well, though it should not happen on the server 🙂 It's "fixed" in #360 (specifically f99184f8382a46f872d355d337dfaf3c20f76a3e) 🤠

@sigridge
Copy link
Member

@sigtheidiot Ah, yes, I've seen the same error before on my machine as well, though it should not happen on the server 🙂 It's "fixed" in #360 (specifically f99184f8382a46f872d355d337dfaf3c20f76a3e) 🤠

Perfect, then i'll go and approve

@ddabble ddabble merged commit 7a5b512 into master Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Pull requests from another branch (usually `dev`) into the `main` branch hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants