-
Notifications
You must be signed in to change notification settings - Fork 0
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
[DPE-5039] - Simple charm ops #19
Conversation
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.
A few general comments and remarks:
- Sorry for the amount of comments, it's just I'm reading most of this reused code for the first time.
- Overall in typing with python3.10, you can forget about
Optional[X]
and move to more modern and easier to understand (and better handled)X | None
- A few nits in my comments, about typos between
Mongos
andMongoDB
. - A few comments about code that could be moved to shared libraries/python packages.
Co-authored-by: Neha Oudin <[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.
Two last minor mistakes here
Co-authored-by: Neha Oudin <[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 Mia, I have a few questions
return | ||
|
||
value = secret.get_content().get(key) | ||
if value != Config.Secrets.SECRET_DELETED_LABEL: |
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.
Can you explain this? why are we testing against the string "None"
?
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 actually cannot, I believe this was initially written by Judit 😅
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.
okay - let's please track it in a separate ticket and understand what exactly is happening there for a future PR
Co-authored-by: Mehdi Bendriss <[email protected]>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Issue
Right now the mongos charm does nothing. Before even implementing relations to clients + config-server it should perform some basic operations. Namely:
Solution
Implement the above items and