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

refactor(db) define default/max page sizes as constants #3723

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

thibaultcha
Copy link
Member

No description provided.

@@ -509,8 +509,6 @@ end


local function page(self, size, token, foreign_key, foreign_entity_name)
size = min(size or 100, 1000)
Copy link
Member Author

@thibaultcha thibaultcha Aug 23, 2018

Choose a reason for hiding this comment

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

Arguments already went through sanitization in the DAO layer before hitting the strategy (deliberately, as per our design pattern).

@thibaultcha thibaultcha force-pushed the refactor/constants-for-page-size branch from 9d89b62 to 0e742c1 Compare August 23, 2018 00:15
@thibaultcha thibaultcha merged commit 4043aa7 into master Aug 23, 2018
@thibaultcha thibaultcha deleted the refactor/constants-for-page-size branch August 23, 2018 00:54
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.

1 participant