Commit graph

5 commits

Author SHA1 Message Date
Harrison Healey
56c84df916
MM-59271 Add DataLoader classes and batch loading missing users and statuses (#27804)
* Change addUserIdsForStatusAndProfileFetchingPoll to only ever receive arrays of user IDs

* Remove bufferCounter in favour of measuring array length

* Split addUserIdsForStatusAndProfileFetchingPoll into two separate actions

* Slightly simplify getPendingStatusesById

* Add DataLoaderInterval and use in actions/status_profile_polling

* Add tests for IntervalDataLoader

* Start adding DelayedDataLoader

* Updated DelayedDataLoader to split requested data into batches and made addIdsToLoad not return a promise by default

* Modify getMissingProfilesForIds to use a DataLoader and attach DataLoaders to the store

* Add tests for getMissingProfilesByIds loading statuses

* Revert change that defined getMissingProfilesByIds in a closure

* Change getMissingProfilesByUsernames to also use a DelayedDataLoader and add tests

* Pass extra argument into mocked version of Thunk

* Rename DataLoader.addIdsToLoad to DataLoader.queueForLoading

* Rename things and address feedback
2024-08-06 15:39:10 -04:00
Agniva De Sarker
d1c9469d06
Add CODEOWNERS for migrations (#23020)
```release-note
NONE
```
2023-04-19 20:01:50 +05:30
Jesse Hallam
7943221c5a
Deprecate Toolkit CODEOWNERS (#22907)
* Deprecate Toolkit CODEOWNERS

* change code owner to `@mattermost/integrations`

* remove code owner

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2023-04-11 18:10:27 -03:00
Harrison Healey
1cbfef65f1
MM-51683 Re-add CODEOWNERS for Web Platform files (#22627) 2023-03-28 15:34:06 -04:00
Ben Schumacher
b6ac431f2d
Add toolkit team as owner of plugin package (#15144) 2020-07-30 07:17:26 -07:00