Skip to content

Commit 948ba58

Browse files
authored
Merge branch 'IQSS:develop' into codemeta_structure
2 parents 415be06 + c4f3d76 commit 948ba58

316 files changed

Lines changed: 9294 additions & 2440 deletions

File tree

Some content is hidden

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

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APP_IMAGE=gdcc/dataverse:unstable
22
POSTGRES_VERSION=17
33
DATAVERSE_DB_USER=dataverse
4-
SOLR_VERSION=9.3.0
5-
SKIP_DEPLOY=0
4+
SOLR_VERSION=9.8.0
5+
SKIP_DEPLOY=0

.github/workflows/codeql.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "develop", "master" ]
17+
pull_request:
18+
branches: [ "develop", "master" ]
19+
schedule:
20+
- cron: '30 6 * * 4'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
permissions:
32+
# required for all workflows
33+
security-events: write
34+
35+
# required to fetch internal or private CodeQL packs
36+
packages: read
37+
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
41+
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
include:
46+
- language: actions
47+
build-mode: none
48+
- language: java-kotlin
49+
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
50+
- language: javascript-typescript
51+
build-mode: none
52+
- language: python
53+
build-mode: none
54+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
55+
# Use `c-cpp` to analyze code written in C, C++ or both
56+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
57+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
58+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
59+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
60+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
61+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/checkout@v4
65+
66+
# Add any setup steps before running the `github/codeql-action/init` action.
67+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
68+
# or others). This is typically only required for manual builds.
69+
# - name: Setup runtime (example)
70+
# uses: actions/setup-example@v1
71+
72+
# Initializes the CodeQL tools for scanning.
73+
- name: Initialize CodeQL
74+
uses: github/codeql-action/init@v3
75+
with:
76+
languages: ${{ matrix.language }}
77+
build-mode: ${{ matrix.build-mode }}
78+
# If you wish to specify custom queries, you can do so here or in a config file.
79+
# By default, queries listed here will override any specified in a config file.
80+
# Prefix the list here with "+" to use these queries and those in the config file.
81+
82+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
83+
# queries: security-extended,security-and-quality
84+
85+
# If the analyze step fails for one of the languages you are analyzing with
86+
# "We were unable to automatically build your code", modify the matrix above
87+
# to set the build mode to "manual" for that language. Then modify this step
88+
# to build your code.
89+
# ℹ️ Command-line programs to run using the OS shell.
90+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
91+
- if: matrix.build-mode == 'manual'
92+
shell: bash
93+
run: |
94+
echo 'If you are using a "manual" build mode for one or more of the' \
95+
'languages you are analyzing, replace this with the commands to build' \
96+
'your code, for example:'
97+
echo ' make bootstrap'
98+
echo ' make release'
99+
exit 1
100+
101+
- name: Perform CodeQL Analysis
102+
uses: github/codeql-action/analyze@v3
103+
with:
104+
category: "/language:${{matrix.language}}"

.github/workflows/container_base_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# Configure a remote ARM64 build host in addition to the local AMD64 in two steps.
5454
- name: Setup SSH agent
5555
if: ${{ github.event_name != 'schedule' }}
56-
uses: webfactory/ssh-agent@v0.9.0
56+
uses: webfactory/ssh-agent@v0.9.1
5757
with:
5858
ssh-private-key: ${{ secrets.BUILDER_ARM64_SSH_PRIVATE_KEY }}
5959
- name: Provide the known hosts key and the builder config

.github/workflows/copy_labels.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Copy labels from issue to pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
copy-labels:
9+
runs-on: ubuntu-latest
10+
name: Copy labels from linked issues
11+
steps:
12+
- name: copy-labels
13+
uses: michalvankodev/copy-issue-labels@v1.3.0
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy_beta_testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
overwrite: true
6969

7070
- name: Execute payara war deployment remotely
71-
uses: appleboy/ssh-action@v1.2.0
71+
uses: appleboy/ssh-action@v1.2.2
7272
env:
7373
INPUT_WAR_FILE: ${{ env.war_file }}
7474
with:

conf/solr/schema.xml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,36 +38,37 @@
3838
catchall "text" field, and use that for searching.
3939
-->
4040

41-
<schema name="default-config" version="1.6">
41+
<schema name="default-config" version="1.7">
4242
<!-- attribute "name" is the name of this schema and is only used for display purposes.
43-
version="x.y" is Solr's version number for the schema syntax and
43+
version="x.y" is Solr's version number for the schema syntax and
4444
semantics. It should not normally be changed by applications.
4545
46-
1.0: multiValued attribute did not exist, all fields are multiValued
46+
1.0: multiValued attribute did not exist, all fields are multiValued
4747
by nature
48-
1.1: multiValued attribute introduced, false by default
49-
1.2: omitTermFreqAndPositions attribute introduced, true by default
48+
1.1: multiValued attribute introduced, false by default
49+
1.2: omitTermFreqAndPositions attribute introduced, true by default
5050
except for text fields.
5151
1.3: removed optional field compress feature
5252
1.4: autoGeneratePhraseQueries attribute introduced to drive QueryParser
53-
behavior when a single string produces multiple tokens. Defaults
53+
behavior when a single string produces multiple tokens. Defaults
5454
to off for version >= 1.4
55-
1.5: omitNorms defaults to true for primitive field types
55+
1.5: omitNorms defaults to true for primitive field types
5656
(int, float, boolean, string...)
5757
1.6: useDocValuesAsStored defaults to true.
58+
1.7: docValues defaults to true, uninvertible defaults to false.
5859
-->
5960

6061
<!-- Valid attributes for fields:
6162
name: mandatory - the name for the field
62-
type: mandatory - the name of a field type from the
63+
type: mandatory - the name of a field type from the
6364
fieldTypes section
6465
indexed: true if this field should be indexed (searchable or sortable)
6566
stored: true if this field should be retrievable
6667
docValues: true if this field should have doc values. Doc Values is
6768
recommended (required, if you are using *Point fields) for faceting,
6869
grouping, sorting and function queries. Doc Values will make the index
69-
faster to load, more NRT-friendly and more memory-efficient.
70-
They are currently only supported by StrField, UUIDField, all
70+
faster to load, more NRT-friendly and more memory-efficient.
71+
They are currently only supported by StrField, UUIDField, all
7172
*PointFields, and depending on the field type, they might require
7273
the field to be single-valued, be required or have a default value
7374
(check the documentation of the field type you're interested in for
@@ -82,9 +83,9 @@
8283
given field.
8384
When using MoreLikeThis, fields used for similarity should be
8485
stored for best performance.
85-
termPositions: Store position information with the term vector.
86+
termPositions: Store position information with the term vector.
8687
This will increase storage costs.
87-
termOffsets: Store offset information with the term vector. This
88+
termOffsets: Store offset information with the term vector. This
8889
will increase storage costs.
8990
required: The field is required. It will throw an error if the
9091
value does not exist
@@ -102,10 +103,10 @@
102103
<!-- In this _default configset, only four fields are pre-declared:
103104
id, _version_, and _text_ and _root_. All other fields will be type guessed and added via the
104105
"add-unknown-fields-to-the-schema" update request processor chain declared in solrconfig.xml.
105-
106-
Note that many dynamic fields are also defined - you can use them to specify a
106+
107+
Note that many dynamic fields are also defined - you can use them to specify a
107108
field's type via field naming conventions - see below.
108-
109+
109110
WARNING: The _text_ catch-all field will significantly increase your index size.
110111
If you don't need it, consider removing it and the corresponding copyField directive."
111112
-->
@@ -115,12 +116,12 @@
115116
<field name="_version_" type="plong" indexed="false" stored="false"/>
116117
<field name="_root_" type="string" indexed="true" stored="false" docValues="false" />
117118

118-
119-
120-
121-
122-
<!-- Start: Dataverse-specific -->
123-
119+
120+
121+
122+
123+
<!-- Start: Dataverse-specific -->
124+
124125
<!-- catchall field, containing all other searchable text fields (implemented
125126
via copyField further on in this schema -->
126127
<!-- Dataverse solr 7.3.0: for some reason the old text wasn't working so switched to _text_ for copyfields -->
@@ -205,7 +206,8 @@
205206
<field name="deaccessionReason" type="string" stored="true" indexed="false" multiValued="false"/>
206207
<field name="fileRestricted" type="boolean" stored="true" indexed="false" multiValued="false"/>
207208
<field name="canDownloadFile" type="boolean" stored="true" indexed="false" multiValued="false"/>
208-
209+
<field name="versionNote" type="string" stored="true" indexed="false" multiValued="false"/>
210+
209211
<!-- Added for Dataverse 4.0 alpha 1. This is a required field so we don't have to go to the database to get the database id of the entity. On cards we use the id in links -->
210212
<field name="entityId" type="plong" stored="true" indexed="true" multiValued="false"/>
211213

@@ -216,7 +218,7 @@
216218
<!-- https://redmine.hmdc.harvard.edu/issues/3482 -->
217219
<!-- 'Sorting can be done on the "score" of the document, or on any multiValued="false" indexed="true" field provided that field is either non-tokenized (ie: has no Analyzer) or uses an Analyzer that only produces a single Term (ie: uses the KeywordTokenizer)' http://wiki.apache.org/solr/CommonQueryParameters#sort -->
218220
<!-- http://stackoverflow.com/questions/13360706/solr-4-0-alphabetical-sorting-trouble/13361226#13361226 -->
219-
<field name="nameSort" type="alphaOnlySort" indexed="true" stored="true"/>
221+
<field name="nameSort" type="string" indexed="true" stored="true"/>
220222

221223
<field name="dateSort" type="pdate" indexed="true" stored="true"/>
222224

@@ -785,7 +787,7 @@
785787
<filter class="solr.TrimFilterFactory" />
786788
<!-- The PatternReplaceFilter gives you the flexibility to use
787789
Java Regular expression to replace any sequence of characters
788-
matching a pattern with an arbitrary replacement string,
790+
matching a pattern with an arbitrary replacement string,
789791
which may include back references to portions of the original
790792
string matched by the pattern.
791793
@@ -798,8 +800,8 @@
798800
<!-- https://redmine.hmdc.harvard.edu/issues/3482#note-11 -->
799801
<!-- <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" /> -->
800802
</analyzer>
801-
</fieldType>
802-
803+
</fieldType>
804+
803805
<!-- The StrField type is not analyzed, but indexed/stored verbatim. -->
804806
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
805807
<fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />

0 commit comments

Comments
 (0)