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

[12.0][MIG] resource_multi_week_calendar #1389

Open
wants to merge 15 commits into
base: 12.0
Choose a base branch
from

Commits on Sep 2, 2024

  1. [ADD] resource_multi_week_calendar

    Signed-off-by: Carmen Bianca BAKKER <[email protected]>
    carmenbianca committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    86d6a4b 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 Sep 2, 2024
    Configuration menu
    Copy the full SHA
    9559926 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 Sep 2, 2024
    Configuration menu
    Copy the full SHA
    2e20e8a 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 Sep 2, 2024
    Configuration menu
    Copy the full SHA
    f9cf0b9 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 Sep 2, 2024
    Configuration menu
    Copy the full SHA
    551497a 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 Sep 2, 2024
    Configuration menu
    Copy the full SHA
    df1a6ba View commit details
    Browse the repository at this point in the history
  7. [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
    a8c3c88 View commit details
    Browse the repository at this point in the history
  8. [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
    51269f6 View commit details
    Browse the repository at this point in the history
  9. [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
    a1a39c1 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
    8a012ba View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 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 9, 2024
    Configuration menu
    Copy the full SHA
    7ae76e1 View commit details
    Browse the repository at this point in the history
  2. [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
    ccedcc3 View commit details
    Browse the repository at this point in the history
  3. [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
    1bfbfb3 View commit details
    Browse the repository at this point in the history
  4. [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
    c12cc65 View commit details
    Browse the repository at this point in the history
  5. [MIG] resource_multi_week_calendar: Backport to 12.0

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