-
Notifications
You must be signed in to change notification settings - Fork 4
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
added pagination for arguments #240
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Why are we making pagination for arguments specifically? Isn't pagination the same logic regardless of the type of content?
Use django setting to apply to any endpoint -
The front-end should be able to decide on how many items per page there are. Do not hard-code it in the back-end unless as a default value
@Monstarrrr we changed pagination to apply globally. PAGE_SIZE is set in env. Does that work for the front-end? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented 2 changes
looks great and nice job!
failed? boooo |
9a83881
to
59e008e
Compare
@seporterfield we think the checks are wrong. we can't reproduce the error in our code |
did you read the error/output of the checks? |
We get this error only here with GitHub actions. PAGE_SIZE is '' here. That doesn't happen in our code. This would be fixed if PAGE_SIZE was set in the workflow file. |
The way we're parsing .env variables has a side effect of any empty variables in .env being parsed as the empty string instead of Fix: |
We fixed it for now with |
this is probably the best long term strategy for non-string env vars, looks great |
we deleted endpoints with parameters (except for page_size) as they weren't relevant to this branch, and @Monstarrrr decided on different endpoints. will implement those in a new branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the rescue
we also added some comments