- fixed bug that caused `draw_machine_age_pyramid_graph` to fail when some cluster machines get older than 20 years. Increased the age limit to 25 years, and added clipping to the graph to cope with some machines even older than this
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4101]
- fixed bug in SshAccessedMysqlDb which didn't handle the fields with is_autoinc_index properly
- fixed bug in SshAccessedMysqlDb which failed when a field description contained double quotes
- improved SshAccessedMysqlDb.query(), which now displays the error message on failure
- fixed bug in SshAccessedMysqlDb.table_exists,which failed when the table didn't exist.
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
- added to the class `ISqlDatabaseBackend` the ability to delete a sql table
- also added `SshAccessedMysqlDb`: an implementation of `ISqlDatabaseBackend` that implements the sql database as a remote sql database accessed using ssh
- added unit tests to validate the backends SshAccessedMysqlDb and SqliteDb
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
- added to the class `ISqlDatabaseBackend` the ability to create a sql table
- also added `SqliteDb`: an implementation of `ISqlDatabaseBackend` that implements the sql database as a sqlite3 database
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958]
- all styling errors are now fixed, but there are still warnings and information
- most functions have been converted to snake case
- most functions now have type hinting
work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3873]
when Job2 was introduced, it was actually representing a job, but the class Job (which actually represented a Task, and this was misleading) already existed
also:
- added type hinting to ease code understanding
- took this opportunity to fix styling issues
- this bug was found when working on Bug 3575 - la page physix status renvoit internal server error
- in order to ease the detection of such regressions, added a unittest that covers this code