Skip to content

Remove field lastActivity from subscription data#8345

Merged
rodrigok merged 2 commits into
developfrom
remove-lastact
Sep 29, 2017
Merged

Remove field lastActivity from subscription data#8345
rodrigok merged 2 commits into
developfrom
remove-lastact

Conversation

@ggazzo
Copy link
Copy Markdown
Member

@ggazzo ggazzo commented Sep 28, 2017

@RocketChat/core

Closes #8338

@ggazzo ggazzo requested a review from sampaiodiego September 28, 2017 17:44
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-8345 September 28, 2017 17:44 Inactive
let types = [this.identifier];
if (this.identifier === 'activity') {
types = ['c', 'p', 'd'];
sort = { lastActivity : -1, _updatedAt: -1};
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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