Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

"Get Involved" page seems broken / doesn't list any issues #1046

Open
skimmedsquare opened this issue Nov 24, 2021 · 3 comments
Open

"Get Involved" page seems broken / doesn't list any issues #1046

skimmedsquare opened this issue Nov 24, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@skimmedsquare
Copy link

Was randomly poking around on the .NET Foundation website and noticed that the "Get Involved" page didn't seem to list any open issues and just seems broken in general. See below for an attached screenshot.

Browser: Firefox 94.0.2 / Vivaldi 4.3.2439.65

Screen Shot 2021-11-23 at 9 12 23 PM

Noticed in the browser console that there were two errors, though they don't immediately seem to be related to the issue described here:

Uncaught SyntaxError: missing ) after argument list
cookie-consent.3.0.0.js:1:14806
Uncaught ReferenceError: cookieconsent is not defined
    <anonymous> https://dotnetfoundation.org/community/get-involved:382
@rprouse
Copy link
Contributor

rprouse commented Nov 24, 2021

Confirmed in Edge Chromium

@rprouse rprouse added the bug Something isn't working label Nov 24, 2021
@skimmedsquare
Copy link
Author

Did a bit more digging on this issue...

Seems like this line:

loadOpenIssues(orgs, repos, "help wanted");

wasn't updated to match

function loadOpenIssues(orgs, repos, showEmptyCard, repoName, label) {

But even doing so still makes the /api/issues route return an empty array, presumably because none of the listed repos have open "help wanted" issues.

(async function () {
const orgs = "dotnet-foundation";
const repos = [
"wg-marketing",
"website",
"wg-outreach",
"speaking",
"membership",
"newsletter",
"content",
"projects",
"events",
"wg-education",
"wg-technical-review",
"wg-speakers-and-meetups",
"wg-project-support",
"wg-membership",
];
loadOpenIssues(orgs, repos, "help wanted");
})();

Making the following call in the browser console

loadOpenIssues("mono", ["mono"], true, undefined, "help wanted")

populates the card as expected, so I assume the list above needs to just be modified to include the full mapped set of organizations -> repos, though it appears that the loadOpenIssues function assumes that it will only be called with a single organization currently, despite one of the params being orgs

@Arhell
Copy link
Member

Arhell commented Nov 25, 2021

I fixed the errors in the console
#1047

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants