Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove field lastActivity from subscription data #8345

Merged
merged 2 commits into from
Sep 29, 2017
Merged

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented Sep 28, 2017

@RocketChat/core

Closes #8338

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-8345 September 28, 2017 17:44 Inactive
if (this.identifier === 'f') {
query.f = favoritesEnabled;
} else {
let types = [this.identifier];
if (this.identifier === 'activity') {
types = ['c', 'p', 'd'];
sort = { lastActivity : -1, _updatedAt: -1};
Copy link
Member

Choose a reason for hiding this comment

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

according to this it should still sort by _updatedAt

Copy link
Member

Choose a reason for hiding this comment

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

I agree with @sampaiodiego

Copy link
Member Author

Choose a reason for hiding this comment

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

@sampaiodiego @engelgabriel sort is not used if the indentifier === "activity"

@engelgabriel engelgabriel added this to the 0.59.0-rc.10 milestone Sep 28, 2017
Copy link
Member

@engelgabriel engelgabriel left a comment

Choose a reason for hiding this comment

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

We need a migration to remove lastActivity from the DB

@rodrigok rodrigok modified the milestones: 0.59.0-rc.10, 0.59.0-rc.11 Sep 29, 2017
@ggazzo
Copy link
Member Author

ggazzo commented Sep 29, 2017

@engelgabriel could you review migration 101?

@rodrigok rodrigok changed the title remove last activity Remove field lastActivity from subscription data Sep 29, 2017
@rodrigok rodrigok merged commit d2d3084 into develop Sep 29, 2017
@rodrigok rodrigok deleted the remove-lastact branch September 29, 2017 18:48
rodrigok added a commit that referenced this pull request Oct 3, 2017
Remove field `lastActivity` from subscription data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove lastActivity
4 participants