-
-
Notifications
You must be signed in to change notification settings - Fork 124
fix(scripts): fix unpack and repack scripts for the new challenge schema #106
fix(scripts): fix unpack and repack scripts for the new challenge schema #106
Conversation
b4632e2
to
3eb0d2d
Compare
@gforce2k5, thank you for all your hard work on this. It will be great to have these scripts working again. I did notice a few issues, though. Everything seems to run smoothly when unpacking. But after making changes and repacking, I get an error while running Took a look at the unpack, unpackedChallenge, and repack files, but not really sure where to start. Will block this for now, but hopefully we can get these all working soon. |
@scissorsneedfoodtoo Thank you for the feedback, I'll try to mend the issues you pointed here, and I'll try to make this script work, I'll notify you if I manage to fix these issues. |
@gforce2k5, sounds great! Thank you for your continued efforts and support with QAing some of the other PRs. Please let me know if I can be of assistance in any way. |
@gforce2k5 Do you mind if I'll contribute for the issue? @scissorsneedfoodtoo Can you explain fields seed, ChallengeSeed, head, and tail? They are in unpacked html but not in packed json and schema. Are they needed or not? |
@ValeraS I don't mind if you contribute, I managed to get the unpack script working, the only problem seems to be the repack script |
@ValeraS, that's a good question. It seems like the new json structure broke some things with the unpack/repack scripts. Even then, there was some confusion over the difference between seed and challengeSeed. It would be great if we could have the unpacked HTML mimic the new structure here: https://github.com/freeCodeCamp/curriculum#challenge-structure With the updated scripts from this PR, it seems like only the description, releasedOn date, solution, and translations are being displayed properly in the unpacked HTML. A good example of the head field not being displayed is the So I would say the things we really need are the title, description, contents (formerly challengeSeed--what shows up initially in the editor), translations, tests, solution, head, tail. We don't necessarily need releasedOn since many challenges don't have a release date, but it probably wouldn't hurt. And we definitely don't need the currently existing seed and challengeSeed fields, since I think those are replaced by contents. |
@scissorsneedfoodtoo Created new PR #127 |
Sorry for the delay, @gforce2k5. Thank you for your patience and for all of your other contributions in the meantime. So I've done some testing on @ValeraS's PR and it seems good. Though since it's based on your work here, I'd like for you to also get some credit. I'm thinking we can merge your PR here, then merge #127. But maybe there's a better way to do that. What do you think, @raisedadead? |
@gforce2k5, sorry again for the delay. After more testing, it seems like there would be too many issues with merge conflicts if I merge this PR and then #127. Unfortunately the easiest thing seems to be to close this in favor of #127. I'm very sorry about that. Thank you for all of your patience and hard work you put into solving this issue. Though we couldn't take your contribution this time around, we're really looking forward to your next one! |
ISSUES CLOSED: #42
Description
Pre-Submission Checklist
dev
branch.fix/
,feature/
, ortranslate/
(e.g.fix/challenge-tests
)npm test
.npm run commit
to generate a conventional commit message.Learn more here: https://conventionalcommits.org/#why-use-conventional-commits
If they were done on the web interface you have ensured that you are creating conventional commit messages.
Checklist:
Closes #42