Skip to content

[IMPROVE] Sorting on livechat analytics queries were wrong#16021

Merged
renatobecker-zz merged 4 commits intodevelopfrom
fix-livechat-sort-models
Dec 22, 2019
Merged

[IMPROVE] Sorting on livechat analytics queries were wrong#16021
renatobecker-zz merged 4 commits intodevelopfrom
fix-livechat-sort-models

Conversation

@MarcosSpessatto
Copy link
Copy Markdown
Contributor

No description provided.

firstParams.push(matchUsers);
}
const params = [...firstParams, usersGroup, project];
if (options.sort) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why are you checking the options.sort if you're not using it?
I just see the default sort, the options.sort is not being considered.

});
}
const params = [...firstParams, group, presentationProject];
if (options.sort) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This won't work.
If there is no options.sort defined, the default sort won't be assigned.

To clarify, you don't need the if here.

@renatobecker-zz renatobecker-zz self-assigned this Dec 19, 2019
@renatobecker-zz renatobecker-zz merged commit 86f792c into develop Dec 22, 2019
@renatobecker-zz renatobecker-zz deleted the fix-livechat-sort-models branch December 22, 2019 18:25
gabriellsh added a commit that referenced this pull request Dec 23, 2019
…default-favorite-channels

* 'develop' of github.com:RocketChat/Rocket.Chat:
  Change version to 2.4.0
  Update NodeJS to 8.17.0 (#16043)
  [NEW] Invite links: share a link to invite users (#15933)
  Fix typo in Italian translation (#15998)
  Update Meteor 1.8.3 (#16037)
  [FIX] Importer: Variable name appearing instead of it's value (#16010)
  [IMPROVE] Replace livechat:inquiry publication by REST and Streamer (#15977)
  [IMPROVE] Sorting on livechat analytics queries were wrong (#16021)
  [IMPROVE] Replace fullUserData publication by REST (#15650)
  [IMPROVE] Replace integrations and integrationHistory publications by REST (#15885)
  Some performance improvements (#15886)
  [FIX]Add time format for latest message on the sidebar (#15930)
  [FIX] Admin Setting descriptions and Storybook (#15994)
  Bump version to 2.3.2
  [FIX] Invalid Redirect URI on Custom OAuth (#15957)
  [NEW] Livechat Widget version 1.3.0 (#15966)
@sampaiodiego sampaiodiego mentioned this pull request Dec 26, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants