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
Enable caching for the synchronous context #1751
Conversation
ref #9500 Required PR: pulp/pulpcore#1751
Attached issue: https://pulp.plan.io/issues/8806 |
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
26e1d8f
to
9792228
Compare
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
9792228
to
4d01342
Compare
ref #9500 Required PR: pulp/pulpcore#1751
ref #9500 Required PR: pulp/pulpcore#1751
367b107
to
b36da97
Compare
ref #9500 Required PR: pulp/pulpcore#1751
b36da97
to
f321b0a
Compare
0880fe4
to
d755870
Compare
ref #9500 Required PR: pulp/pulpcore#1751
09b9b48
to
23a81da
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
23a81da
to
7157fc9
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
7157fc9
to
4d8fd6a
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
de5be8e
to
d59101a
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
d59101a
to
60638d9
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
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.
Looks good, I still want to know what is up with the hex
call.
pulpcore/cache/cache.py
Outdated
if binary := entry.pop("body", None): | ||
entry["body"] = bytes.fromhex(binary) | ||
|
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.
Still confused by this.
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.
leaving a comment in the code would be good.
In this commit, the existing method used for submitting cache entries was altered to enable caching binary data as well. closes pulp#2003
60638d9
to
d5190cb
Compare
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
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.
I've read the comment on the hex
calls and it makes sense. If the response contains bytes we can't assume those bytes are 'utf-8' encoded, so converting to hex in order json encode the value for the cache makes sense.
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
closes pulp#496 Required PR: pulp/pulpcore#1751
closes #496 Required PR: pulp/pulpcore#1751
ref #8806