-
Notifications
You must be signed in to change notification settings - Fork 80
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
Improvement: refactor expected_fields_validator #243
Comments
@codesankalp I would like to work on this issue. |
@KushalBeniwal Have you completed the mandatory setup task #244 before claiming a coding/testing issue? |
@decon-harsh, no, I haven't. I will do that first. |
@KushalBeniwal comment once you do the setup task |
I am unable to follow from this step https://github.com/anitab-org/bridge-in-tech-backend/blob/develop/.github/ENV_SETUP_INSTRUCTION.md#4th-open-pgadmin4, as I am using wsl, so, I can only use the command line. |
Please join our zulip chat and ask your doubts there, we will be happy to help you with your Dev env setup. @KushalBeniwal |
I would like to work on this issue if is available, but I have a question. |
Hi @epicadk or @mtreacy002 a maybe possible solution could be to use the data structure set to compare if user_input and data_model are exact the same, however, I saw that in tests are falling, but the problem apparently is the code, so, I have a question, I need to verify that always user input fields contain only the expected fields of the data model? not more and not less right?, I have that doubt because so I think that I found an error in the code but I am not sure |
@y-martinez , can you please explain what you mean with
|
@y-martinez any updates? |
Description
As a developer,
I need validators to be fast,
so that API response time will be less.
Mocks
bridge-in-tech-backend/app/utils/validation_utils.py
Lines 157 to 164 in 68d8ff9
The two for loops can be implemented efficiently by using the python built-in function.
I think there is no need for
two for
loops for this.Acceptance Criteria
Update [Required]
for loops
.Definition of Done
Estimation
0.5 hours
The text was updated successfully, but these errors were encountered: