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

feat(lists): Cache lists #59

Merged
merged 15 commits into from
May 20, 2024
Merged

feat(lists): Cache lists #59

merged 15 commits into from
May 20, 2024

Commits on Mar 16, 2024

  1. WIP

    mmcknett committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    85f583d View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Configuration menu
    Copy the full SHA
    c48602f View commit details
    Browse the repository at this point in the history
  2. fix: useLogs not required for lists now.

    - Time entry form uses the list cache from Account.
    - Factor addLog out of useLogs
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    e530a8e View commit details
    Browse the repository at this point in the history
  3. feat: Hide log table by default

    Important for testing. This forces the time entry to rely on the list cache for its current list state. When the log table is hidden by default, there isn't anything on the page that loads the full collection of logs, and so if the list cache is empty, nothing will fill it.
    
    The next step is to detect this case automatically and force-update the cache (with the hope that we only have to query all the logs once, to prime the cache).
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    3030a28 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    386002c View commit details
    Browse the repository at this point in the history
  5. feat: Self-healing list cache

    - When the list cache is absent, we'll load all the docs once and heal it.
    - If a list is missing from the cache and we load logs and discover it, we'll add it.
    - Whenever we add a log, we'll make sure the list is in the cache.
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    113069a View commit details
    Browse the repository at this point in the history
  6. feat: Use the list cache for filtering.

    Now we only use the lists from the logs to ensure that the account list cache is up-to-date.
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    7b7e727 View commit details
    Browse the repository at this point in the history
  7. fix: Populate with the default list

    If the account has been created but there aren't any logs, add the default list to ensure it's there.
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    5d3d186 View commit details
    Browse the repository at this point in the history
  8. test: Update tests to show the logs before trying to view them.

    Also remove the unnecessary, failing loading spinner test.
    mmcknett committed May 18, 2024
    Configuration menu
    Copy the full SHA
    d49b651 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. Configuration menu
    Copy the full SHA
    7c6f817 View commit details
    Browse the repository at this point in the history
  2. test: Get GHA debug logs

    mmcknett committed May 19, 2024
    Configuration menu
    Copy the full SHA
    3b47730 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    455684c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    51576e3 View commit details
    Browse the repository at this point in the history
  5. test: Ignore mp4 files

    mmcknett committed May 19, 2024
    Configuration menu
    Copy the full SHA
    27a0e10 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d5e20a3 View commit details
    Browse the repository at this point in the history