mattermost-mobile-upstream/app/store
Carlos Garcia b9aee2b803
Mm 68768 auto cache rolling cleanup (#9958)
* auto cache rolling cleanup for posts

* ai threads rolling cleanup

* auto rolling cleanup of playbook runs

* fix to import and use renamed module

* makes post cleanup atomic by moving processing to sql layer

* restore previous file viewer post id and use full error logging

* performs vacuum as last step and removes unused code

* return early on empty channel array

* address gallery items without a post id

* prevent drafts to be deleted as part of auto cache cleanups

* unset channel oldest visible on channel switch

* clear oldest visible on empty array

* revert early return to prevent flickering

* restore previous playbookrun id on unmount

* fixes issue creating data retention deletion batches

* move active threads root cleanup protection to SQL execution

* notify observers of range changes in post lists

* in flight protection for auto cache cleanup runs

* add space around operator

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* use bound args while composing SQL for post deletes

* support for NaN when parsing ephemeral mode settings and refactor cleanup processing

* run updates through the model layer so cached values and observers are synced

* keep draft root posts on cleanups

* execute cleanups sequentially during launch and join db vacuum

add some more test coverage for cleanups and fixes

* apply PR suggestions

* use serverUrl to get database in cleanupPosts

* use operator handlers when possible in tests

* addresses coderabbit comments

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-03 12:46:19 +02:00
..
bottom_sheet_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
bottom_sheet_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
callback_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
callback_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
ephemeral_store.test.ts Classification Markings: Cached request timer and PSv2 Implementation (#9926) 2026-08-13 15:24:07 +03:00
ephemeral_store.ts Mm 68768 auto cache rolling cleanup (#9958) 2026-09-03 12:46:19 +02:00
fetching_thread_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
fetching_thread_store.ts [MM-47483] Activity Indicator while loading thread posts (#6865) 2022-12-17 01:15:22 +05:30
in_app_notification_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
in_app_notification_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
navigation_store.test.ts fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
navigation_store.ts fix: push notification navigation delay and stale in-app avatar (#9929) 2026-07-22 14:15:21 +02:00
review_app_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
review_app_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
settings_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
settings_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
share_feedback_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
share_feedback_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
snackbar_store.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
snackbar_store.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
team_load_store.test.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
team_load_store.ts Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00