-------------------
New
~~~
- [style] added logo sources. [Cédric Bonhomme]
- [template] added about HTML which will uses about.json endpoint.
[Cédric Bonhomme]
- [static] added apple-touch-icon fro browsers miniatures and updated
accordingly the layout. [Cédric Bonhomme]
- [processors] Added risk_averages_on_date processor: evaluates the
averages for the risks per date. [Cédric Bonhomme]
- [API] Added an endpoint which lists the available processors. [Cédric
Bonhomme]
- [processors] Trying new processor with generators to evaluates means.
[Cédric Bonhomme]
- [utils] introduces the mean accumulator in utils.py. Usefull to
process means of incoming series of values. [Cédric Bonhomme]
- [API] new namespace to call a postprocessor. [Cédric Bonhomme]
- [template] Added stats-async.html. [Cédric Bonhomme]
- [logging] define a proper logging function. [Cédric Bonhomme]
- [contrib] added update.sh script. [Cédric Bonhomme]
- [contrib] added set_env_vars script. [Cédric Bonhomme]
- [templates] Add default layout template with a dependency to Bootstrap
5. [Cédric Bonhomme]
- [models] Added local boolean attribute for Client. [Cédric Bonhomme]
- [processors] wip: added threats_average_on_date function. [Cédric
Bonhomme]
- [commands] Added a new client in order to delete a local client and
all its related stats. [Cédric Bonhomme]
- Added contrib/install.sh for deployment with MONARC. [Cédric Bonhomme]
- [stats_bp] added view which will display visual information about
stats. [Cédric Bonhomme]
- [documentation] Added new section about updates. [Cédric Bonhomme]
Changes
~~~~~~~
- [contrib] restored conf variable when creating new client. [Cédric
Bonhomme]
- [contrib] restored conf variable when creating new client. [Cédric
Bonhomme]
- [contrib] comment the lines which set the virtual env to use. [Cédric
Bonhomme]
- [contrib] comment the lines which set configuration variables. [Cédric
Bonhomme]
- [runtime] Updated Python runtime on Heroku to 3.8.6. [Cédric Bonhomme]
- [template] Removed OpenAPI Specification link from the navbar. [Cédric
Bonhomme]
- [runtime] Updated Python runtime on Heroku to 3.9.0. [Cédric Bonhomme]
- [API] Restored authentication for processed namespace of the API..
[Cédric Bonhomme]
- [style] removed useless blank line. [Cédric Bonhomme]
- [processor] added an assert on the value of the param
processor_params. [Cédric Bonhomme]
- Updated dependencies. [Cédric Bonhomme]
- [GH workflows] Test and build the app for Python 3.9.0. [Cédric
Bonhomme]
- [dependencies] Updated SQLAlchemy and other dependencies. [Cédric
Bonhomme]
- [documentation] typos. [Cédric Bonhomme]
- [documentation] rephrasing. [Cédric Bonhomme]
- Added some debug logs. [Cédric Bonhomme]
- [documentation] updated documentation about processors and parameters.
[Cédric Bonhomme]
- [documentation] Updated swagger file, [Cédric Bonhomme]
- [processor] Filter out from the result things that were not processed
based on the params, these values are empty (set to zero) so useless
for the client. [Cédric Bonhomme]
- [API + processors] it is now possible to pass parameters dedicated to
the processors. [Cédric Bonhomme]
- Typo. [Cédric Bonhomme]
- [style] reformat new code. [Cédric Bonhomme]
- [processor] for the processor risk_averages_on_date the final values
are now stored in a list of objects (date and value). [Cédric
Bonhomme]
- [processor] for the processor risk_averages_on_date the final values
are now stored in a list of objects (label and value). [Cédric
Bonhomme]
- [processor] for the processor risk_averages_on_date the final values
are now stored in a list. [Cédric Bonhomme]
- [documentation] Updated documentation with new processor. [Cédric
Bonhomme]
- [processors] Some improvements to the risk_averages processor which is
now using a function in order to initializes the different generators.
[Cédric Bonhomme]
- [style] format. [Cédric Bonhomme]
- [style] format. [Cédric Bonhomme]
- [API] get anrs as a list. [Cédric Bonhomme]
- [API] the anrs argument s now in the body of the request. This is
because we had issues with the length of the resulting URL with
severall ANRs UUIDs as a URL parameter: UUIDs were cut. [Cédric
Bonhomme]
- [models] convert datetime object to string in _asdict. [Cédric
Bonhomme]
- [processors] Renamed risk_process to risk_averages. [Cédric Bonhomme]
- [documentation] Updated swagger file from the documentation. [Cédric
Bonhomme]
- [API] Endoint api/v1/stats/processing renamed to
api/v1/stats/processed. [Cédric Bonhomme]
- [API] cleaned new code in processing namesapce and updated
documentation. [Cédric Bonhomme]
- [API] processing namespace, commit it's kinda working. [Cédric
Bonhomme]
- [style] added some black magic. [Cédric Bonhomme]
- [postprocessors] The function threat_average_on_date() now processes
the global averages of the averages per day for each threats (this is
as well applicable to vulnerabilities). [Cédric Bonhomme]
- [template] Iterate over the values returned by the endpoint then sort
the items per date in order to construction the options dict for the
chart. [Cédric Bonhomme]
- [postprocessor] flatten a bit more the result of
threat_average_on_date() [Cédric Bonhomme]
- [lib] removed useless comment. [Cédric Bonhomme]
- [postprocessor] directly use a string for the value of i, for the
labels (labeli). [Cédric Bonhomme]
- [postprocessor] (test) provide labels after the evaluation of the
postprocessor. [Cédric Bonhomme]
- [postprocessor] comment pop on data. [Cédric Bonhomme]
- Remove the labels just befor preparing the frames in
postprocessors/threat_average_on_date. [Cédric Bonhomme]
- [documentation] Updated processed_data to processedData in the
swagger.json file. [Cédric Bonhomme]
- [API] Changed case of processed_data to processedData. [Cédric
Bonhomme]
- [dependencies] Updated pytest. [Cédric Bonhomme]
- [dependencies] Updated pygments. [Cédric Bonhomme]
- [API] in the namespace stats_ns the 'anrs' argument of the parser has
been renamed to 'anrs[]'. [Cédric Bonhomme]
- [dependencies] Updated Numpy. [Cédric Bonhomme]
- [documentation] Updated documentation about the command line
interface. [Cédric Bonhomme]
- [sync] Renamed parameter uuid to client-uuid. [Cédric Bonhomme]
- Updated pandas. [Cédric Bonhomme]
- [style] Format with black. [Cédric Bonhomme]
- [documentation] Updated docstrings. [Cédric Bonhomme]
- [logging] Added a logging capability for the
statsservice.commands.stats module. [Cédric Bonhomme]
- [sync] tested and fixed stats pull command. [Cédric Bonhomme]
- [dependencies] updated psycog. [Cédric Bonhomme]
- [API] Marshall the result of a POST LIST requests with
marshal_list_with. [Cédric Bonhomme]
- [API] returns newly created stats. [Cédric Bonhomme]
- [api] If some objects can not created we return the HTTP code 207
(Multi-Status). If all objects of the batch POST request are created
we simply return 204. [Cédric Bonhomme]
- [api] in case of duplicate stats rollback the session of the db with
creating a new stat. [Cédric Bonhomme]
- [contrib] Updated install.sh. [Cédric Bonhomme]
- [documentation] Minor updated in logging.rst. [Cédric Bonhomme]
- [logging]: added a logger for statsservice.api.v1.client. [Cédric
Bonhomme]
- [configuration] Updated default configuration files with the new
LOG_PATH variable. [Cédric Bonhomme]
- [api] Removed useless log. [Cédric Bonhomme]
- [api] catch sqlalchemy.exc.IntegrityError,
sqlalchemy.exc.InvalidRequestError errors. [Cédric Bonhomme]
- [API] catch psycopg2.errors.UniqueViolation errors. [Cédric Bonhomme]
- [API] import psycopg2.Error. [Cédric Bonhomme]
- [API] print integrity error code. [Cédric Bonhomme]
- [API] Do not use buld_save_objects. [Cédric Bonhomme]
- [sync] fixed dumpling of data to POST to an other stats service.
[Cédric Bonhomme]
- [templates] Updated stats.html. [Cédric Bonhomme]
- Updated dpendencies. [Cédric Bonhomme]
- [commands] when pushing or pulling stats we must select client with
their uuid and not their name. [Cédric Bonhomme]
- [templates] improve display of charts. [Cédric Bonhomme]
- [templates] Updated options of charts. [Cédric Bonhomme]
- [templates] Added link to MOSP instance defined in the configuration
file. [Cédric Bonhomme]
- [stats_bp] added local_stats_only parameter for the vulnerabilities
and threats routes. [Cédric Bonhomme]
- [deployment] Specify version of Node. [Cédric Bonhomme]
- [documentation] Added NodeJS buildpack. [Cédric Bonhomme]
- [install] updated contrib/install.sh with the npm command to install
Chart.js. [Cédric Bonhomme]
- [template] added language parameter to the
retrieve_information_from_mosp promise. [Cédric Bonhomme]
- [template] specify the language of the object when querying MOSP.
[Cédric Bonhomme]
- [template] Query MOSP to translate UUID to labels in the stats
dashboard. [Cédric Bonhomme]
- [templates] added more colors the stats dashboard. [Cédric Bonhomme]
- Refactorization. [Cédric Bonhomme]
- [documentation] Updated documentation about stats_bp blueprint.
[Cédric Bonhomme]
- [documentation] updated swagger.json file. [Cédric Bonhomme]
- [apiv1] cleaning. [Cédric Bonhomme]
- [processors] cleaning. [Cédric Bonhomme]
- [postprocessors] Improved management of postprocessors. [Cédric
Bonhomme]
- [stats_bp] avegare_date is the default format for the
vulnerabilities.json route. [Cédric Bonhomme]
- [template] Improved test template for global stats. [Cédric Bonhomme]
- [processors] factorization of some methods used for threats and
vulnerabilities since the structure of the stats for threats and
vulnerabilities is the same. [Cédric Bonhomme]
- [documentation] Added more information about the overall interactions
principles with MONARC. [Cédric Bonhomme]
- [documentation] Fixed cut and paste mistake. [Cédric Bonhomme]
- [documentation] updated section of the documentation related to the
stats_bp blueprint. [Cédric Bonhomme]
- [stats_bp] updated test template and stats route. [Cédric Bonhomme]
- [processors] display the mean in a markdown table. [Cédric Bonhomme]
- [dependencies] Updated Pandas. [Cédric Bonhomme]
- [documentation] Typo. [Cédric Bonhomme]
- [contrib] change name of the command to create new local client.
[Cédric Bonhomme]
- [documentation] minor update to the README. [Cédric Bonhomme]
- [commands] Refactored commands. [Cédric Bonhomme]
- [documentation] Installation with remote script. [Cédric Bonhomme]
- [documentation] Updated documentation with the new command. [Cédric
Bonhomme]
- [documentation] Minor improvements. [Cédric Bonhomme]
- [commmands] catch any errors when creating new clients (this prevents
scripts from being interrupted by an error). [Cédric Bonhomme]
- [stats_bp] added parameters mean and aggregated to the route threats.
when requested format by the client is 'mean' the legacy behaviour is
used, else it is aggregated. [Cédric Bonhomme]
- [documentation] Update for the stats_bp blueprint (threats.json
endpoint) [Cédric Bonhomme]
- [documentation] renamed updates.md to updates.rst. [Cédric Bonhomme]
- [stats_bp] added nb_days URL parameter to the threats.json route.
[Cédric Bonhomme]
- [stats_bp] Give the possibility to filter by anr, and filter with
timedelta(weeks). [Cédric Bonhomme]
- [stats_bp] Returns the mean evaluation based on the threats. [Cédric
Bonhomme]
- [sync] batch synchronization of stats. [Cédric Bonhomme]
- [commands] add the possibility to specify client token. [Cédric
Bonhomme]
- [commands] removed useless import of uuid. [Cédric Bonhomme]
- [commands] add the possibility to specify UUID when creating client
(since the name will probably be removed) [Cédric Bonhomme]
- [models] Precises the the name field for client should be deleted.
[Cédric Bonhomme]
- [dependencies] Updated numpy. [Cédric Bonhomme]
- [dependencies] removed useless import and reformated some quotes.
[Cédric Bonhomme]
- [dependencies] Updated MarkupSafe dependency. [Cédric Bonhomme]
- [dependencies] updated requirements.txt. [Cédric Bonhomme]
- [depoyment] Updated Heroku runtime to Python-3.8.4. [Cédric Bonhomme]
- [README] Updated contributors list. [README-bot]
- [README] Updated contributors list. [README-bot]
- [style] ignore bot. [Cédric Bonhomme]
- [style] ignore bot and reformat with black. [Cédric Bonhomme]
- [README] Updated contributors list. [README-bot]
- [README] Updated contributors list. [README-bot]
- [config] auto-generate secret_key if not found in the loaded
configuration. [Cédric Bonhomme]
- [README] updated contributors section. [Cédric Bonhomme]
Fix
~~~
- [commands] Fixed deletion of clients via the command. [Cédric
Bonhomme]
- [contrib] arguments checking. [Cédric Bonhomme]
- [accessibility] fixed accessibily issues. [Cédric Bonhomme]
- [template] Fixed issue in stats template: UUID are now stored os
"object" in the response from the server. [Cédric Bonhomme]
- [API] added missing import. [Cédric Bonhomme]
- [API] Fix issue when deleting stats with ANR UUIDs. [Cédric Bonhomme]
- [processor] copy the dict of parameters passed to the processor.
[Cédric Bonhomme]
- [documentation] typo. [Cédric Bonhomme]
- [documentation] typo. [Cédric Bonhomme]
- [bootstrap] processing has been renamed to processed. [Cédric
Bonhomme]
- [template] stats template broken due to change in data format or the
processor. [Cédric Bonhomme]
- [processors] renamed old variable. [Cédric Bonhomme]
- The fix. [Cédric Bonhomme]
- [API] object of type BaseQuery has no len() [Cédric Bonhomme]
- [postprocessor] check if the value is not None (null) before storing
it for the client. [Cédric Bonhomme]
- [bootstrap] Check if LOG_PATH is defined. [Cédric Bonhomme]
- [sync] fixed client SQLAlchemy query. [Cédric Bonhomme]
- [stats_bp] query was not defined before use. [Cédric Bonhomme]
- [processors] mean values per threat were overwritten in the loop.
[Cédric Bonhomme]
- [README] wrong script name. [Cédric Bonhomme]
Other
~~~~~
- Bumping version from 0.1.10 to 0.2.0. [Cédric Bonhomme]
- Export conf variable for flask cli. [Cédric Bonhomme]
- Added create_client.sh script. [Cédric Bonhomme]
- Added create_client.sh script. [Cédric Bonhomme]
- Chg [contrib] Installation of a recent Python with pyenv when
installing Stats Service. [Cédric Bonhomme]
- Random generation of the database password when installing stats-
service. [Cédric Bonhomme]
- Force use of Python >= 3.8. [Cédric Bonhomme]
- Removed reverse param in sort function. [Juan Rocha]
- Added sort by date in risk_averages_on_date() [Juan Rocha]
- Renamed type to stat_type and check if processorParams is not None.
[Cédric Bonhomme]
- Updated numpy. [Cédric Bonhomme]
- Cleaning. [Cédric Bonhomme]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Removed the trace info. [Ruslan Baidan]
- Added the endpoint to get logged in client details. [Ruslan Baidan]
- Fixed merge conflicts. [Cédric Bonhomme]
- Added the reponse format definition. [Ruslan Baidan]
- Merge branch 'master' of https://github.com/monarc-project/stats-
service. [Ruslan Baidan]
* 'master' of https://github.com/monarc-project/stats-service:
chg: [processors] Some improvements to the risk_averages processor which is now using a function in order to initializes the different generators.
chg: [style] format.
chg: [style] format.
new: [processors] Trying new processor with generators to evaluates means.
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Added some extra params to the result. [Ruslan Baidan]
- Optimized the code to increase perfomance. [Ruslan Baidan]
- Optimized the processing of the threats and vulnerabilities, changed
the response format. [Ruslan Baidan]
- Restored the default value. [Ruslan Baidan]
- Changed the default value of local stats. [Ruslan Baidan]
- Fixed the type param. [Ruslan Baidan]
- Fixed the anrs param. [Ruslan Baidan]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Reverted the anrs getting from args. [Ruslan Baidan]
- Fixed swagger. [Ruslan Baidan]
- Replaced the anrs list fetching from the request. [Ruslan Baidan]
- Attempt to get the passed body pararms from json. [Ruslan Baidan]
- Added the `anrs` param to the processed stats endpoint, and replaced
the endpoint to the `post` method. [Ruslan Baidan]
- Fis: [API] Added missing file. [Cédric Bonhomme]
- Cleaned up the processor things from /stats endpoint and renamed
"postprocessor" to "processor". [Ruslan Baidan]
- Add date as property. [Juan Rocha]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Removed the extra param in result of stats creation. [Ruslan Baidan]
- Reverted the anrs param change. [Ruslan Baidan]
- Chg; [documentation] Updated logging.rst. [Cédric Bonhomme]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Updated README. [Cédric Bonhomme]
- New" [documentation] Added information about the logging capacities.
[Cédric Bonhomme]
- Chg [logging] Improved format of the logger. [Cédric Bonhomme]
- Typo. [Cédric Bonhomme]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Create codeql-analysis.yml. [Cedric]
- Added NodeJS Heroku buildpack. [Cédric Bonhomme]
- Updated Heroku Python runtime. [Cédric Bonhomme]
- Updated dependencies (SQLAlchemy and Pandas). [Cédric Bonhomme]
- Removed useless comment. [Cédric Bonhomme]
- Updated comments. [Cédric Bonhomme]
- Removed useless imports. [Cédric Bonhomme]
- Bugfix. [Cédric Bonhomme]
- Test: fetch inforation about previously retrieved threats from MOSP.
[Cédric Bonhomme]
- Dramatic improvement. [Cédric Bonhomme]
- Various improvements and fixes. [Cédric Bonhomme]
- Removed useless print. [Cédric Bonhomme]
- Removed tests. [Cédric Bonhomme]
- Fixed the limit to 0. [Ruslan Baidan]
- Added the functionality to get the last records of the stats for
multiple anrs. [Ruslan Baidan]
- Fixed the mistake. [Ruslan Baidan]
- Added the argument to get the last record of the stats. [Ruslan
Baidan]
- Every 4 hours. [Cédric Bonhomme]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Merge branch 'master' of github.com:monarc-project/stats-service.
[Cédric Bonhomme]
- Fixed the authuntication issue when the key is not correct. [Ruslan
Baidan]
- Added a secret key. [Ruslan Baidan]