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
platform: apiServer application that needs familiarity with Express, Fastify, MongoDB etc.scope: tools/scriptsScripts for supporting dev work, generating config and build artifacts, etc.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.
This comes about as I was going to refactor Certification.js to not rely on hardcoded values, but after discussing with Mrugesh and Oliver, realise it is not a quick section to fix.
Top sections to refactor:
./redux Move from using both epics and sagas to just sagas.
What I have been looking into:
Certification.js (certMapSelector, and renderLegacyFullStack)
ShowCertification.js (imports certMap)
certAndProjectMap.js (Kris left a comment about refactoring to automatically generate from md/.json files)
getChallenges.js (Oliver mentioned splitting this up into more bite-sized functions to allow better access outwith)
Minutes:
Rather than moving away from Redux, it would be beneficial to leverage it without complex epics
Use Redux hooks, for refactor of functional components
certAndProjectMap.js is likely to be deleted
certMap and projectMap should be fetched with useStaticQuery when we build the client
Certification.js and ShowCertification.js could make use of a graphQL query to fetch the certMap
certMap and projectMap can be built during the build of the challenge files in getChallenges.js
That was just a bad idea of mine. Mrugesh was right: if we can, we should just make use of useStaticQuery to fetch the data we need when we build the client. That creates a better separation of the client and the curriculum.
Would we want to do something about utils/block-nameify.js as it relates to hardcoded names?
Not necessarily, since the names have to appear somewhere. That said, it's possible the best approach is to just apply blockNameify to set the superBlocks while building the curriculum and then fetch them with a GraphQL query in the client. Same reasoning as above.
@ojeytonwilliams Ultimately, I just want the process of adding a new block (project in v7) easier. Currently, this involves updating multiple files in various files located in the client and curriculum folders. There is a lot of duplicate information in those various files.
@RandellDawson since you're doing this a lot, would you mind noting all the places you have to change things? Not necessarily right now, but it would be great if you could keep this in mind next time you add a block.
platform: apiServer application that needs familiarity with Express, Fastify, MongoDB etc.scope: tools/scriptsScripts for supporting dev work, generating config and build artifacts, etc.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.
Activity
RandellDawson commentedon Sep 16, 2020
Would we want to do something about
utils/block-nameify.jsas it relates to hardcoded names?ojeytonwilliams commentedon Sep 16, 2020
That was just a bad idea of mine. Mrugesh was right: if we can, we should just make use of
useStaticQueryto fetch the data we need when we build the client. That creates a better separation of the client and the curriculum.ojeytonwilliams commentedon Sep 16, 2020
Not necessarily, since the names have to appear somewhere. That said, it's possible the best approach is to just apply
blockNameifyto set thesuperBlocks while building the curriculum and then fetch them with a GraphQL query in the client. Same reasoning as above.RandellDawson commentedon Sep 16, 2020
@ojeytonwilliams Ultimately, I just want the process of adding a new block (project in v7) easier. Currently, this involves updating multiple files in various files located in the
clientandcurriculumfolders. There is a lot of duplicate information in those various files.ojeytonwilliams commentedon Sep 16, 2020
@RandellDawson since you're doing this a lot, would you mind noting all the places you have to change things? Not necessarily right now, but it would be great if you could keep this in mind next time you add a block.
RandellDawson commentedon Sep 16, 2020
@ojeytonwilliams Yes, I have been meaning to document it anyway.
moT01 commentedon Aug 3, 2021
Thank you for reporting this issue.
This is a standard message notifying you that the issue has become stale, so we are going to close it.
If you think we're wrong in closing this issue, please request for it to be reopened. Thank you and happy coding.