Freecodecamp: Stubs in Hint pages can't be replied to or edited

Created on 7 Jul 2020  ·  16Comments  ·  Source: freeCodeCamp/freeCodeCamp

Describe your problem and how to reproduce it:
I’ve noticed that a number of hint pages for exercises have “This is a stub. Help the community by replying below with your hints and solutions. We can use those to create a guide article for this.”

There is no option to reply or edit the document, and I can understand that it’s to prevent a flood of unwanted edits. In that case, what should we do if we have a solution to suggest?

Add a Link to the page with the problem:
https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-perform-classic-updates-by-running-find-edit-then-save/301541

Recommended fix, suggestions (how would you update it?):
Add a reply option, perhaps?

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):
image

DevOps bug

All 16 comments

In that case, what should we do if we have a solution to suggest?

I think, creating an issue on this tracker is the best approach here. Hey @RandellDawson can you guide here.

If someone wants to suggest a solution for a challenge, would the Contributor's category not be the place for it? Also, the user should explain what makes their approach unique. If it is just a syntax change, we may not accept it. It would need to be an algorithmic approach not already covered by the existing solutions.

If the contributor's category is the place to make suggestions, could that be indicated in the stub pages?

If the contributor's category is the place to make suggestions, could that be indicated in the stub pages?

That's actually how it should be. @RandellDawson do you know how we could possibly do this programatically.

@raisedadead I already have a query that gets the topic id of any stub topic. I have a script that can be modified to replace the content with anything you want. I used the same script to create these stub pages when everything was ported over from the repo.

There are currently 698 stub pages. Just let me know what you think the content should state and I can update all of them in one pass.

Edit: Would the following work for a stub?

This is a stub. Help the community by creating a new topic in the Contributors category with your suggested hints and/or solutions. We may use those to update this stub.

Sure go ahead.

@RandellDawson , would it be possible to have the stub contain a link with a template for creating the post? Something including (at a minimum) the link to the stub?

Yup, we have the template on the contributing docs, right? That could be linked.

Yes, the documentation has the template, but that would only be useful for the mods, since we have locked down the wikis.

I finished updating the 673 stub topics with the content we discussed earlier in this issue, but we can accomplish two things at once:

  1. Use the same stub message I just used earlier at the top of the topic (below the heading back link to the challenge)
  2. Add the template we are currently using to stub. This would make it easier for mods to start putting information in as they receive the suggestions via the Contributors category topics. For demonstration purposes, I have updated this topic with my newly proposed stub.

@Sky020

@RandellDawson , sorry, miscommunication. What I meant is, users are posting asking for stubs to be changed, without providing a link to the stub. So, I was wondering how easy it would be for a template to be made similar to how using the _Ask for Help_ button on a challenge creates one...

@Sky020 Can you take the existing Ask for help content and create a template with what you would want the topic to look like?

Actually, I have come up with a way to add a link which creates a new topic like the Ask For Help button does. Check out this topic to see how it looks.

@raisedadead If you and @Sky020 think this is a good idea, that I can run the script I created to do this for the 690+ stubs. It will take about 30 minutes to complete, so we don't overload the forum too much.

I really like the addition of that link.

@RandellDawson That is excellent! The only thing I might suggest is for the title to also be pre-filled. Perhaps something simple to sort through the topics in Contributors so we know it is a suggestion?

Perhaps something simple to sort through the topics in Contributors so we know it is a suggestion?

I could add something but the user will still have to create a unique title because Discourse does not allow duplicate titles. It also needs to be short to allow the user to add something to the end of it. Any suggestions are welcome.

Update: I shortened the link text. See if you like it better.

I am closing this issue as there is now a link in the stub that allows a user to create a new topic in the Contributors category which will automatically have the challenge title and challenge url in it.

Was this page helpful?
0 / 5 - 0 ratings