-
Notifications
You must be signed in to change notification settings - Fork 22
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
Resignation tests kerstens fork #569
Merged
Theophile-Madet
merged 39 commits into
SuperCoopBerlin:resignation_tests
from
kerstenkenan:resignation_tests-kerstens-fork
Nov 18, 2024
Merged
Changes from 32 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
c61e5e1
First suggestion for ShiftAttendance entry in contributing
kerstenkenan e585045
First attempt ;) for getting the shift calendar more readable.
kerstenkenan 3e0dbaf
Collasping also for the log view
kerstenkenan 500a694
Fixed hopefully all changes requests.
kerstenkenan 929ef80
Fixed text for ShiftAttendance.
kerstenkenan 9a5c7d7
Fixed collapsing list.
kerstenkenan ca6596d
Deleted all "filter-button" classes.
kerstenkenan 19935cf
Set seletc2-width to 100%.
kerstenkenan 1dce65f
Last fixes with flexbox ;)
kerstenkenan fd43b26
Align title to center with flexbox.
kerstenkenan 6462633
Translations corrections (hint from Vicky).
kerstenkenan e57e7c6
Fixes in opening hours.
kerstenkenan 0b4b4d5
Merge pull request #562 from kerstenkenan/calendar-readability
kerstenkenan 059f4e9
Merge pull request #564 from kerstenkenan/collapsing-for-logs
kerstenkenan 1e0df74
Merge pull request #563 from kerstenkenan/contributing
kerstenkenan 96156fe
Missing po-file
kerstenkenan 12a0eb1
Restored 24h time
kerstenkenan d2e057f
Sorry for fuzzied po-file. Removed.
kerstenkenan e0a2082
Merge pull request #565 from kerstenkenan/translation-fixes
kerstenkenan 5f1f24b
Translations fixes
kerstenkenan 22343ef
Merge branch 'master' into po-file
kerstenkenan d0ae1c1
Merge pull request #568 from kerstenkenan/po-file
kerstenkenan f45682e
Merge remote-tracking branch 'origin/resignation_tests' into resignat…
kerstenkenan 1062477
Update translations.
kerstenkenan 5b4c8be
Search for Nonetype im form test.
kerstenkenan f241f23
test_membershipResignationForm_is_valid & test_validate_shareOwner_fu…
kerstenkenan 5277655
Form tests done.
kerstenkenan a19c55d
Form tests work, but view tests still fails.
kerstenkenan 830d6c1
Updateview-tests ready
kerstenkenan f2bf799
Changed service-function update_shifts_and_shares_and_pay_out_day in …
kerstenkenan f8ea2e6
Several fixes for all resignation-tests.
kerstenkenan f28ac19
More fixes for resignation-tests.
kerstenkenan ef86f52
Even more fixes for resignation-tests 1.0
kerstenkenan e2c541b
Even more fixes for resignation-tests 1.1
kerstenkenan bf95461
Even more fixes for resignation-tests 1.2
kerstenkenan dafaad3
Even more fixes for resignation-tests 1.3
kerstenkenan 5cffd51
Even more fixes for resignation-tests 1.4
kerstenkenan 0e87487
Even more fixes for resignation-tests 1.5
kerstenkenan 1cc8a1d
Even more fixes for resignation-tests 1.6
kerstenkenan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
tapir/coop/migrations/0047_membershipresignationdeletelogentry_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Generated by Django 5.1.1 on 2024-11-09 16:53 | ||
|
||
import django.contrib.postgres.fields.hstore | ||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("coop", "0046_deleteincomingpaymentlogentry"), | ||
("log", "0007_auto_20240702_1748"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="MembershipResignationDeleteLogEntry", | ||
fields=[ | ||
( | ||
"logentry_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="log.logentry", | ||
), | ||
), | ||
("values", django.contrib.postgres.fields.hstore.HStoreField()), | ||
], | ||
options={ | ||
"abstract": False, | ||
}, | ||
bases=("log.logentry",), | ||
), | ||
migrations.AlterField( | ||
model_name="membershipresignation", | ||
name="transferring_shares_to", | ||
field=models.ForeignKey( | ||
help_text="Leave this empty if the resignation type is not a transfer to another member", | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="owner_to_transfer", | ||
to="coop.shareowner", | ||
verbose_name="OwnerToTransfer", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tapir/coop/templates/coop/log/delete_resignmember_log_entry.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% load i18n %} | ||
{% blocktranslate %} | ||
Reactivated resigned member | ||
{% endblocktranslate %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't filter relative to the start date of the shift template: if a member registers to a shift template that started for example on 15/06/23, then resigns on the 15/11/24, we still want to cancel that attendance template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What did you mean then by this: #569 (comment)?
I didn't get quiet well yet how the shift-system works in total.