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

refactored code in public/src/admin/dashboard/topics.js #531

Open
wants to merge 3 commits into
base: f24
Choose a base branch
from

Conversation

Yukiiyi
Copy link

@Yukiiyi Yukiiyi commented Sep 5, 2024

This PR resolves #528 . The fetch call is separated into multiple function to assure that the function does not nest four levels deep.one function Handles the fetch response. another function processes the parsed JSON payload and uses. another function generate HTML and updates the table content by inserting the generated HTML.

refactor dashboard topic
This commit broke promises and callback functions into separate named functions
Copy link

sonarcloud bot commented Sep 5, 2024

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10714478546

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 10607818019: 0.0%
Covered Lines: 22323
Relevant Lines: 25582

💛 - Coveralls

@Yukiiyi Yukiiyi changed the title Features refactored code in public/src/admin/dashboard/topics.js Sep 5, 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

Successfully merging this pull request may close these issues.

refactor code in public/src/admin/dashboard/topics.js
2 participants