Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/4.0.3 into release/4.1.0 #4097

Merged
merged 24 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c63f4bb
servicelayer 1.23.2-rc1
stchris Nov 23, 2024
e62c5d4
Bump version: 4.0.1 → 4.0.2-rc1
stchris Nov 23, 2024
fa2b6ae
servicelayer 1.23.2
stchris Nov 23, 2024
6610201
Bump version: 4.0.2-rc1 → 4.0.2
stchris Nov 23, 2024
f45f9a3
bugfix: Run batch indexing on index workers only
stchris Dec 13, 2024
28d8cbc
Use servicelayer 1.23.3-rc1
stchris Dec 13, 2024
2ff613d
Bump version: 4.0.2 → 4.0.3-rc1
stchris Dec 13, 2024
72c53fe
servicelayer 1.23.3-rc2
stchris Dec 17, 2024
bce62c0
Bump version: 4.0.3-rc1 → 4.0.3-rc2
stchris Dec 17, 2024
234e17a
servicelayer 1.23.3-rc3
stchris Dec 18, 2024
1111d0d
Bump version: 4.0.3-rc2 → 4.0.3-rc3
stchris Dec 18, 2024
78f57ad
Bump servicelayer to 1.23.3-rc4
catileptic Dec 18, 2024
c2de577
Bump version: 4.0.3-rc3 → 4.0.3-rc4
catileptic Dec 18, 2024
61ecb4f
Bump servicelayer to 1.23.3-rc5
catileptic Dec 19, 2024
a59ad5d
Bump version: 4.0.3-rc4 → 4.0.3-rc5
stchris Dec 19, 2024
0ef3b84
servicelayer 1.23.3-rc6
stchris Jan 6, 2025
96084f3
Bump version: 4.0.3-rc5 → 4.0.3-rc6
stchris Jan 6, 2025
6e4828e
servicelayer 1.23.3-rc7 and sentry-sdk 2.19.2
stchris Jan 7, 2025
43a4169
Bump version: 4.0.3-rc6 → 4.0.3-rc7
stchris Jan 7, 2025
a3030a1
bugfix: prevent double sentry_sdk init
stchris Jan 7, 2025
9305ace
Bump version: 4.0.3-rc7 → 4.0.3-rc8
stchris Jan 7, 2025
dfe636f
feat: distinct sentry init for api app
stchris Jan 8, 2025
bdd8f26
Bump version: 4.0.3-rc8 → 4.0.3-rc9
stchris Jan 8, 2025
44e458a
Merge branch 'release/4.1.0' into release/4.0.3
stchris Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions aleph/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@
from werkzeug.local import LocalProxy
from werkzeug.middleware.profiler import ProfilerMiddleware

from aleph import __version__ as aleph_version
from aleph.settings import SETTINGS
from aleph.cache import Cache
from aleph.oauth import configure_oauth
from aleph.util import LoggingTransport
from aleph.metrics.flask import PrometheusExtension

import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration


NONE = "'none'"
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -67,18 +63,6 @@ def create_app(config=None):
config = {}

configure_logging(level=logging.DEBUG)

if SETTINGS.SENTRY_DSN:
sentry_sdk.init(
dsn=SETTINGS.SENTRY_DSN,
integrations=[
FlaskIntegration(),
],
traces_sample_rate=0,
release=aleph_version,
environment=SETTINGS.SENTRY_ENVIRONMENT,
send_default_pii=False,
)
app = Flask("aleph")
app.config.from_object(SETTINGS)
app.config.update(config)
Expand Down
3 changes: 2 additions & 1 deletion aleph/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def periodic(self):
delete_expired_exports()
delete_old_notifications()

self.run_indexing_batches()
if SETTINGS.STAGE_INDEX in SETTINGS.ALEPH_STAGES:
self.run_indexing_batches()
except Exception:
log.exception("Error while executing periodic tasks")

Expand Down
17 changes: 17 additions & 0 deletions aleph/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
from aleph.core import create_app
from aleph.settings import SETTINGS
from aleph import __version__ as aleph_version

import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration


if SETTINGS.SENTRY_DSN:
sentry_sdk.init(
dsn=SETTINGS.SENTRY_DSN,
integrations=[
FlaskIntegration(),
],
traces_sample_rate=0,
release=aleph_version,
environment=SETTINGS.SENTRY_ENVIRONMENT,
send_default_pii=False,
)
app = create_app()
2 changes: 1 addition & 1 deletion helm/charts/aleph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: aleph
description: Helm chart for Aleph
type: application
version: 4.1.0-rc4
appVersion: 4.1.0-rc4
appVersion: 4.1.0-rc4
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ followthemoney==3.5.9
followthemoney-store[postgresql]==3.1.0
followthemoney-compare==0.4.4
fingerprints==1.2.3
servicelayer[google,amazon]==1.23.2
servicelayer[google,amazon]==1.23.3-rc7
normality==2.5.0
pantomime==0.6.1

Expand Down Expand Up @@ -36,7 +36,7 @@ requests[security] >= 2.25.1, < 3.0.0
tabulate==0.9.0
zipstream-new==1.1.8
pika==1.3.2
sentry-sdk[flask]==2.10.0
sentry-sdk[flask]==2.19.2
prometheus-client==0.17.1


Expand Down
Loading