Resolve "Carry over the data of the first lesson for double (or triple, ...) lessons" #469

Merged
Owner

Closes #64

Closes #64
Author
Owner

changed milestone to %2

changed milestone to %2
Author
Owner

added 1 commit

  • 10c43d74 - Automatically take over data from first lesson to second lesson in double lessons

Compare with previous version

added 1 commit <ul><li>10c43d74 - Automatically take over data from first lesson to second lesson in double lessons</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3054&start_sha=c692554f5621b36e4b8b3e20825e024cd81849a0)
Author
Owner

unmarked as a Work In Progress

unmarked as a **Work In Progress**
Author
Owner

assigned to @nik

assigned to @nik
Owner

This try/except block is too big. try must only guard a minimal amount of code, exactly that code that is expected to raise a specific exception.

This `try`/`except` block is too big. `try` must only guard a minimal amount of code, exactly that code that is expected to raise a specific exception.
Owner

Please change the term lesson to period (and check if other terms match the terminology we use globally).

Please change the term `lesson` to `period` (and check if other terms match the terminology we use globally).
Owner

What about triple periods? Are you relying on causing a chain reaction when saving second_lesson?

What about triple periods? Are you relying on causing a chain reaction when saving `second_lesson`?
Owner

This does not seem to take over data, but rather carry over to the next lesseon (taking is an action done by the receiver, not the sender). Please rename (and verify the terminology in other places).

This does not seem to *take over* data, but rather `carry over` to the next lesseon (taking is an action done by the receiver, not the sender). Please rename (and verify the terminology in other places).
Owner

If possible, do not use exceptions for regular code flow. You should use filter and check for None instead (which you get for free if you decide to check for more than only one following period above).

If possible, do not use exceptions for regular code flow. You should use `filter` and check for `None` instead (which you get for free if you decide to check for more than only one following period above).
Owner

This check should be made in save before branching into this method (someone might want to intentionally call it without caring about the setting, and it is generally a good rule to not branch into methods unnecessarily because, you know, in the 80s, branching was very expensive ;)).

This check should be made in `save` before branching into this method (someone might want to intentionally call it without caring about the setting, and it is generally a good rule to not branch into methods unnecessarily because, you know, in the 80s, branching was very expensive ;)).
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3064&start_sha=10c43d74e243436d63f7db4dd0973d6322be9940#780f294f550e4cd96aa99e7069b309c8b842f1d2_110_109)
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3064&start_sha=10c43d74e243436d63f7db4dd0973d6322be9940#780f294f550e4cd96aa99e7069b309c8b842f1d2_109_109)
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3064&start_sha=10c43d74e243436d63f7db4dd0973d6322be9940#780f294f550e4cd96aa99e7069b309c8b842f1d2_114_114)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>5914e36b - Fix terminology</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3064&start_sha=10c43d74e243436d63f7db4dd0973d6322be9940)
Author
Owner

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3065&start_sha=5914e36b1534ad1d8d14662ef74dfcc84f5d685a#780f294f550e4cd96aa99e7069b309c8b842f1d2_117_114)
Author
Owner

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3065&start_sha=5914e36b1534ad1d8d14662ef74dfcc84f5d685a#780f294f550e4cd96aa99e7069b309c8b842f1d2_121_114)
Author
Owner

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3065&start_sha=5914e36b1534ad1d8d14662ef74dfcc84f5d685a#780f294f550e4cd96aa99e7069b309c8b842f1d2_146_140)
Author
Owner

added 2 commits

  • ea2cc407 - Move settings check for carry_data_over to save method
  • 4b1e0a9c - Support triple, quadruple, ... periods in carry_over_data, too

Compare with previous version

added 2 commits <ul><li>ea2cc407 - Move settings check for carry_data_over to save method</li><li>4b1e0a9c - Support triple, quadruple, ... periods in carry_over_data, too</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3065&start_sha=5914e36b1534ad1d8d14662ef74dfcc84f5d685a)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

Please check again, @nik.

Please check again, @nik.
Author
Owner

changed title from Resolve "{-Take over the data of the first lesson for double-} lessons" to Resolve "{+Carry over the data of the first lesson for double (or triple, ...)+} lessons"

changed title from **Resolve "{-Take over the data of the first lesson for double-} lessons"** to **Resolve "{+Carry over the data of the first lesson for double (or triple, ...)+} lessons"**
Author
Owner

added 5 commits

  • 4b1e0a9c...e08075f9 - 4 commits from branch master
  • ee18faf2 - Merge branch 'master' into...

Compare with previous version

added 5 commits <ul><li>4b1e0a9c...e08075f9 - 4 commits from branch <code>master</code></li><li>ee18faf2 - Merge branch &#39;master&#39; into...</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3067&start_sha=4b1e0a9cfe6fbde4e2d2c6b7c05980babaa6a76d)
Owner

Please use the terminology of period and lesson correctly.

Please use the terminology of `period` and `lesson` correctly.
Author
Owner

changed this line in version 5 of the diff

changed this line in [version 5 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3068&start_sha=ee18faf29a83067d89cfde4f65575ea06136fbc7#780f294f550e4cd96aa99e7069b309c8b842f1d2_110_110)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>03b8056b - Fix usage of terminology</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3068&start_sha=ee18faf29a83067d89cfde4f65575ea06136fbc7)
Author
Owner

resolved all threads

resolved all threads
Owner
        """Carry over data to directly adjacent periods in this lesson if data is not already set.
```suggestion:-0+0 """Carry over data to directly adjacent periods in this lesson if data is not already set. ```
Owner

changed this line in version 6 of the diff

changed this line in [version 6 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3069&start_sha=03b8056bb15951e0f98481ca002783082d7c6d5d#780f294f550e4cd96aa99e7069b309c8b842f1d2_110_110)
Owner

resolved all threads

resolved all threads
Owner

added 1 commit

  • ab9818de - Apply 1 suggestion(s) to 1 file(s)

Compare with previous version

added 1 commit <ul><li>ab9818de - Apply 1 suggestion(s) to 1 file(s)</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/79/diffs?diff_id=3069&start_sha=03b8056bb15951e0f98481ca002783082d7c6d5d)
Owner

mentioned in commit f29159e172

mentioned in commit f29159e172dee3a299abeb0a159d2494a3026ad8
Owner

merged

merged
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Alsijil!469
No description provided.