apache / kibble-1

Apache Kibble - a tool to collect, aggregate and visualize data about any software project
https://kibble.apache.org/
Apache License 2.0
59 stars 28 forks source link

Bulk update: Fixing session PUT (in handler,y), EL v8 compatibility, python 3 based with enhanced code debugging. #131

Closed gmkll closed 1 week ago

gmkll commented 2 weeks ago

Refactor: In handler.py method traceback and use in exception; Add print statements (as debug hints) in session,py and other modules; Fix in handler.py by removing bucket (which is no key, value pair) from setting into session headers as argument for start_response call); Add initpy in plugins folder to allow import from makeAccount.py and remove local KibbleDatabase class there; Make in database.py *Wrapper classes private; Add into kibble.yaml configuration key elasticsearch versionHint (by default 8) to allow for more robust and transparent initialization; Refactor in setup.py into methods makeIndices and makeAccount(); Fix check for undefined snap in kibble.v1.js. Improvement: Evaluate result in makeAccount.py; Remove cgi import (not used) and deprecated since py 3.11; Use debug to print out more debugging information; Set cookie httpOnly; Update setup docs (tested with python 3.9.1 and 3.13.0).

gmkll commented 2 weeks ago

While this is working for the 1st level integration, more changes are required to support EL8 e.g. this error occurs when data points are selected in kibble

[date_histogram] unknown field [interval] did you mean [fixed_interval]

It might be an idea to create an branch kibbl1-el8 to continue work on this, as this may take some time ..

gmkll commented 2 weeks ago

With the last two commits a44 and https://github.com/apache/kibble-1/pull/131/commits/c136cf099a0c2006b27e6ff7d4b7a1956723615d all data points views are now fixed (tested with el 8.x), while older EL versions should still work.

sharanf commented 1 week ago

Thanks very much for the contribution! @gmkll