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

Rename various things #648

Merged
merged 9 commits into from
May 5, 2023
Merged

Rename various things #648

merged 9 commits into from
May 5, 2023

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented May 5, 2023

Proposed changes

Improvements

  • Added a title to the quota admin panel, and switched out the "Add new quota" button for a green plus button, like other admin panel pages (057f2f9)

Other changes

Areas to review closely

References to the renamed code that I might have forgotten to update.

Checklist

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

  • Created tests that fail without the changes, if relevant/possible
  • Made sure that your code conforms to the code style guides and that any common code smells have been addressed
    • (It's not intended that you read through this whole document, but that you get yourself an overview over its contents, and that you keep it in mind while taking a second look at your code before opening a pull request)
  • Added sufficient documentation - e.g. as docstrings or in the README, if suitable
  • Added your changes to the "Unreleased" section of the changelog - mainly the changes that are of particular interest to users and/or developers, if any
  • Added a "Deployment notes" section above, if anything out of the ordinary should be done when deploying these changes to the server

Including some changes that also change semantics in minor ways:
* [CONTRIBUTING.md] Replaced the examples with the custom path converters previously removed in a5eaf62
* [profile_detail.html] The script tags in `extra_head` are now only rendered if the user has the
  `internal.is_internal` permission, as they're only used for code in `profile_detail_internal.html` anyway
* [internal/models.py] Removed the TODO comment and created an issue for it instead
  (#643)
* [admin_event_detail.html + admin_event_ticket_list.html] Added missing `font-size` styling, to make the titles match
  the ones in the other admin panel pages
Also switched out the "Add new quota" button for a green plus button, like most of the other admin panel pages.
Also renamed some CSS and JavaScript files to match the changed name of their templates.
Also renamed its `front_page` path to `index_page`.
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #648 (5d12ebc) into dev (ce716e9) will increase coverage by 0.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #648      +/-   ##
==========================================
+ Coverage   87.38%   87.39%   +0.01%     
==========================================
  Files         135      135              
  Lines        5714     5719       +5     
==========================================
+ Hits         4993     4998       +5     
  Misses        721      721              
Impacted Files Coverage Δ
src/announcements/urls.py 100.00% <ø> (ø)
src/checkin/urls.py 100.00% <ø> (ø)
src/contentbox/models.py 78.78% <0.00%> (ø)
src/docs/urls.py 100.00% <ø> (ø)
src/faq/urls.py 100.00% <ø> (ø)
src/groups/urls.py 100.00% <ø> (ø)
src/mail/email.py 43.90% <ø> (ø)
src/make_queue/urls.py 100.00% <ø> (ø)
src/news/urls.py 100.00% <ø> (ø)
src/checkin/views.py 44.57% <57.89%> (ø)
... and 35 more

{% url 'front_page' as front_page_url %}
<a href="{% get_absolute_uri_for_path request front_page_url %}" target="_blank">
{% url 'index_page' as index_page_url %}
<a href="{% get_absolute_uri_for_path request index_page_url %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
{{ ticket.timeplace.event.title }}:
{{ ticket.timeplace.start_time.date }}
</a>
{% else %}
<a href="{% url 'event_ticket_list' ticket.event.pk %}" target="_blank">
<a href="{% url 'admin_event_ticket_list' ticket.event.pk %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
@@ -19,12 +19,13 @@
{% for ticket in user.tickets %}
<li class="{% if not ticket.active %}canceled{% endif %}">
{% if ticket.timeplace %}
<a href="{% url 'timeplace_ticket_list' ticket.timeplace.event.pk ticket.timeplace.pk %}" target="_blank">
<a href="{% url 'admin_time_place_ticket_list' ticket.timeplace.event.pk ticket.timeplace.pk %}"

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
@@ -38,21 +38,21 @@
{% endif %}
</div>

<a class="calendar-link" href="{% url 'timeplace_ical' news_obj.pk occurrence.pk %}" target="_blank">
<a class="calendar-link" href="{% url 'time_place_ical' news_obj.pk occurrence.pk %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.

<div class="time-place content">
<a class="calendar-button" href="{% url 'timeplace_ical' time_place.event.pk time_place.pk %}" target="_blank">
<a class="calendar-button" href="{% url 'time_place_ical' time_place.event.pk time_place.pk %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
@ddabble
Copy link
Member Author

ddabble commented May 5, 2023

Regarding the Code Climate status check, I set it up recently on their website, but it seems like it maybe needs some tweaking 🤔 Anyway, none of the issues it lists are actually caused by changes in this PR, as things have simply been renamed/moved, so I will ignore them for this PR.

@ddabble
Copy link
Member Author

ddabble commented May 5, 2023

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.

@ddabble ddabble merged commit f5a32bb into dev May 5, 2023
@ddabble ddabble deleted the cleanup/rename-various-things branch May 5, 2023 22:25
@Gunvor4 Gunvor4 mentioned this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant