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

Generate reservation series holidays #1328

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

ranta
Copy link
Collaborator

@ranta ranta commented Sep 10, 2024

🛠️ Changelog

  • Block generating reservation series for days that are marked as override=True and state=closed in HAUKI API

🧪 Test plan

  • Automated tests

🚧 Dependencies

  • None

🎫 Tickets

@ranta ranta added the feature Adds a new feature label Sep 10, 2024
@ranta ranta self-assigned this Sep 10, 2024
applications/tasks.py Outdated Show resolved Hide resolved
applications/tasks.py Outdated Show resolved Hide resolved
applications/tasks.py Outdated Show resolved Hide resolved
applications/tasks.py Outdated Show resolved Hide resolved
@ranta ranta force-pushed the generate-reservation-series-holidays branch 2 times, most recently from 49ea793 to 95e22b7 Compare September 12, 2024 07:33
organisation_address: Address | None = getattr(organisation, "address", None)

reservation_details["description"] = (
translate_for_user(_("Core business"), application.user) + f": {organisation.core_business}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This occurred to me just now: This was an issue during a previous seasonal booking round, since it can go over the reservation description char limit. I think we figured that the "Core business: " prefix should just be removed, and the description truncated to match the limit. MIght as well make the change here.

@ranta ranta force-pushed the generate-reservation-series-holidays branch from 95e22b7 to bea937b Compare September 17, 2024 12:05
@matti-lamppu matti-lamppu changed the base branch from main to terms-pdf September 18, 2024 05:01
@matti-lamppu matti-lamppu force-pushed the generate-reservation-series-holidays branch from bea937b to ec0cf05 Compare September 18, 2024 05:01
Copy link

sonarcloud bot commented Sep 18, 2024

Base automatically changed from terms-pdf to ical September 18, 2024 11:05
@matti-lamppu matti-lamppu merged commit ec0cf05 into ical Sep 18, 2024
6 checks passed
@matti-lamppu matti-lamppu deleted the generate-reservation-series-holidays branch September 18, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants