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

Refactoring, insb. ensure_package_and_question_state_exist #115

Merged
merged 6 commits into from
Sep 18, 2024

Conversation

MHajoha
Copy link
Member

@MHajoha MHajoha commented Aug 22, 2024

Basiert auf #114.

Ich habe ensure_package_and_question_state_exist in ensure_package, ensure_question_state und ensure_main_body auseinandergezogen. Da viele Routes alle drei benutzen wollen, gibt es ensure_required_parts, der die kleineren drei Decorator applied, je nach dem, welche Parameter die Handler-Funktion hat.

Außerdem habe ich die Web-spezifischen Sachen in questionpy_server.web geschoben und das meiste privat gemacht.

Und ich habe questionpy_server.worker.worker nach questionpy_server.worker.impl geschoben sowie das Interface (Worker) nach questionpy_server.worker.__init__.

questionpy_server/settings.py Show resolved Hide resolved
questionpy_server/web/app.py Outdated Show resolved Hide resolved
ruff_defaults.toml Outdated Show resolved Hide resolved
questionpy_server/web/_utils.py Show resolved Hide resolved
Base automatically changed from static-files to dev September 3, 2024 14:54
# Conflicts:
#	questionpy_server/api/routes/_packages.py
#	questionpy_server/package.py
#	questionpy_server/web.py
� Conflicts:
�	questionpy_server/factories/package.py
�	questionpy_server/package.py
�	tests/questionpy_server/web/routes/test_packages.py
@MHajoha MHajoha merged commit 3c5bd08 into dev Sep 18, 2024
6 checks passed
@MHajoha MHajoha deleted the refactor-decorator branch September 18, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants