-
Notifications
You must be signed in to change notification settings - Fork 449
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
Enhancement: Use Enum Representation in Mentorship Relation #1143
Comments
I would like to work on this issue. can you suggest me some hints? |
Sure @msaini0r Here, you will have to use numerical mapping of values with valid_states. Currently, we are storing string values that should be converted to 0,1,2... to save space Check this file to have a clear idea of what is needed 👇 |
Unassigning @msaini0r due to inactivity |
Hello! |
Hi! I also sent a message in the Zulip, but am I able to be assigned to work on this issue? |
Hi! Thanks so much for assigning, so I finished writing the code for the enum 🥳 and I was wondering how I can go about testing before I request to push. I was a bit confused if there was some sort of suite or ready made test cases, if anybody could direct me to the right place! |
Can you open a pr so we can help you out? |
Whoops, realized I put this in my request not here. But just dropping this again for a review for the pull request. I also think there may be some software updates required that are causing the unit tests to fail, I believe markup may have recently moved to a new version that causes jinja2 to fail. When we downgraded the libraries locally, the unit tests ran successfully. |
Description
I want to ensure that the database queries are fast and take less space for storage.
mentorship-backend/app/api/dao/mentorship_relation.py
Line 139 in 8924616
In the code above ☝️ , we are using string values for relation state which should be avoided.
Definition of Done
Estimation
5-6 hours
The text was updated successfully, but these errors were encountered: