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

[16.0][ADD] resource_multi_week_calendar #1384

Open
wants to merge 14 commits into
base: 16.0
Choose a base branch
from

Commits on Aug 30, 2024

  1. [ADD] resource_multi_week_calendar

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    32fdeda View commit details
    Browse the repository at this point in the history
  2. [IMP] resource_multi_week_calendar: Implement computation of current …

    …calendar
    
    This is the bones of the implementation.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0048699 View commit details
    Browse the repository at this point in the history
  3. [IMP] resource_multi_week_calendar: Create form view

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    184b7c3 View commit details
    Browse the repository at this point in the history
  4. [IMP] resource_multi_week_calendar: Implement _attendance_intervals_b…

    …atch
    
    This is the real implementation work. With this method implemented, all
    other methods correctly get the correct week each time.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    d766493 View commit details
    Browse the repository at this point in the history
  5. [REF] resource_multi_week_calendar: Simplify epoch date

    The epoch date is hidden on the child anyway. Let's just hide it, and
    always make sure to get the parent's epoch date. This gets rid of the
    complicated computation stuff that won't backport well to v12.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    beb3db0 View commit details
    Browse the repository at this point in the history
  6. [REF] resource_multi_week_calendar: Parent calendar no longer uses it…

    …s attendances
    
    The idea here is that the children contain all the logic/attendances,
    and the parent is just a holder of children.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    6c19789 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. [IMP] resource_multi_week_calendar: Display only parents by default

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    32aa306 View commit details
    Browse the repository at this point in the history
  2. [IMP] resource_multi_week_calendar: Add roadmap

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    3c76344 View commit details
    Browse the repository at this point in the history
  3. [FIX] resource_multi_week_calendar: Hide two-week calendar

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    871a3b0 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. [IMP] resource_multi_week_calendar: Add convenience function

    I need this elsewhere. It _technically_ reduces performance by doing the
    same calculation twice, but this module is horrible as pertains to
    performance in any case.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3963ae1 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. [REF] resource_multi_week_calendar: Miscelleanous changes

    - `parent_calendar_id` is now `ondelete="cascade"`.
    - Renamed `family_calendar_ids` to `multi_week_calendar_ids`.
    - Renamed `current_calendar_id` to `current_multi_week_calendar_id`.
    - Renamed `_get_calendar` to `_get_multi_week_calendar`.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    472f5d2 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. [IMP] resource_multi_week_calendar: Improve roadmap

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    7752993 View commit details
    Browse the repository at this point in the history
  2. [IMP] resource_multi_week_calendar: Improve comments and simplify code

    - Improved the comment on how week_sequence works.
    - Renamed family_size to calendar_count
    - Added a comment on _get_multi_week_calendar() returning a 1-item
      recordset.
    - Re-optimised the current week calculation.
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c002f09 View commit details
    Browse the repository at this point in the history
  3. [FIX] resource_multi_week_calendar: Hide hours_per_day on parent cale…

    …ndar
    
    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    d0a05ee View commit details
    Browse the repository at this point in the history