Create models #89
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-App-Lesrooster!89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
assigned to @nik
@yuha @nik Please give some feedback.
mentioned in issue AlekSIS/official/AlekSIS#58
added 1 commit
31630982- Fix several things in modelsCompare with previous version
added 3 commits
a127e1ef- Add basic sync to LessonEvent for Lesson objects5828cc94- Make all datetimes timezone-aware8afb58b7- Add basic sync for supervisions to SupervisionEvent objectsCompare with previous version
added 3 commits
73f20cef- Use make_aware to get timezone-compatible datetimes41bb23ca- Add direct one-to-one link to lesson events069ea046- Fix migration historyCompare with previous version
added 1 commit
c2f9019b- Exclude holidays from regular timetableCompare with previous version
added 1 commit
65371f1d- Add model for supervision substitutionsCompare with previous version
added 1 commit
21a0e343- Allow supervisions also to be cancelledCompare with previous version
added 1 commit
19193ada- Add period_after field to Slot modelCompare with previous version
mentioned in issue #3
Migrations (re-) created in !90
mentioned in merge request !92
added 1 commit
c601d052- Clean up and add commonly used propertiesCompare with previous version
marked this merge request as ready
added 9 commits
master6304c89e- Merge branch 'master' into modelsCompare with previous version
added 4 commits
d0312fb2- Fix migration history7a7bb327- Add automatic sync to Chronos after model changes18a2b0b9- Use time_format for times instead of date_formatb76e47ce- ReformatCompare with previous version
Should be
AlekSISBaseManager.Even better, construct this in
managers.pyas a manager class inheriting fromAlekSISBaseManager.from_queryset(...).A validity range should have a state indicating whether it is ready for use or not, i.e. the plan is published or not.
I am not sure yet how to do it – just a boolean making it public or not? Or a multi-state field/Enum for things like "planning", "published", "obsolete",…?
Missing doc string
This looks like Untis/Chronos legacy… does this fit our new, mdoern model?
The field is named
slot, but refers to aBreak.Please align the names, and also reconsider what types of events can be supervised…
Missing doc string
Missing doc string
Please depend on the 4.x series
Yeah, it does. This is just a small bit of annotation to give breaks a position in the timetable grid.
breakisn't the best name for an attribute as it's a built-in. Additionally, eachBreakinstance is also aSlotinstance, but provides a little bit more API (period_after).I think an enum would be more future-proof, in case we add more states later
(or something similar, as recurrences can be empty)
Nevermind, the suggested line wouldn't work, maybe simply skip the whole recurring stuff if the field is empty?
added 2 commits
dbba2166- Add missing docstrings38cf45c6- Add status field to ValidityRange modelCompare with previous version
changed this line in version 13 of the diff
changed this line in version 13 of the diff
added 2 commits
a6c69da1- Fix managers84ad45ed- Skip recurrences if there are no recurrencesCompare with previous version
All of that is a clear indication that it should be named
BreakSlotandbreak_slot.changed this line in version 14 of the diff
added 1 commit
dcf4f581- Fix version in pyproject.tomlCompare with previous version
changed this line in version 15 of the diff
changed this line in version 15 of the diff
added 1 commit
51659d20- Rename Break to BreakSlotCompare with previous version
resolved all threads
mentioned in commit
f3c962e08f