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/3.15.3 into main #3413

Merged
merged 11 commits into from
Oct 18, 2023
Merged
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.15.1
current_version = 3.15.3
tag_name = {new_version}
commit = True
tag = True
Expand Down
1 change: 0 additions & 1 deletion aleph/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from aleph.settings import SETTINGS
from aleph.cache import Cache
from aleph.oauth import configure_oauth
from aleph.settings import SETTINGS
from aleph.util import LoggingTransport

import sentry_sdk
Expand Down
5 changes: 2 additions & 3 deletions aleph/logic/util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import jwt
from normality import ascii_text
from urllib.parse import urlencode
from werkzeug.urls import url_join
from urllib.parse import urlencode, urljoin
from datetime import datetime, timedelta

from aleph.core import url_for
Expand All @@ -24,7 +23,7 @@ def ui_url(resource, id=None, _relative=False, **query):
if id is not None:
resource = "%s/%s" % (resource, id)
url = "/" if _relative else SETTINGS.APP_UI_URL
url = url_join(url, resource)
url = urljoin(url, resource)
query = [(q, v) for q, v in query.items() if v is not None]
query_string = urlencode(query, doseq=True)
if len(query_string):
Expand Down
4 changes: 2 additions & 2 deletions aleph/views/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from normality import stringify
from flask import Response, request, render_template
from flask_babel import gettext
from werkzeug.urls import url_parse
from urllib.parse import urlparse
from werkzeug.exceptions import Forbidden
from werkzeug.exceptions import BadRequest, NotFound
from servicelayer.jobs import Job
Expand Down Expand Up @@ -136,7 +136,7 @@ def get_index_collection(collection_id, action=Authz.READ):

def get_url_path(url):
try:
return url_parse(url).replace(netloc="", scheme="").to_url() or "/"
return urlparse(url)._replace(netloc="", scheme="").geturl() or "/"
except Exception:
return "/"

Expand Down
8 changes: 4 additions & 4 deletions contrib/aleph-traefik-minio-keycloak/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ services:
- "traefik.enable=false"

worker:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: aleph worker
restart: on-failure
links:
Expand All @@ -79,7 +79,7 @@ services:
- "traefik.enable=false"

shell:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: /bin/bash
depends_on:
- postgres
Expand All @@ -99,7 +99,7 @@ services:
- "traefik.enable=false"

api:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: gunicorn -w 6 -b 0.0.0.0:8000 --log-level debug --log-file - aleph.wsgi:app
expose:
- 8000
Expand All @@ -121,7 +121,7 @@ services:
- "traefik.enable=false"

ui:
image: ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG:-3.15.3}
depends_on:
- api
- traefik
Expand Down
8 changes: 4 additions & 4 deletions contrib/keycloak/docker-compose.dev-keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
elasticsearch:
build:
context: services/elasticsearch
image: ghcr.io/alephdata/aleph-elasticsearch:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph-elasticsearch:${ALEPH_TAG:-3.15.3}
hostname: elasticsearch
environment:
- discovery.type=single-node
Expand Down Expand Up @@ -55,7 +55,7 @@ services:
app:
build:
context: .
image: alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: alephdata/aleph:${ALEPH_TAG:-3.15.3}
hostname: aleph
command: /bin/bash
links:
Expand Down Expand Up @@ -83,7 +83,7 @@ services:
api:
build:
context: .
image: alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: aleph run -h 0.0.0.0 -p 5000 --with-threads --reload --debugger
ports:
- "127.0.0.1:5000:5000"
Expand Down Expand Up @@ -117,7 +117,7 @@ services:
ui:
build:
context: ui
image: alephdata/aleph-ui:${ALEPH_TAG:-3.15.1}
image: alephdata/aleph-ui:${ALEPH_TAG:-3.15.3}
links:
- api
command: npm run start
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ services:
- aleph.env

worker:
image: alephdata/aleph:${ALEPH_TAG:-3.13.2-rc3}
image: alephdata/aleph:${ALEPH_TAG:-latest}
command: aleph worker
restart: on-failure
depends_on:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
- aleph.env

worker:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: aleph worker
restart: on-failure
depends_on:
Expand All @@ -54,7 +54,7 @@ services:
- aleph.env

shell:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: /bin/bash
depends_on:
- postgres
Expand All @@ -72,7 +72,7 @@ services:
- aleph.env

api:
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph:${ALEPH_TAG:-3.15.3}
command: gunicorn -w 6 -b 0.0.0.0:8000 --timeout 3600 --log-level debug --log-file - aleph.wsgi:app
expose:
- 8000
Expand All @@ -90,7 +90,7 @@ services:
- aleph.env

ui:
image: ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG:-3.15.1}
image: ghcr.io/alephdata/aleph-ui-production:${ALEPH_TAG:-3.15.3}
depends_on:
- api
ports:
Expand Down
4 changes: 2 additions & 2 deletions helm/charts/aleph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: aleph
description: Helm chart for Aleph
type: application
version: 3.15.1
appVersion: 3.15.1
version: 3.15.3
appVersion: 3.15.3
2 changes: 1 addition & 1 deletion helm/charts/aleph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Helm chart for Aleph
| global.amazon | bool | `true` | Are we using AWS services like s3? |
| global.google | bool | `false` | Are we using GCE services like storage, vision api? |
| global.image.repository | string | `"alephdata/aleph"` | Aleph docker image repo |
| global.image.tag | string | `"3.15.1"` | Aleph docker image tag |
| global.image.tag | string | `"3.15.3"` | Aleph docker image tag |
| global.image.tag | string | `"Always"` | |
| global.namingPrefix | string | `"aleph"` | Prefix for the names of k8s resources |

Expand Down
2 changes: 1 addition & 1 deletion helm/charts/aleph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:

image:
repository: ghcr.io/alephdata/aleph
tag: "3.15.1"
tag: "3.15.3"
pullPolicy: Always

commonEnv:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Flask-Babel==3.1.0
flask-talisman==1.1.0
SQLAlchemy==2.0.20
alembic==1.12.0
authlib==1.2.1
authlib==0.15.5

elasticsearch==7.17.0
marshmallow==2.19.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="aleph",
version="3.15.1",
version="3.15.3",
description="Document sifting web frontend",
classifiers=[
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aleph-ui",
"version": "3.15.1",
"version": "3.15.3",
"private": true,
"dependencies": {
"@alephdata/followthemoney": "^3.4.3",
Expand Down
Loading