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

MM-17468 - Improving performance of fetching threads #911

Merged
merged 5 commits into from
Sep 17, 2019
Merged

MM-17468 - Improving performance of fetching threads #911

merged 5 commits into from
Sep 17, 2019

Conversation

reflog
Copy link
Contributor

@reflog reflog commented Aug 28, 2019

Summary

Introduce a fetchThreads parameter to determine if the full thread is fetched with post queries, or just the post + root (to update the reply count / show the Commented on... prefix.

Ticket Link

Fixes https://mattermost.atlassian.net/browse/MM-17468

Related Pull Requests

mattermost/mattermost#11980
mattermost/mattermost-webapp#3549

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Ran make check-style to check for style errors (required for all pull requests)
  • Ran make test to ensure unit tests passed
  • Ran make flow to ensure type checking passed
  • Added or updated unit tests (required for all new features)
  • All new/modified APIs include changes to the JavaScript driver

Test Information

This PR was tested on: [Device name(s), OS version(s)]
Ubuntu 19.04

package.json Outdated Show resolved Hide resolved
src/actions/posts.js Outdated Show resolved Hide resolved
Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

Some small changes needed, but in general looks good to me.

Copy link
Member

@lieut-data lieut-data left a comment

Choose a reason for hiding this comment

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

Just a nomenclature concern.

src/actions/posts.js Outdated Show resolved Hide resolved
Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

LGTM

@lieut-data lieut-data added 3: QA Review and removed 2: Dev Review Requires review by a core commiter labels Sep 5, 2019
@hanzei hanzei added the 4: Reviews Complete All reviewers have approved the pull request label Sep 6, 2019
@hanzei hanzei added this to the v5.16.0 milestone Sep 6, 2019
@reflog reflog merged commit ae457c3 into mattermost:master Sep 17, 2019
@reflog reflog deleted the MM-17468 branch September 17, 2019 13:37
lieut-data added a commit that referenced this pull request Sep 27, 2019
@lindy65 lindy65 modified the milestones: v5.16.0, v5.18.0 Sep 30, 2019
lieut-data added a commit that referenced this pull request Sep 30, 2019
* Revert "Automated cherry pick of #933 (#934)"

This reverts commit b514b8d.

* Revert "MM-17468 - Improving performance of fetching threads (#911)"

This reverts commit ae457c3.
@lindy65 lindy65 added the Tests/Not Needed Does not require tests label Nov 25, 2019
Willyfrog added a commit to Willyfrog/mattermost-redux that referenced this pull request Nov 27, 2019
Willyfrog added a commit to Willyfrog/mattermost-redux that referenced this pull request Nov 27, 2019
Willyfrog added a commit that referenced this pull request Nov 28, 2019
* Revert "MM-18623 - Handle reply-count in getPostThread code path (#933)"

This reverts commit 74018c6.

* Revert "MM-17468 - Fix regression. Maintain reply_count on parent post w… (#928)"

This reverts commit 4a749d7.

* Revert "MM-17468 - Improving performance of fetching threads (#911)"

This reverts commit ae457c3.

* prevent circle from changing package-lock on install
reflog added a commit that referenced this pull request Jan 14, 2020
* Revert "refactored into two separate components. cleaned up css"

This reverts commit 6784589

* Revert "MM-17468 - Improving performance of fetching threads (#911)"

This reverts commit ae457c3.

* Revert "MM-17468 - Fix regression. Maintain reply_count on parent post w… (#928)"

This reverts commit 4a749d7.

* Revert "MM-18623 - Handle reply-count in getPostThread code path (#933)"

This reverts commit 74018c6.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Tests/Not Needed Does not require tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants