mattermost-mobile-upstream/app/managers
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
..
draft_upload_manager Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
ephemeral_mode_manager Mm 68768 auto cache rolling cleanup (#9958) 2026-09-03 12:46:19 +02:00
intune_manager Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
performance_metrics_manager Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
security_manager On iOS, resuming after the 5-minute window showed no biometric prompt — (#10102) 2026-09-02 15:03:13 +08:00
session_attributes_manager [MM-70388] Request location permission for the SSID session attribute (#10100) 2026-08-28 15:11:46 -04:00
apps_manager.test.ts Enforce names for singleton imports (#8639) 2025-02-27 12:46:17 +01:00
apps_manager.ts Enforce names for singleton imports (#8639) 2025-02-27 12:46:17 +01:00
global_event_handler.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
global_event_handler.ts [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
integrations_manager.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
network_manager.ts [MM-68986][MM-69203] Add module to collect Session Attributes from Mobile App (#9830) 2026-08-18 18:03:20 +00:00
network_performance_manager.test.ts feat(MM-65145): low connectivity manager (#9283) 2025-12-04 10:44:33 -07:00
network_performance_manager.ts feat(MM-65145): low connectivity manager (#9283) 2025-12-04 10:44:33 -07:00
session_manager.test.ts [MM-68986][MM-69203] Add module to collect Session Attributes from Mobile App (#9830) 2026-08-18 18:03:20 +00:00
session_manager.ts [MM-68986][MM-69203] Add module to collect Session Attributes from Mobile App (#9830) 2026-08-18 18:03:20 +00:00
websocket_manager.test.ts Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00
websocket_manager.ts Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00