-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add hidden booking types #103
Conversation
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.
Manca ancora changelog e due righe di spiegazione della funzionalità nella pull request
Solved, thanks |
for index, type in enumerate(deepcopy(res.get("booking_types", {}))): | ||
if type.get("hidden"): | ||
del res["booking_types"][index] |
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.
for index, type in enumerate(deepcopy(res.get("booking_types", {}))): | |
if type.get("hidden"): | |
del res["booking_types"][index] | |
if res.get("booking_types"): | |
res["booking_types"] = [ | |
t for t in res["booking_types"] if not t.get("hidden") | |
] |
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.
Solved, thanks for suggestions
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.
Ah ok, I could even commit the suggestion directly :D
@folix-01 fix tests please |
It seems to be the coverage run problems, re-runned all test jobs |
92ac6d5
to
a6fd1b0
Compare
Pull Request Test Coverage Report for Build 6496999025
💛 - Coveralls |
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.
Manca ancora la descrizione sul README
src/redturtle/prenotazioni/restapi/serializers/adapters/prenotazioni_folder.py
Show resolved
Hide resolved
src/redturtle/prenotazioni/tests/test_prenotazioni_folder_serializer.py
Outdated
Show resolved
Hide resolved
src/redturtle/prenotazioni/tests/test_prenotazioni_folder_serializer.py
Outdated
Show resolved
Hide resolved
data["morning_end"] = "1000" | ||
self.folder_prenotazioni.week_table = week_table | ||
|
||
def test_hidden_type_is_not_shown(self): |
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.
qui farei due test a seconda del permesso che ha l'utente
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.
Solved
Here we are going to have a possibility to use the hidden booking types which can be used only by the operator side