esrg-knights / Squire

A re-introduction of the WebApp for ESRG Knights of the Kitchen Table.
https://www.kotkt.nl/
GNU General Public License v3.0
11 stars 8 forks source link

Show private activities too on calender when logged in #333

Open LenaWil opened 1 year ago

LenaWil commented 1 year ago

Otherwise they are so hidden that it is useless. I am still working on the pr, but what do y’all think?

(I couldn’t quickly find where to set the user in the test)

Todo:

LenaWil commented 1 year ago

You can set a user there through self.client.force_login(<user>).

How do you log out an user, self.client.force_login(None)?

Edit: logout().
Didn’t see that. 😅

codecov[bot] commented 1 year ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (308b47e) 95.84% compared to head (a0d7407) 95.81%. Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #333 +/- ## ========================================== - Coverage 95.84% 95.81% -0.04% ========================================== Files 161 161 Lines 7118 7137 +19 Branches 1166 1169 +3 ========================================== + Hits 6822 6838 +16 - Misses 194 196 +2 - Partials 102 103 +1 ``` | [Flag](https://app.codecov.io/gh/esrg-knights/Squire/pull/333/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/esrg-knights/Squire/pull/333/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights) | `95.81% <91.66%> (-0.04%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights) | Coverage Δ | | |---|---|---| | [achievements/account\_pages/config.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWNoaWV2ZW1lbnRzL2FjY291bnRfcGFnZXMvY29uZmlnLnB5) | `100.00% <ø> (ø)` | | | [achievements/admin.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWNoaWV2ZW1lbnRzL2FkbWluLnB5) | `100.00% <ø> (ø)` | | | [activity\_calendar/committee\_pages/forms.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWN0aXZpdHlfY2FsZW5kYXIvY29tbWl0dGVlX3BhZ2VzL2Zvcm1zLnB5) | `93.33% <100.00%> (+0.06%)` | :arrow_up: | | [activity\_calendar/templatetags/calendar\_tags.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWN0aXZpdHlfY2FsZW5kYXIvdGVtcGxhdGV0YWdzL2NhbGVuZGFyX3RhZ3MucHk=) | `64.70% <ø> (ø)` | | | [activity\_calendar/url\_converters.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWN0aXZpdHlfY2FsZW5kYXIvdXJsX2NvbnZlcnRlcnMucHk=) | `100.00% <100.00%> (ø)` | | | [activity\_calendar/widgets.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-YWN0aXZpdHlfY2FsZW5kYXIvd2lkZ2V0cy5weQ==) | `100.00% <100.00%> (ø)` | | | [committees/admin/options.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-Y29tbWl0dGVlcy9hZG1pbi9vcHRpb25zLnB5) | `90.47% <ø> (ø)` | | | [...tees/templatetags/association\_group\_config\_tags.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-Y29tbWl0dGVlcy90ZW1wbGF0ZXRhZ3MvYXNzb2NpYXRpb25fZ3JvdXBfY29uZmlnX3RhZ3MucHk=) | `100.00% <ø> (ø)` | | | [core/shortcut\_urls.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-Y29yZS9zaG9ydGN1dF91cmxzLnB5) | `100.00% <ø> (ø)` | | | [core/templatetags/build\_absolute\_uri.py](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights#diff-Y29yZS90ZW1wbGF0ZXRhZ3MvYnVpbGRfYWJzb2x1dGVfdXJpLnB5) | `100.00% <100.00%> (ø)` | | | ... and [10 more](https://app.codecov.io/gh/esrg-knights/Squire/pull/333?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esrg-knights) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.