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 #567

Merged
merged 31 commits into from
Oct 28, 2022
Merged

Deployment #567

merged 31 commits into from
Oct 28, 2022

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented Oct 28, 2022

dependabot bot and others added 30 commits July 19, 2022 21:23
Bumps [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) from 8.12.51 to 8.12.52.
- [Release notes](https://github.com/daviddrysdale/python-phonenumbers/releases)
- [Commits](daviddrysdale/python-phonenumbers@v8.12.51...v8.12.52)

---
updated-dependencies:
- dependency-name: phonenumbers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
...after 0a6fdd0, in which the `site` context variable was replaced with `get_absolute_uri_for_path`
in `ticket.html` and `ticket.txt`.
...after replacing the `site` context variable with `get_absolute_uri_for_path` in `ticket.html` and `ticket.txt`
(in 0a6fdd0).
...and replaced some uses of `format_html()` with the new tag.
Among other things, added the ticket's preferred language and comment to `ticket.html` and `ticket.txt`,
and added the ticket UUID to `ticket.txt`.
This makes it possible to see the emails that are sent, as sending emails the standard way will normally fail when developing locally.
This made `MultiLingualTextStructure`s always equal each other, which caused `django-simple-history` to delete previous versions of objects
(where only `MultiLingualTextStructure`-based fields were changed, like `ContentBox.content`) when running the `clean_duplicate_history` command.
...which are - among other places - used in the "Add New Member" form.

The standard widget attributes (through the `attrs.html` template) should generally always be placed on the "real" `<input>` tag holding the value
that will be submitted for the form field, and not the (usually dynamically created) `.search` input tag.

What seems to be a downside of this bugfix, is that the "Please fill out this field." error message (preventing the form from being submitted)
is no longer shown when trying to submit a form with a required field using this widget. Instead, an error message is shown after submitting the form
and the page is reloaded.
However, giving the `.search` input tag a `required` attribute (which is what enables the "Please fill out this field." error message) does not seem
to be the intended usage anyway, as it's not mentioned anywhere in the docs (https://fomantic-ui.com/modules/dropdown.html), and it causes this bug.
Disregarded the line length for the checkboxes under the "Checklist" section,
as the previously wrapped lines were also being displayed as wrapped on GitHub,
which seems to be a bug with GitHub.
This makes the headers stick slightly more out, to make them easier to spot among all the other text.
...as this will use the newest minor/patch version of the major version.
Some hotfixes + small Markdown reformat
This will be used to automatically add PRs and issues from this repo (https://github.com/MAKENTNU/web)
to the repo's Project (Kanban board) https://github.com/orgs/MAKENTNU/projects/1.
Also had to pass the `-r` flag to the existing `jq` calls,
as the environment variables set in the "Get project data" step contained quotation marks,
which were apparently parsed literally when using them as arguments in the `jq` calls in the "Get project item data" step.

This was immensly useful for figuring out the API: https://docs.github.com/en/graphql/overview/explorer
...combined with the following part of the docs, even though it didn't describe finding info about *specific* items:
https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects#finding-information-about-items-in-a-project
This will be customized for equivalent use with issues, in an upcoming commit.
...instead of pull requests.
@ddabble ddabble added the deployment Pull requests from another branch (usually `dev`) into the `main` branch label Oct 28, 2022
{% translate "If you want to cancel your registration, you can do so by going to" %}
<a href="{% get_absolute_uri_for_path request cancel_url %}">{% translate "this page" %}</a>.
{% translate "If you want to cancel your registration, you can do so by visiting the following page" %}:
<a href="{% get_absolute_uri_for_path request cancel_url %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
<img src="{{ site }}{{ ticket.registered_event.image.url }}"
style="width: 100%;" alt="{{ ticket.registered_event.image_description }}"
/>
<a href="{{ event_url }}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
style="width: 500px; max-width: 100%;" alt="{% translate "MAKE NTNU's logo" %}"
/>
{% url 'front_page' as front_page_url %}
<a href="{% get_absolute_uri_for_path request front_page_url %}" target="_blank">

Check warning

Code scanning / CodeQL

Potentially unsafe external link

External links without noopener/noreferrer are a potential security risk.
@codecov
Copy link

codecov bot commented Oct 28, 2022

Codecov Report

Merging #567 (6333885) into main (adf40ce) will decrease coverage by 0.03%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##             main     #567      +/-   ##
==========================================
- Coverage   88.50%   88.46%   -0.04%     
==========================================
  Files         132      132              
  Lines        5507     5514       +7     
==========================================
+ Hits         4874     4878       +4     
- Misses        633      636       +3     
Impacted Files Coverage Δ
contentbox/models.py 78.78% <0.00%> (ø)
web/multilingual/data_structures.py 97.61% <ø> (+2.16%) ⬆️
news/views.py 90.44% <50.00%> (-0.90%) ⬇️
mail/email.py 42.85% <100.00%> (+6.27%) ⬆️
make_queue/admin.py 100.00% <100.00%> (ø)
news/admin.py 93.45% <100.00%> (-0.04%) ⬇️
util/admin_utils.py 88.09% <100.00%> (-0.28%) ⬇️
util/templatetags/html_tags.py 100.00% <100.00%> (ø)
util/logging_utils.py 66.66% <0.00%> (-33.34%) ⬇️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ddabble
Copy link
Member Author

ddabble commented Oct 28, 2022

Merging without approval, for the same reasons mentioned in the last comment in each of the listed PRs.

@ddabble ddabble merged commit 6374f2f into main Oct 28, 2022
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant