You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code fetching and displaying GitHub contributors has several issues, including a hardcoded page parameter, inefficient DOM updates, and global variable scope problems.
What is the expected behavior? 🤔
The function getContributors should correctly fetch contributors across multiple pages.
The contributors should be sorted and displayed in the correct order.
The search functionality should work without undefined variables.
The DOM should be updated efficiently to improve performance.
Provide step by step information to reproduce the bug 📄
Hardcoded Page Parameter
Open the code and locate the getContributors function.
Notice that the page parameter in the fetch URL is hardcoded to 1.
Inefficient DOM Updates
Observe the DOM update logic within the window.onload function.
Notice the repeated DOM manipulations without using DocumentFragment.
Undefined data Variable in Search
Check the searchResult.addEventListener function.
Notice the data variable is not defined globally, causing errors when the search input is used.
Inconsistent Dark Mode Toggle Event Listeners
Examine the event listeners for dark mode toggle.
Notice duplicated event listeners and possible issues with theme toggling.
👉 Thanks for opening this issue. We appreciate your contribution and will look into it as soon as possible.
👉 Don’t forget to star our Community Page and Follow Us on GitHub
👉 Make sure you join our Discord, we have created separate channels for all projects
Thank you for your contribution! If you have any questions or need further assistance, feel free to reach out to us on our Discord server: Discord. We have separate channels for all projects. Happy coding! 🚀
Give a brief about the bug ✍️
The code fetching and displaying GitHub contributors has several issues, including a hardcoded page parameter, inefficient DOM updates, and global variable scope problems.
What is the expected behavior? 🤔
getContributors
should correctly fetch contributors across multiple pages.Provide step by step information to reproduce the bug 📄
getContributors
function.page
parameter in the fetch URL is hardcoded to 1.window.onload
function.DocumentFragment
.searchResult.addEventListener
function.data
variable is not defined globally, causing errors when the search input is used.Select program in which you are contributing
GSSoC24
Code of Conduct
The text was updated successfully, but these errors were encountered: