Skip to content

Commit 41ef6d1

Browse files
authored
Merge pull request #836 from karrioapi/hotfix-2025.5rc16
[hotfix] 2025.5rc16
2 parents c98cf2d + 7fa6e5e commit 41ef6d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1555
-57473
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Karrio 2025.5rc16
2+
3+
## Changes
4+
5+
### Fix
6+
7+
- hotfix: document generation backward compatibility and improve document template editor
18

29
# Karrio 2025.5rc15
310

apps/api/karrio/server/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.5rc15
1+
2025.5rc16

apps/www/openapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ info:
1414
## Versioning
1515
1616
When backwards-incompatible changes are made to the API, a new, dated version is released.
17-
The current version is `2025.5rc15`.
17+
The current version is `2025.5rc16`.
1818
1919
Read our API changelog to learn more about backwards compatibility.
2020
@@ -84,7 +84,7 @@ info:
8484
All API requests must be made over [HTTPS](http://en.wikipedia.org/wiki/HTTP_Secure).
8585
API requests without authentication will also fail.
8686
title: Karrio API
87-
version: 2025.5rc15
87+
version: 2025.5rc16
8888
paths:
8989
/:
9090
get:

bin/deploy-hobby

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc15}"
5+
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc16}"
66
export SENTRY_DSN="${SENTRY_DSN:-'https://public@sentry.example.com/1'}"
77

88
SECRET_KEY=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56)
@@ -22,7 +22,7 @@ echo ""
2222
if ! [ -z "$1" ]; then
2323
export KARRIO_TAG=$1
2424
else
25-
echo "What version of Karrio would you like to install? (We default to '2025.5rc15')"
25+
echo "What version of Karrio would you like to install? (We default to '2025.5rc16')"
2626
echo "You can check out available versions here: https://hub.docker.com/r/karrio/server/tags"
2727
read -r KARRIO_TAG_READ
2828
if [ -z "$KARRIO_TAG_READ" ]; then

bin/deploy-insiders

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc15}"
5+
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc16}"
66
export SENTRY_DSN="${SENTRY_DSN:-'https://public@sentry.example.com/1'}"
77

88
SECRET_KEY=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56)

bin/server

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,45 @@
33
# Activate python env
44
source "bin/activate-env" >/dev/null 2>&1
55

6+
# Function to download GraphQL schema using curl and introspection
7+
download_graphql_schema() {
8+
local endpoint="$1"
9+
local output_file="$2"
10+
11+
echo "Downloading GraphQL schema from $endpoint..."
12+
13+
curl -s -X POST "$endpoint" \
14+
-H "Content-Type: application/json" \
15+
-d '{
16+
"query": "query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }"
17+
}' \
18+
-o "$output_file" && echo "✓ Schema saved to $output_file" || { echo "✗ Failed to download schema"; exit 1; }
19+
}
20+
621
# Run server commands
722
if [[ "$*" == *gen:ee* ]]; then
823
cd "${ROOT:?}"
9-
npx apollo service:download --endpoint=http://localhost:5002/graphql/ "${ROOT:?}/schemas/graphql-ee.json"
24+
download_graphql_schema "http://localhost:5004/graphql/" "${ROOT:?}/schemas/graphql-ee.json"
1025
cd -
1126
elif [[ "$*" == *gen:graph* ]]; then
1227
cd "${ROOT:?}"
13-
npx apollo service:download --endpoint=http://localhost:5002/graphql/ "${ROOT:?}/schemas/graphql.json"
28+
download_graphql_schema "http://localhost:5004/graphql/" "${ROOT:?}/schemas/graphql.json"
1429
cd -
1530
elif [[ "$*" == *gen:admin* ]]; then
1631
cd "${ROOT:?}"
17-
npx apollo service:download --endpoint=http://localhost:5002/admin/graphql/ "${ROOT:?}/schemas/graphql-admin.json"
32+
download_graphql_schema "http://localhost:5004/admin/graphql/" "${ROOT:?}/schemas/graphql-admin.json"
1833
cd -
1934
elif [[ "$*" == *gen:platform* ]]; then
2035
cd "${ROOT:?}"
21-
npx apollo service:download --endpoint=http://0.0.0.0:5002/admin/graphql/ "${ROOT:?}/ee/platform/schemas/graphql-platform.json"
36+
download_graphql_schema "http://localhost:5004/admin/graphql/" "${ROOT:?}/ee/platform/schemas/graphql-platform.json"
2237
cd -
2338
elif [[ "$*" == *gen:openapi* ]]; then
2439
cd "${ROOT:?}"
25-
curl http://localhost:5002/shipping-openapi -o "${ROOT:?}/schemas/openapi.yml"
40+
curl http://localhost:5004/shipping-openapi -o "${ROOT:?}/schemas/openapi.yml"
2641
cd -
2742
elif [[ "$*" == *gen:ref* ]]; then
2843
cd "${ROOT:?}"
29-
curl http://localhost:5002/v1/carriers >"${ROOT:?}/apps/web/public/carrier-integrations.json"
44+
curl http://localhost:5004/v1/carriers >"${ROOT:?}/apps/web/public/carrier-integrations.json"
3045
cd -
3146
elif [[ "$*" == *gen:ts:cli* ]]; then
3247
cd "${ROOT:?}"
@@ -53,12 +68,12 @@ elif [[ "$*" == *build:js* ]]; then
5368
else
5469
echo "Help: You can pass any of the following commands to the server"
5570
echo "-----"
56-
echo "gen:ee - Generate GraphQL enterprise edition schema from localhost:5002/graphql/"
57-
echo "gen:graph - Generate standard GraphQL schema from localhost:5002/graphql/"
58-
echo "gen:admin - Generate Admin GraphQL schema from localhost:5002/admin/graphql/"
59-
echo "gen:platform - Generate Platform GraphQL schema from 0.0.0.0:5002/admin/graphql/"
60-
echo "gen:openapi - Generate OpenAPI schema from localhost:5002/shipping-openapi"
61-
echo "gen:ref - Generate carrier integrations reference file from localhost:5002/v1/carriers"
71+
echo "gen:ee - Generate GraphQL enterprise edition schema from localhost:5004/graphql/"
72+
echo "gen:graph - Generate standard GraphQL schema from localhost:5004/graphql/"
73+
echo "gen:admin - Generate Admin GraphQL schema from localhost:5004/admin/graphql/"
74+
echo "gen:platform - Generate Platform GraphQL schema from localhost:5004/admin/graphql/"
75+
echo "gen:openapi - Generate OpenAPI schema from localhost:5004/shipping-openapi"
76+
echo "gen:ref - Generate carrier integrations reference file from localhost:5004/v1/carriers"
6277
echo "gen:ts:cli - Generate TypeScript fetch client from OpenAPI schema using docker"
6378
echo "build:js - Build Browser JavaScript client (runs gen:ts:cli, installs dependencies, builds with gulp)"
6479
fi

bin/upgrade-hobby

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else
4141
fi
4242

4343
[[ -f ".env" ]] && export $(cat .env | xargs) || (echo "No .env file found. Please create it with SECRET_KEY and DOMAIN set." && exit 1)
44-
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc15}"
44+
export KARRIO_TAG="${KARRIO_TAG:-2025.5rc16}"
4545

4646
# get karrio scripts
4747
mkdir -p ./karrio

docker/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ REDIS_PORT=6379
3030
# API - Configuration for the Nginx Reverse proxy.
3131
############
3232

33-
KARRIO_TAG=2025.5rc15
33+
KARRIO_TAG=2025.5rc16
3434
KARRIO_HTTP_PORT=5002
3535

3636
############

ee/insiders

0 commit comments

Comments
 (0)