Skip to content

Commit 6569446

Browse files
authored
Merge pull request #157 from metalbear-co/focus-queue-splitting
queue splitting focus view
2 parents c1e86d3 + 00e5711 commit 6569446

6 files changed

Lines changed: 414 additions & 26 deletions

File tree

apps/shop/delivery-service/package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"key": "dan",
3+
"target": {
4+
"path": "deploy/inventory-service",
5+
"namespace": "shop"
6+
},
7+
"feature": {
8+
"network": {
9+
"incoming": {
10+
"mode": "steal",
11+
"http_filter": {
12+
"header_filter": "baggage:\\s*[^\\n]*\\bmirrord={{key}}\\b"
13+
}
14+
},
15+
"outgoing": true
16+
},
17+
"db_branches": [
18+
{
19+
"id": "{{key}}01-branch-db",
20+
"type": "pg",
21+
"ttl_secs": 30,
22+
"version": "16.0",
23+
"connection": {
24+
"url": "DATABASE_URL"
25+
},
26+
"copy": {
27+
"mode": "schema"
28+
}
29+
}
30+
]
31+
}
32+
}

apps/shop/metal-mart-frontend/src/app/api/orders/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ const base = process.env.ORDER_SERVICE_URL || "http://localhost:80";
22

33
export async function POST(req: Request) {
44
const body = await req.json();
5+
const headers: Record<string, string> = { "Content-Type": "application/json" };
6+
const baggage = req.headers.get("baggage");
7+
if (baggage) headers["baggage"] = baggage;
58
const res = await fetch(`${base}/orders`, {
69
method: "POST",
7-
headers: { "Content-Type": "application/json" },
10+
headers,
811
body: JSON.stringify(body),
912
});
1013
const data = await res.json();

apps/visualization-shop/visualization-frontend/mirrord-visual-front-shop.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"key": "ari",
2+
"key": "dan",
33
"target": {
44
"namespace": "visualization-shop",
55
"path": {
@@ -15,9 +15,7 @@
1515
"override": {
1616
"DB_BRANCH_MOCK_DATA": "false",
1717
"QUEUE_SPLITTING_MOCK_DATA": "false",
18-
"MULTIPLE_SESSION_MOCK_DATA": "false",
19-
"NEXT_PUBLIC_VISUALIZATION_BACKEND_URL":"http://localhost:8080"
20-
18+
"MULTIPLE_SESSION_MOCK_DATA": "false"
2119
}
2220
},
2321
"network": {

0 commit comments

Comments
 (0)