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

MM-13957 Reorganize post actions #2343

Merged
merged 8 commits into from
Feb 26, 2019
Merged

MM-13957 Reorganize post actions #2343

merged 8 commits into from
Feb 26, 2019

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Feb 6, 2019

These are the webapp changes to go along with mattermost/mattermost-redux#767. There's nothing really notable about this except I tried to clean up some of the code around getting pinned/flagged posts to have it use more of the mattermost-redux logic.

Ticket Link

https://mattermost.atlassian.net/browse/MM-13957

Checklist

  • Added or updated unit tests (required for all new features)
  • Has redux changes

@hmhealey hmhealey added 2: Dev Review Requires review by a core commiter Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) labels Feb 6, 2019
@hmhealey hmhealey added Work in Progress Not yet ready for review 2: Dev Review Requires review by a core commiter and removed 2: Dev Review Requires review by a core commiter Work in Progress Not yet ready for review labels Feb 6, 2019
expect(store.getActions()).toEqual(compareStore.getActions());
});
});

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we just modify tests for showPinnedPosts and showFlaggedPosts instead of deleting?

Copy link
Member Author

@hmhealey hmhealey Feb 14, 2019

Choose a reason for hiding this comment

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

I think I deleted them because I don’t think they’re useful tests. They feel like they’re just a copy-paste of the function body. You’re right that I shouldn’t just delete them though, so I’ll take another shot at updating them

@hmhealey hmhealey added Awaiting Submitter Action Blocked on the author and removed Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) labels Feb 14, 2019
@hmhealey
Copy link
Member Author

Permalink view isn't working because of the changes to make getPostThread not populate postsInChannel, so I need to figure out how to fix that. I might just hack in a fix for now

@hmhealey hmhealey removed the Awaiting Submitter Action Blocked on the author label Feb 15, 2019
@saturninoabril saturninoabril added 4: Reviews Complete All reviewers have approved the pull request Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) and removed 2: Dev Review Requires review by a core commiter labels Feb 26, 2019
@hmhealey hmhealey removed the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Feb 26, 2019
@hmhealey hmhealey merged commit a833f8e into post-list-improvements Feb 26, 2019
@hmhealey hmhealey deleted the mm13957 branch February 26, 2019 16:23
@lindalumitchell lindalumitchell added this to the v5.10.0 milestone Feb 27, 2019
@lindy65 lindy65 added Tests/Not Needed Does not require new release tests and removed 4: Reviews Complete All reviewers have approved the pull request labels Feb 28, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 26, 2019
hmhealey added a commit that referenced this pull request Apr 2, 2019
* 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
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
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
6 participants