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

Simple paging #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Simple paging #8

wants to merge 5 commits into from

Conversation

0t3dWCE
Copy link

@0t3dWCE 0t3dWCE commented Jun 19, 2017

Now only 10 messages per page will be shown in messages list.
...and only with SQLAlchemy yet.

@coveralls
Copy link

coveralls commented Jun 19, 2017

Coverage Status

Coverage decreased (-13.3%) to 82.5% when pulling 06987f4 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-13.3%) to 82.5% when pulling 8de0435 on 0t3dWCE:paging into be006b4 on reclosedev:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-13.3%) to 82.5% when pulling 8de0435 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

coveralls commented Jun 19, 2017

Coverage Status

Coverage decreased (-13.3%) to 82.5% when pulling 8de0435 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling f09e544 on 0t3dWCE:paging into be006b4 on reclosedev:master.

3 similar comments
@coveralls
Copy link

coveralls commented Jun 20, 2017

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling f09e544 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling f09e544 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

coveralls commented Jun 20, 2017

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling f09e544 on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

coveralls commented Jun 20, 2017

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling 58a5d8c on 0t3dWCE:paging into be006b4 on reclosedev:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling 58a5d8c on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

coveralls commented Jun 20, 2017

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling 58a5d8c on 0t3dWCE:paging into be006b4 on reclosedev:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling 58a5d8c on 0t3dWCE:paging into be006b4 on reclosedev:master.

@@ -20,3 +20,5 @@ def iso_date(value):
parser.add_argument("created_at_lt", type=iso_date)
parser.add_argument("created_at_gt", type=iso_date)
parser.add_argument("read", type=types.boolean)
parser.add_argument("X-Mail-Offset", type=int, dest="offset", location="headers", default=0)
Copy link
Owner

Choose a reason for hiding this comment

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

This arguments should be passed as query parameters, not headers.

@@ -90,6 +95,17 @@ lathermailApp.controller('lathermailCtrl', function ($scope, $http, $routeParams
});
};

$scope.getNextMessagesPage = function(direction) {
if (direction === 'right') {
Copy link
Owner

Choose a reason for hiding this comment

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

right and left are bad names. Please use forward backwards

@@ -90,6 +95,17 @@ lathermailApp.controller('lathermailCtrl', function ($scope, $http, $routeParams
});
};

$scope.getNextMessagesPage = function(direction) {
if (direction === 'right') {
$scope.messages.length < $scope.offsetStep ? $scope.offset += 0 : $scope.offset += $scope.offsetStep;
Copy link
Owner

Choose a reason for hiding this comment

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

Single if

@coveralls
Copy link

coveralls commented Jul 4, 2017

Coverage Status

Coverage increased (+0.04%) to 95.833% when pulling 5562645 on 0t3dWCE:paging into be006b4 on reclosedev:master.

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.

4 participants