Skip to content
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

add methods to reduce complexity #33988

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

Robert-Costello
Copy link
Contributor

Product Description

This is to reduce the complexity of edit_module_detail_screens which has been flagged with a HELPME message after radon code static analysis. This change reduced the complexity score from an F to a C

Technical Summary

Feature Flag

Safety Assurance

Safety story

refactor, no logical changes.

Automated test coverage

QA Plan

no QA planned

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

Copy link
Contributor

@nospame nospame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good. Just to make sure I understand, is the main purpose of this chunk of code is to build and set module.search_config?

Copy link
Contributor

@esoergel esoergel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Hide whitespace" really helps make this readable
https://github.com/dimagi/commcare-hq/pull/33988/files?diff=split&w=1

@Robert-Costello
Copy link
Contributor Author

"Hide whitespace" really helps make this readable

Wow, that really makes a difference

@Robert-Costello
Copy link
Contributor Author

I think this looks good. Just to make sure I understand, is the main purpose of this chunk of code is to build and set module.search_config?

@nospame yes, that's right. apologies for the slow response to your question.

Copy link
Contributor

@esoergel esoergel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Robert-Costello Robert-Costello merged commit f75e099 into master Jan 23, 2024
13 checks passed
@Robert-Costello Robert-Costello deleted the rc/refactor-edit_module_detail_screens branch January 23, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants