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
Unable to view "Repeat a string" challenge solution #9321
Comments
cc/ @FreeCodeCamp/issue-moderators, how should we combat this? |
I had the same problem with another challenge. See #8582 for more details. To resolve the issue, solve and submit the challenge. This will update the camper's profile with the correct name and link to the problem. |
I noticed a typo in line 82 of the ./seed/challenges/front-end-development-certification.json
Would changing this to the same title of the challenge "Repeat a string" fix this problem? |
@tonybordeaux I am afraid, its not a typo, just a cool way of literally saying to repeat a string.
|
@rasedadead I thought so at first too! But if you look at the actual challenge it's simply "Repeat a string". in line 368 of ./seed/challenges/basic-bonfire.json, here's the title property of the challenge:
I believe what is happening here is that since the title property in the for-mentioned reply doesn't match the title property of the basic-bonfire.json, this is messing with the URL and leading to an error. To further reiterate my theory, the url you get when you click the repeat the string in the archive is this: 'https://www.freecodecamp.com/challenges/Repeat%20a%20string%20repeat%20a%20string' This doesn't work. Changing it to this though: 'https://www.freecodecamp.com/challenges/Repeat%20a%20string' Does work! So, that's why I believe that simply changing that property might fix this problem. |
@tonybordeaux oh right, my bad, thanks for pointing that out. |
Hi, I've just seen this issue happen again with another challenge: After finding that one, I went ahead and reviewed all the way through the advanced algorithms challenges to create a batch of titles if needed, but it looks like that's the only other instance of the issue. (At least within the topics of Basic, Intermediate, and Advanced Algorithm Scripting). |
The title is "Wherefore art thou" in The bug was possibly introduced in a599f5d https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/seed/challenges/01-front-end-development-certification/intermediate-bonfires.json#L172 I think we need to make sure that whenever a challenge is renamed, it should be renamed both in the challenge json and also in the json file which holds the challenges' ids and titles. |
@arun1595 nice catch. Would you mind updating these in your current PR? We wont need a separate issue that way. |
@raisedadead I'll do it :) |
Challenge Name
https://www.freecodecamp.com/challenges/repeat-a-string
Issue Description
This challenge has a naming issue in the archive of challenge solutions kept in the user's profile. The name can be seen as "Repeat a string repeat a string", and clicking "View solution" results in a challenge not found page (as it is apparently searching for the bogus title, which should be simply "Repeat a string").
Steps to reproduce:
Browser Information
Screenshot
The bad title:
The page that results from attempting to view solution:
The text was updated successfully, but these errors were encountered: