Skip to content

Commit

Permalink
chore: Prepare for v1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Apr 14, 2020
1 parent d500018 commit 7f9c9e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions app/api/server_version.py
Original file line number Diff line number Diff line change
@@ -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']})
2 changes: 1 addition & 1 deletion app/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def create_app():
CeleryIntegration(),
SqlalchemyIntegration(),
],
traces_sample_rate=0.1
traces_sample_rate=app.config['SENTRY_TRACES_SAMPLE_RATE'],
)

# redis
Expand Down
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 7f9c9e5

Please sign in to comment.