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 src/middleware/user.js #41

Open
FatimaHad opened this issue Sep 2, 2024 · 3 comments
Open

Refactoring code in src/middleware/user.js #41

FatimaHad opened this issue Sep 2, 2024 · 3 comments
Assignees

Comments

@FatimaHad
Copy link

FatimaHad commented Sep 2, 2024

Filename :src/middleware/user.js
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

@FatimaHad
Copy link
Author

I would like to work on this please!

Copy link

github-actions bot commented Sep 2, 2024

Great! I assigned you (@FatimaHad) to the issue. Have fun working on it!

@FatimaHad FatimaHad changed the title Refactoring code in src/controllers/write/topics.js Refactoring code in src/upgrades/1.2.0/edit_delete_deletetopic_privileges.js Sep 2, 2024
@EduardoFF
Copy link
Contributor

The current tests do not cover this file. Therefore, you have two options to complete the last part of P1B:

(a) Write tests from scratch to cover that file OR

(b) Select another file currently covered by tests (under src/) that is NOT fully covered and do the following:

Increase the coverage of the file by at least one line.
Commit your changes to the same branch referenced in the PR.
For the final part of the task (manual testing), activate at least one function of the file you selected from the user interface (UI).

@FatimaHad FatimaHad changed the title Refactoring code in src/upgrades/1.2.0/edit_delete_deletetopic_privileges.js Refactoring code in src/middleware/user.js Sep 2, 2024
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

No branches or pull requests

2 participants