Skip to content

Commit 28a5ead

Browse files
Merge branch 'main' into release
2 parents d497b32 + 80839ec commit 28a5ead

File tree

104 files changed

+5932
-46847
lines changed

Some content is hidden

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

104 files changed

+5932
-46847
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
lerna-debug.log
22
.groovylintrc.json
33
.vscode/*.log
4+
.vscode/launch.json
45

56
**/dist
67
**/node_modules
78
**/.DS_Store
89
**/*.env*
910
!**/.env.schema
11+
**/package-lock.json
1012

1113
*.tsbuildinfo

docs/setup.md

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

55
Before you begin, ensure you have the following installed on your system:
66

7-
- Node.js (v22)
7+
- Node.js (v22+)
88
- [Docker](https://www.docker.com/products/docker-desktop/) (v4.39.0 or higher)
99

1010
## Developer Setup

docs/usage/02-arranger-components.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@ Arranger offers its own front-end library of reusable components to facilitate q
1010

1111
## Configuration Files Overview
1212

13-
Four main configuration files control Arranger, and its components' behaviours:
13+
As part of our latest work, in order to ensure Arranger v3.0 remains somewhat backawards-compatible and to facilitate the migration process from v2, we've established a temporary way to control the Server and Components' behaviour through files that centralize the way your indexed data is found and displayed.
14+
This design will change in future versions (with corresponding documentation), to establish a better separation of concerns between front and back-end.
15+
16+
These customizations can be divided into four files as follows:
1417

1518
1. **base.json**: Defines the core settings for the Elasticsearch index (Important for the Arranger Server).
1619
2. **extended.json**: Specifies all fields and their display names.
1720
3. **table.json**: Configures the columns displayed in the data table.
1821
4. **facets.json**: Defines the aggregations (facets) for data exploration and filtering.
1922

23+
(For further reference on these and other available options, please review the [configuration schema](https://github.com/overture-stack/arranger/blob/main/modules/server/configTemplates/configs.json.schema))
24+
2025
<br/>
2126

2227
:::info Configuration File Location
2328

24-
Templates of these files can be [found in the Arranger repository located here](https://github.com/overture-stack/arranger/tree/develop/modules/server/configTemplates). Active configuration files must be stored in a `configs` folder located within the `app/modules/server/` directory (unless specified otherwise using the `CONFIG_PATH` environment variable).
29+
Templates of these files can be [found in the Arranger repository located here](https://github.com/overture-stack/arranger/tree/main/modules/server/configTemplates). Active configuration files must be stored in a `configs` folder located within the `app/modules/server/` directory (unless specified otherwise using the `CONFIG_PATH` environment variable).
2530

2631
:::
2732

integration-tests/import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "integration-tests-import",
33
"dependencies": {
4-
"@overture-stack/arranger-components": "*"
4+
"@overture-stack/arranger-components": "file:../../modules/components"
55
},
66
"devDependencies": {
77
"jest": "^29.7.0",

integration-tests/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "integration-tests-server",
33
"dependencies": {
44
"@elastic/elasticsearch": "^7.17.14",
5-
"@overture-stack/arranger-server": "*",
5+
"@overture-stack/arranger-server": "file:../../modules/server",
66
"axios": "^1.7.9",
77
"graphql": "^16.6.0",
88
"graphql-tag": "^2.12.6",

integration-tests/server/test/readSearchData.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export default ({ api, documentType, gqlPath }) => {
9999
},
100100
},
101101
},
102-
});
102+
},
103+
);
103104

104105
assert.deepEqual(
105106
await api
@@ -141,7 +142,8 @@ export default ({ api, documentType, gqlPath }) => {
141142
},
142143
},
143144
},
144-
});
145+
},
146+
);
145147

146148
assert.deepEqual(
147149
await api
@@ -188,7 +190,8 @@ export default ({ api, documentType, gqlPath }) => {
188190
},
189191
},
190192
},
191-
});
193+
},
194+
);
192195

193196
assert.deepEqual(
194197
await api
@@ -235,7 +238,8 @@ export default ({ api, documentType, gqlPath }) => {
235238
},
236239
},
237240
},
238-
});
241+
},
242+
);
239243
});
240244

241245
test('3.excludes access_denied files', async () => {
@@ -264,7 +268,7 @@ export default ({ api, documentType, gqlPath }) => {
264268

265269
assert.deepEqual(
266270
data?.data?.[documentType]?.hits?.edges?.every((edge) => !edge.node.access_denied),
267-
true
271+
true,
268272
);
269273
});
270274

@@ -306,9 +310,6 @@ export default ({ api, documentType, gqlPath }) => {
306310
console.log('readSearchData error', err);
307311
});
308312

309-
assert.deepEqual(
310-
data?.data?.[documentType]?.hits?.edges?.length,
311-
0
312-
);
313+
assert.deepEqual(data?.data?.[documentType]?.hits?.edges?.length, 0);
313314
});
314315
};

modules/components/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Data Portal Components
22

3-
## Roadmap
3+
## Developer Experience (WIP)
44

5-
#### Aggregations
6-
7-
#### SQON aka "Current Filters"
8-
9-
#### ResultsTable
5+
- use `"preserveSymlinks": true` client-side in tsconfig.json, when implementing locally through `npm link`. This prevent duplicate import of deep dependencies (e.g. @types/react).

0 commit comments

Comments
 (0)