-
Notifications
You must be signed in to change notification settings - Fork 7
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
TODO and relative import cleanup #24
Conversation
Signed-off-by: Isabella do Amaral <[email protected]>
Signed-off-by: Isabella do Amaral <[email protected]>
Signed-off-by: Isabella do Amaral <[email protected]>
7d126a6
to
4b33231
Compare
Signed-off-by: Isabella do Amaral <[email protected]>
fc66293
to
3f36bd3
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.
thanks a lot @isinyaaa !
some considerations below
Signed-off-by: Isabella do Amaral <[email protected]>
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.
thanks again; to me, let's defer the dataclass change of the Helper, at least for now. Added couple comments.
omlmd/listener.py
Outdated
def get_digest(self) -> str: | ||
return self.response.headers["Docker-Content-Digest"] if self.ok else "" |
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 like the idea of a helper to find the digest, but I'm not sure what this should do when the response is not ok.
Also, are we looking at a 200-ish or strictly 200 here?
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.
- let's return ValueError
- 2xx please
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.
Oras-Py is already checking that for us before returning on push. As we can see
_check_200_response already performs the checks you specified.
Edit: updated accordingly. Let me know what you think.
556d109
to
d902e95
Compare
Signed-off-by: Isabella do Amaral <[email protected]>
a8ee5e2
to
aa2331a
Compare
Signed-off-by: Isabella do Amaral <[email protected]>
aa2331a
to
8b82359
Compare
thanks a lot @isinyaaa , much appreciated ! |
No description provided.