Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-13958/MM-13959 Make postsInChannel into a sparse array #2411

Merged
merged 5 commits into from
Mar 8, 2019

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Feb 26, 2019

The changes to use the new postsInChannel are mostly in the accompanying redux PR, but I took the opportunity to refactor the post loading logic used by PostList and move it into view actions so that we can test them with the new redux changes.

See mattermost/mattermost-redux#781 for more details.

Mobile PR: mattermost/mattermost-mobile#2600
Redux PR: mattermost/mattermost-redux#781

Ticket Link

https://mattermost.atlassian.net/browse/MM-13958
https://mattermost.atlassian.net/browse/MM-13959

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)
  • Ran make test to ensure unit and component tests passed
  • Added or updated unit tests (required for all new features)
  • Has redux changes (please link)
  • Touches critical sections of the codebase (auth, posting, etc.)

@hmhealey hmhealey added the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Feb 26, 2019
@hmhealey hmhealey added 2: Dev Review Requires review by a core commiter and removed Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) labels Feb 26, 2019
@hmhealey hmhealey added the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Feb 26, 2019
@hmhealey hmhealey removed the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Feb 28, 2019
Copy link
Contributor

@deanwhillier deanwhillier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Apologies for the delayed review, I missed Awaiting PR label being removed.

@deanwhillier deanwhillier added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Mar 7, 2019
@hmhealey hmhealey merged commit 7c16fc4 into post-list-improvements Mar 8, 2019
@hmhealey hmhealey deleted the mm13958 branch March 8, 2019 13:37
@lindalumitchell lindalumitchell added this to the v5.10.0 milestone Mar 15, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 19, 2019
hmhealey added a commit that referenced this pull request Apr 3, 2019
* MM-13958/MM-13959 Make postsInChannel into a sparse array

* Fix unit tests

* Fix being unable to load channels with between 30 and 60 posts

* Fix unit tests
@lindy65 lindy65 removed the 4: Reviews Complete All reviewers have approved the pull request label Apr 12, 2019
@lindy65 lindy65 modified the milestones: v5.10.0, v5.12.0 Apr 13, 2019
hmhealey added a commit that referenced this pull request Apr 15, 2019
)

* MM-13957 Reorganize post actions (#2343)

* MM-13957 Reorganize post actions

* Use postDeleted action creator

* Show join/leave messages since combined systed messages have been temporarily removed

* Re-add tests for showFlaggedPosts and showPinnedPosts

* Add temporary fix for permalink view

* Update mattermost-redux

* MM-13958/MM-13959 Make postsInChannel into a sparse array (#2411)

* MM-13958/MM-13959 Make postsInChannel into a sparse array

* Fix unit tests

* Fix being unable to load channels with between 30 and 60 posts

* Fix unit tests

* MM-13960 Re-add support for combined user activity posts  (#2465)

* Add unit tests for PostList

* Remove unnecessary null check

* MM-13960 Re-add support for combined user activity posts

* Fix being deleted combined posts not disappearing for the user who deletes the post

* Fix PostList unit tests

* Fix New Messages Below indicator when PostList takes post IDs

* Update mattermost-redux

* Update mattermost-redux
@ogi-m ogi-m added the Tests/Not Needed Does not require new release tests label May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
7 participants