Release my stable release and my last release during Google Summer of Code 2023
STABLE RELEASE NOTE
New Features
Performance Checks Log Display
Now, our module provide a section where you could see your previous performance checks. It displays the record number, the date and time (format: yyyy-mm-dd H:m:s) , the user who did the performance check, average memory usage, time execution of command, Number of installs, updates and removals for both Lock File Operations and Package Operations. Also, we provide an extend option to see the more verbose message about the performance check.
Fixed Bugs
Handle Drupal.AjaxError in front-end (raises a Drupal Error and JavaScript console error)
Bug: This error is caused by server side (back-end). When there is a PHP bug or PHP syntax error, the Ajax rendering function raises an error that annoys users (it shows up in the client side [front-end]).
Fix: Now, the error is handled and we are showing a customized error message to the user that is more well informed and well designed.
Modules' Size Retrieval Results Storing: improve database table structure
Bug: Duplicate Primary key due to that the module name does not change and the size ,after an update, might not change too.
Fix: Now, the table has an id
column and a timestamp
column to store the date the retrieval was done. The id
field help us identifies each module separately. The timestamp
field help us group modules that their sizes were retrieved in the same action.
Module's links to its functionalities are miss-displayed
Bug: The 4 main features (composer update dry run, modules size retrieval, environment configuration retrieval, previous performance checks log display) are not displayed to the user directly. The user should write the specified URL manually. This is really annoying.
Fix: Now, we provide a header section that allows him to navigate between sections at ease.
Some hooks was implemented just for development stage are deleted
Bug: hook_cron
, hook_form_alter
, hook_module_implements_alter
and hook_requirements
were implemented in development stage and no longer needed.
Fix: Simply deleted.
Some Code Enhancement
- Fix route names (helps the features' links be well displayed to user)
- Make module's description more appropriate
- Fix some typos in comments
- Add return type to function (type casting)
- Call features functions correctly in the controller