From 7f9c9e5d738b11dfa3a7655331b1fd433b0f2d55 Mon Sep 17 00:00:00 2001 From: iamareebjamal Date: Wed, 15 Apr 2020 02:32:17 +0530 Subject: [PATCH] chore: Prepare for v1.15.0 --- CHANGELOG.md | 8 +++++++- app/api/server_version.py | 6 ++---- app/instance.py | 2 +- config.py | 3 ++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85849aa12e..432f3e7179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Changelog -#### v1.15.0 (Unreleased) +#### v1.15.0 (2020-04-15): **BREAKING CHANGE** We are making two-fold change in the underlying DB, we are upgrading from postgres 10 to 12, which was a long time due. And also, we are going to use postgis in future for nearby event fetching, hence we are doing this now in order to avoid changing DB layer later again in future. @@ -21,6 +21,12 @@ Note that if you changed the user and DB name using enironment variables, you ha 7. Start the servers up `docker-compose up -d` +- GraphQL alpha trial +- Allow old dates in session PATCH requests +- Add postgis DB for future use +- Integrate Sentry APM tracing support +- Bug fixes and dependency updates + #### v1.14.0 (2020-03-08): - Fix discount code quantity calculation diff --git a/app/api/server_version.py b/app/api/server_version.py index 02dc8f52d7..630e9e2696 100644 --- a/app/api/server_version.py +++ b/app/api/server_version.py @@ -1,11 +1,9 @@ -from flask import Blueprint, jsonify +from flask import Blueprint, current_app, jsonify -SERVER_VERSION = '1.14.0' info_route = Blueprint('info', __name__) -_build = {'version': SERVER_VERSION} @info_route.route('/info') def version(): - return jsonify(build=_build) + return jsonify(build={'version': current_app.config['VERSION']}) diff --git a/app/instance.py b/app/instance.py index b7f65ddbfe..266f4cad62 100644 --- a/app/instance.py +++ b/app/instance.py @@ -202,7 +202,7 @@ def create_app(): CeleryIntegration(), SqlalchemyIntegration(), ], - traces_sample_rate=0.1 + traces_sample_rate=app.config['SENTRY_TRACES_SAMPLE_RATE'], ) # redis diff --git a/config.py b/config.py index e3a437a5bc..5f76de37b0 100644 --- a/config.py +++ b/config.py @@ -7,7 +7,7 @@ basedir = os.path.abspath(os.path.dirname(__file__)) -VERSION_NAME = '2.1.0-alpha.0' +VERSION_NAME = '1.14.0' LANGUAGES = { 'en': 'English', @@ -72,6 +72,7 @@ class Config: 'API_PROPOGATE_UNCAUGHT_EXCEPTIONS', default=True ) ETAG = True + SENTRY_TRACES_SAMPLE_RATE = env.float('SENTRY_TRACES_SAMPLE_RATE', default=0.01) if not SQLALCHEMY_DATABASE_URI: print('`DATABASE_URL` either not exported or empty')