Skip to content

Commit 7475848

Browse files
authored
Merge pull request #2512 from visualize-admin/endpoint-switch
Endpoint switch (TEST and INT)
2 parents fa87b2a + b275472 commit 7475848

21 files changed

Lines changed: 180 additions & 99 deletions

app/browse/lib/use-redirect-to-latest-cube.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe("use redirect to versioned cube", () => {
4848
datasetIri,
4949
dataSource: {
5050
type: "sparql",
51-
url: "https://int.lindas.admin.ch/query",
51+
url: "https://lindas.int.cz-aws.net/query",
5252
},
5353
})
5454
);

app/components/debug-search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const Search = ({
190190
export const DebugSearch = () => {
191191
const [includeDrafts, setIncludeDrafts] = useState(false);
192192
const [sourceUrl, setSourceUrl] = useState(
193-
"https://int.lindas.admin.ch/query"
193+
"https://lindas.int.cz-aws.net/query"
194194
);
195195

196196
const [customSearch, setCustomSearch] = useState("");
@@ -225,7 +225,7 @@ export const DebugSearch = () => {
225225
onChange={(ev) => setSourceUrl(ev.target.value)}
226226
value={sourceUrl}
227227
>
228-
<MenuItem value="https://int.lindas.admin.ch/query">int</MenuItem>
228+
<MenuItem value="https://lindas.int.cz-aws.net/query">int</MenuItem>
229229
<MenuItem value="https://lindas.admin.ch/query">prod</MenuItem>
230230
</Select>
231231
<TextField

app/components/graphql-joinby.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const combinations: {
3535
{
3636
id: 1,
3737
name: "Photovoltaik + Hydropowerplants",
38-
sourceUrl: "https://int.lindas.admin.ch/query",
38+
sourceUrl: "https://lindas.int.cz-aws.net/query",
3939
cubes: [
4040
{
4141
iri: "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/14",
@@ -70,7 +70,7 @@ const combinations: {
7070
{
7171
id: 2,
7272
name: "Photovoltaik + Photovoltaik GEB",
73-
sourceUrl: "https://int.lindas.admin.ch/query",
73+
sourceUrl: "https://lindas.int.cz-aws.net/query",
7474
cubes: [
7575
{
7676
iri: "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/14",
@@ -100,7 +100,7 @@ const combinations: {
100100
{
101101
id: 3,
102102
name: "NFI Cube + Electrical consumption",
103-
sourceUrl: "https://int.lindas.admin.ch/query",
103+
sourceUrl: "https://lindas.int.cz-aws.net/query",
104104
cubes: [
105105
{
106106
iri: "https://environment.ld.admin.ch/foen/nfi/nfi_T-changes/cube/2024-1",

app/components/graphql-search.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const Search = () => {
8888
variables: {
8989
locale: "en",
9090
sourceType: "sparql",
91-
sourceUrl: "https://int.lindas.admin.ch/query",
91+
sourceUrl: "https://lindas.int.cz-aws.net/query",
9292
filters: [
9393
sharedComponents
9494
? {

app/configurator/components/add-dataset-drawer.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const photovoltaikChartStateMock: ConfiguratorStateConfiguringChart = {
55
state: "CONFIGURING_CHART",
66
dataSource: {
77
type: "sparql",
8-
url: "https://lindas-cached.int.cluster.ldbar.ch/query",
8+
url: "https://lindas-cached.int.cz-aws.net/query",
99
},
1010
layout: {
1111
activeField: "y",

app/configurator/configurator-state/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const configStateMock = {
104104
state: "CONFIGURING_CHART",
105105
dataSource: {
106106
type: "sparql",
107-
url: "https://test.lindas.admin.ch/query",
107+
url: "https://lindas.test.cz-aws.net/query",
108108
},
109109
layout: {
110110
type: "tab",

app/domain/data-source/constants.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ export const SOURCE_OPTIONS = [
2323
supportsCachingPerCubeIri: true,
2424
},
2525
{
26-
value: "sparql+https://lindas-cached.int.cluster.ldbar.ch/query",
26+
value: "sparql+https://lindas-cached.int.cz-aws.net/query",
2727
label: "Int",
28-
url: "https://lindas-cached.int.cluster.ldbar.ch/query",
28+
url: "https://lindas-cached.int.cz-aws.net/query",
2929
isTrusted: false,
3030
supportsCachingPerCubeIri: true,
3131
},
3232
{
33-
value: "sparql+https://int.lindas.admin.ch/query",
33+
value: "sparql+https://lindas.int.cz-aws.net/query",
3434
label: "Int-uncached",
35-
url: "https://int.lindas.admin.ch/query",
35+
url: "https://lindas.int.cz-aws.net/query",
3636
isTrusted: false,
3737
supportsCachingPerCubeIri: true,
3838
},
3939
{
40-
value: "sparql+https://lindas-cached.test.cluster.ldbar.ch/query",
40+
value: "sparql+https://lindas-cached.test.cz-aws.net/query",
4141
label: "Test",
42-
url: "https://lindas-cached.test.cluster.ldbar.ch/query",
42+
url: "https://lindas-cached.test.cz-aws.net/query",
4343
isTrusted: false,
4444
supportsCachingPerCubeIri: true,
4545
},
4646
{
47-
value: "sparql+https://test.lindas.admin.ch/query",
47+
value: "sparql+https://lindas.test.cz-aws.net/query",
4848
label: "Test-uncached",
49-
url: "https://test.lindas.admin.ch/query",
49+
url: "https://lindas.test.cz-aws.net/query",
5050
isTrusted: false,
5151
supportsCachingPerCubeIri: true,
5252
},

app/domain/data-source/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe("datasource state hook", () => {
100100

101101
expect(getState()).toEqual({
102102
type: "sparql",
103-
url: "https://lindas-cached.test.cluster.ldbar.ch/query",
103+
url: "https://lindas-cached.test.cz-aws.net/query",
104104
});
105105
expect(setURLParam).toHaveBeenCalledWith("dataSource", "Test");
106106
});
@@ -113,7 +113,7 @@ describe("datasource state hook", () => {
113113

114114
expect(getState()).toEqual({
115115
type: "sparql",
116-
url: "https://lindas-cached.test.cluster.ldbar.ch/query",
116+
url: "https://lindas-cached.test.cz-aws.net/query",
117117
});
118118
});
119119

app/pages/_pivot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Card = styled(MUICard)({
3636
});
3737

3838
const intDatasource = {
39-
sourceUrl: "https://lindas-cached.int.cluster.ldbar.ch/query",
39+
sourceUrl: "https://lindas-cached.int.cz-aws.net/query",
4040
sourceType: "sparql",
4141
};
4242

app/test/__fixtures/config/int/bathing-water-quality-hierarchie.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dataSet": "https://environment.ld.admin.ch/foen/ubd0104/11",
1919
"dataSource": {
20-
"url": "https://lindas-cached.int.cluster.ldbar.ch/query",
20+
"url": "https://lindas-cached.int.cz-aws.net/query",
2121
"type": "sparql"
2222
},
2323
"chartConfig": {

0 commit comments

Comments
 (0)