Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Kalendar Kalendar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 83
    • Issues 83
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PIMPIM
  • KalendarKalendar
  • Merge requests
  • !140

Overhaul model assignment in views and centrally manage models

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Claudio Cambra requested to merge work/clau/reuse_models into master Oct 30, 2021
  • Overview 2
  • Commits 32
  • Pipelines 26
  • Changes 9

This MR incorporates each view's models into a shared InfiniteCalendarViewModel. This has several benefits:

  • Models and their data can persist on view change, reducing the loading times when switching back and forth through views
  • We can now run pathview delegate loaders asynchronously, vastly cutting init loading times
  • We can now run one instance of handler functions that check if new row insertions in calendar and data changes are relevant to the incidenceoccurrencemodels
  • We can check if new row inserts contain items we have already checked

To prevent this from getting out of hand, there are mechanisms to limit the number of co-existing live models.

Edited Nov 04, 2021 by Claudio Cambra
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/clau/reuse_models