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

Refactoring Code In public/src/admin/manage/privileges.js #183

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Barondafan
Copy link

resolves #129

In public/src/admin/manage/privileges.js, I attempted to resolve three different functions that had too deep of nesting levels of past 4. To do this, I broke down the functions into separate functions and introduced new global variables as well. As a result, the code is more readable and adaptable.

Tests will likely not pass, and I was in OH for 2 and a half hours working with the TAs, and I only seemed to be getting more and more errors. However, the functions that I refactored worked fine in the UI, as shown by the console log.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12943059771

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.671%

Totals Coverage Status
Change from base Build 12896760049: 0.0%
Covered Lines: 22323
Relevant Lines: 25582

💛 - Coveralls

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.

Refactoring code in public/src/admin/manage/privileges.js
2 participants