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

Implement Sort option on the Dashboard page #3352

Merged
merged 3 commits into from
Jan 30, 2018
Merged

Conversation

marla-singer
Copy link
Contributor

@marla-singer marla-singer commented Jan 26, 2018

Closes #2758

Implement the sort feature, sort by name (a-z), calls (desc), user count (desc), response time(desc)

Changes

  • Code refactoring, clean up
  • Implement sorting
  • Remove filter button

Developer checklist

This checklist is to be completed by the PR developer:

  • Alternative solutions were compared/discussed before writing code
    • trade-offs with this solution are considered acceptable
  • Code in this PR adheres to the project styleguide
  • This pull request does not decrease project test coverage
  • If the code changes existing database collection(s), migration has been written
  • If UI texts are added or changed, all texts are internationalized

Reviewer checklist

Reviewed by: @username1

This list is to be completed by the pull request reviewer:

  • Code works as described/expected
  • Code seems to be error free
    • no browser console errors visible
    • no server console errors visible
    • passes CI build
  • Code is written in a way that promotes maintainability
    • easy to understand
    • well organized
    • follows project coding standards and conventions
    • well documented

@ghost ghost assigned marla-singer Jan 26, 2018
@ghost ghost added the in progress label Jan 26, 2018
@marla-singer marla-singer changed the title Feature/sort option Implement Sort option on the Dashboard page Jan 26, 2018
@marla-singer marla-singer added this to the Sprint 62 milestone Jan 26, 2018
return a.apiName.localeCompare(b.apiName, language);
});

break;
Copy link
Contributor

Choose a reason for hiding this comment

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

Break statement is not needed in the last block of switch.

Copy link
Contributor

@anarva anarva left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Member

@matleppa matleppa left a comment

Choose a reason for hiding this comment

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

Some minor changes.

}

return count;
// Return boolean value of available overviewChart response
Copy link
Member

Choose a reason for hiding this comment

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

Comment seems to be a copy from above, correct it.

},
groupingApiIds () {
gorupingBackendIds (proxyId) {
Copy link
Member

Choose a reason for hiding this comment

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

gorupingBackendIds --> groupingBackendIds

const proxyId = FlowRouter.getQueryParam('proxy_id');
if (proxyId) {
// Get Proxy backend IDs for grouping
Meteor.call('gorupingBackendIds', proxyId, (err, res) => {
Copy link
Member

Choose a reason for hiding this comment

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

gorupingBackendIds --> groupingBackendIds

- groupingApiIds remake to groupingBackendIds. Now there returns IDs of Proxy Backends
- Changed summaryStatisticNumber method: add parameter proxyBackendIds
- Removed summaryStatisticTrend method
- Added totalNumberRequestsAndTrend method: return total number for current period and comparison data with previous period
- Code refactoring, clean up
@marla-singer
Copy link
Contributor Author

@matleppa Done

@matleppa matleppa merged commit 307c8a7 into develop Jan 30, 2018
@matleppa matleppa deleted the feature/sort-option branch January 30, 2018 12:22
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.

3 participants