-
Notifications
You must be signed in to change notification settings - Fork 6
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
[7806] plans and projects api caching #5372
Conversation
911021b
to
5b9fce3
Compare
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.
Some initial comments and the question about how we handle cache expiry times
5b9fce3
to
067f03f
Compare
dba0904
to
5d9bab2
Compare
@goapunk have another look when you can. I need to add a test, e.g adding future projects and check if the are added in the cache. |
5d9bab2
to
ea0e82f
Compare
ea0e82f
to
60ea57c
Compare
43f821a
to
5f21b64
Compare
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.
Nice, looks good to me so far, I left some comments with questions. I'm not sure about the failing tests, seems to be a bit tricky with the combination of redis + CELERY_TASK_ALWAYS_EAGER=True
. Without it we need a running celery worker though
06608e7
to
5e82acf
Compare
@goapunk there was a typo in the reset cache task of the key to be deleted. As I was testing locally and because of the asterisks I was using, something was not captured. Anyhow I simplified the tests and removed the API calls as these are part of the |
I guess the only difference is the deletion of |
5e82acf
to
669d23d
Compare
3a8f7f6
to
586fcd5
Compare
@goapunk I merged the two scheduled tasks, the actual resets for future/past projects i left as it is, since it will save us from queering either future or past projects again via the url, which are time/power consuming. |
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.
Really nice! Just some small comments left
@m4ra yeah, the query check is really helpful, we definitely need to work on improving the queries/structure. Ideally we will have checks in all our tests in the future 🤞 |
586fcd5
to
c594f32
Compare
@goapunk done! |
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.
Really cool :) Before we deploy it we need to make some changes in the admin repo
Tasks