-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
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
Discuss Refactoring of API in Client #39590
Comments
Would we want to do something about |
That was just a bad idea of mine. Mrugesh was right: if we can, we should just make use of |
Not necessarily, since the names have to appear somewhere. That said, it's possible the best approach is to just apply |
@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 |
@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. |
@ojeytonwilliams Yes, I have been meaning to document it anyway. |
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. |
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
(importscertMap
)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:
certAndProjectMap.js
is likely to be deletedcertMap
andprojectMap
should be fetched with useStaticQuery when we build the clientCertification.js
andShowCertification.js
could make use of a graphQL query to fetch thecertMap
Feel free to edit this. @ojeytonwilliams and @raisedadead feel free to correct/add anything I missed.
The text was updated successfully, but these errors were encountered: