Recent Releases of silence
silence - 2.2.0
- Autogenerated views do not allow users to view them by a specific primary key argument, as the view might not have access to said arguments, now only GetAll is implemented.
- request body parameters now show up on silence console if the corresponding flag is true in settings.py
- wontfix for DB table capitalization, linux users beware.
- Python
Published by github-actions[bot] about 2 years ago
silence - 2.1.10
- Privacy improvements for logging and debug
- No information is provided anymore on whether a user exists when trying to log in
- Fixed automated testing for Python 3.6 (actions/setup-python#544)
- Refactored README and moved most of the info to the newly created wiki page.
- Python
Published by github-actions[bot] about 3 years ago
silence - 2.1.8
- Silence now issues a warning when a configuration setting in
settings.pyis unknown. - Added autogeneration of a JS module for login and register, if they are enabled.
DATEandTIMEcolumns are now also serialized in ISO format.- Autogenerate additional JS methods to query views by the primary keys from other tables that they contain.
- The
createapiandcreatetestscommands now support tables without a PK. - Some code refactoring and improvements.
- Python
Published by github-actions[bot] over 3 years ago
silence - 2.1.7
- Some improvements to logging:
- Full stack traces are now only printed if the debug mode is active, otherwise, just the error string is shown.
- The month in the access logs is now numerical instead of textual.
- Colors are (hopefully!) no longer mixed up on Windows when access and non-access log appear in quick succession.
- Fixed some bugs from the previous update and made detection of Flask logs more robust.
- Python
Published by github-actions[bot] almost 4 years ago
silence - 2.1.5
- Big upgrade to all dependencies, especially to Flask to prevent a bug in Flask 1.X due to a recently upgraded transitive dependency (pallets/flask#4494).
- Improvements to some messages and formatting for the autogenerated JS files.
- The warning message when a new version is available now also includes a link to the changelog.
- Python
Published by github-actions[bot] almost 4 years ago
silence - 2.1.0
- Added the posibility to use a
$loggedIdparameter in any SQL query, which is replaced by the value of the primary key of the user performing the request. If the user is not authenticated, it becomesNULL. Thanks to @S0ULIS for the pull request! - Added a new optional
active_statusattribute forUSER_AUTH_DATA. By setting this to the name of a boolean column in the users table, Silence will check whether the user is active when logging in. This can be disabled either by not specifying this attribute, or by setting theCHECK_USER_IS_ACTIVEsetting toFalse. - Added some info about Silence's maintainers in the autogenerated JS files.
- Fixed a bug regarding the access restriction via roles.
- Updated README
- Python
Published by github-actions[bot] over 4 years ago
silence - 2.0.0
- IMPORTANT: Silence v2 is not compatible with projects generated using Silence v1.
- Added fine-grained endpoint access by role:
- Added a new optional
rolekey to specify the role column inUSER_AUTH_DATA. - Added a new
DEFAULT_ROLE_REGISTERsetting to specify the role that should be assigned to new users when using the/registerendpoint. - Added a new
allowed_rolesparameters for the@endpointdecorator, which receives a list of the roles that can access the endpoint. There is a special value,*, which allows all roles to use the endpoint.
- Added a new optional
- Added a new way of creating endpoints as JSON files
- Added a new
createapicommand to auto generate the .json endpoint files and .js api consumption files automatically based on the database tables and already defined endpoints by the user. This feature can be toggled throughENABLE_ENDPOINT_AUTO_GENERATIONin thesettings.pyfile.
- Python
Published by github-actions[bot] over 4 years ago
silence - 1.2.3
- Changed the serialization of datetime objects to follow ISO 8601.
- Set the MIME type of
.jsfiles toapplication/javascriptmanually, to prevent the wrong type from being dispatched due to bad configurations of the Windows registry.
- Python
Published by github-actions[bot] almost 5 years ago
silence - 1.2.2
- Added a new
HTTP_CACHE_TIMEsetting to control caching of static web files. Defaults to 0 for easier development, which means that all static files (HTML, JS, CSS...) are not cached by web browsers. - The list of all loaded endpoints is now displayed when using
silence new. Added a newSHOW_ENDPOINT_LISTsetting to disable this behavior. - The
SECRET_KEYis now changed in-place when creating a project from a repo URL if it already exists, instead of always adding it in a new line with the info comments.
- Python
Published by github-actions[bot] almost 5 years ago
silence - 1.2.0
- Improvements to
silence new:- It now requires a project name, i.e., you cannot use
silence newwithout at least one argument. - It downloads a certain template by default, right now, 'employees'.
- A different template can be specified using the
--templateargument. - A GitHub repo URL can be provided using the
--urlargument. Note that--templateand--urlare mutually exclusive. - The
--blankparameter is provided as a shorthand for--template blank. - It now removes any
.gitkeepfiles found in the downloaded project. - If a
SECRET_KEYis already set for the downloaded project,silence newdeletes it and provides a new, randomly generated one. - A warning is issued if a
settings.pyfile cannot be found in the downloaded project. - It automatically determines the default branch name for the repository to download, instead of assuming "master" (yes, I'm looking at you, "main").
- It now requires a project name, i.e., you cannot use
- A new command,
silence list-templates, retrieves the list of existing project templates. - Minor: Vectorized logo shown in README.md.
- Python
Published by github-actions[bot] about 5 years ago
silence - 1.1.0
- Added a check for new Silence versions when using
silence run, and aCHECK_FOR_UPDATESconfiguration parameter to opt out of this check - Add support for storing the endpoint files in a folder named
endpoints/instead ofapi/. The support for anapi/folder will be dropped in the future. - Display a warning message if endpoints are found in the
api/folder instead ofendpoints/
- Python
Published by github-actions[bot] over 5 years ago
silence - 0.4.0
Changelog: - Added support for application/json as encoding for POST/PUT requests - Added configuration options to disable login and register - Custom formatting for HTTP log messages - Use a connection pool to connect to the DB
- Python
Published by github-actions[bot] over 5 years ago