-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve view functions in facilities
blueprint
#658
Merged
Merged
Conversation
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
lukasjuhrich
commented
Aug 11, 2023
lukasjuhrich
commented
Aug 11, 2023
lukasjuhrich
commented
Aug 11, 2023
lukasjuhrich
force-pushed
the
facilities_improvements
branch
2 times, most recently
from
August 11, 2023 18:04
8e63e4e
to
c5f02d0
Compare
Merged
lukasjuhrich
force-pushed
the
flask_23
branch
2 times, most recently
from
August 14, 2023 16:32
210c90c
to
534c0b8
Compare
lukasjuhrich
force-pushed
the
facilities_improvements
branch
2 times, most recently
from
August 14, 2023 16:55
f13afde
to
614369f
Compare
The custom error handling allows us to be potentially more specific than just issuing a flash message.
obsolete, because `handle_errors` does not take a session anymore.
Plus, fix all the admonitions.
`BaseResponse` has ben merged with `Response`, see pallets/werkzeug#1963.
Now, after v1, compat release pinning makes sense.
Also, remove the keyword argument in some invocations; it has been introduced before when the first argument was `session`. This is now more noise than it is helpful.
lukasjuhrich
force-pushed
the
facilities_improvements
branch
from
August 16, 2023 10:42
614369f
to
f613750
Compare
lukasjuhrich
force-pushed
the
facilities_improvements
branch
from
August 16, 2023 10:45
f613750
to
7268312
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
flask~=2.3
(andwerkzeug>=2.0
)handle_errors
context manager for more ergonomic usage (thetry
can be omitted,session.begin_nested
needs to be called explicitlyfacilities
blueprint.model_dump
on a pydantic model.