-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor shortcodes.php #276
Comments
Following are the subtasks/steps that can be followed to address the modularization and separation of responsibilities in the given code :-
|
The
This refactoring makes the code more optimized, adaptable and easier to maintain, especially as the complexity of the application grows or as new features are added. |
Estimated Time the initial estimate of the time required to completion
20+ hours
Description what the issue is about
That file contains a lot of the work to convert a shortcode into the query to the DRS. It needs to more modular, with particular emphasis on separation of responsibilities, with the URL for GET query being built up in distinct pieces.
The parameters for the query string are currently passed along in
$_POST
. The ability to continue using that will have to persist. However, for future CERES, we also need to be able to construct the same query string from data that does not arrive byPOST
. The same data will be present, just delivered via a different mechanism TBD.For both situations, though, separations of responsibility will be essential.
Sub tasks briefly and descriptively add sub tasks, which may be converted to issues
The text was updated successfully, but these errors were encountered: