Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removal of useless comment #219

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
288798b
removal of useless comment
MajoBerger Mar 16, 2023
7b1a638
Updated database model following the new requirements from migration.…
milanmajchrak Apr 17, 2023
0384689
migration2clarin7/notice-step-is-missing (#231)
milanmajchrak Apr 25, 2023
6df003f
migrate2clarin7/authors-name-surname-autocomplete (#235)
milanmajchrak Apr 25, 2023
202e196
migration2clarin7/fix different separator in crosswalks and added met…
milanmajchrak Apr 26, 2023
de32dfb
70-BE/license-page-missing-pagination-sorting (#250)
milanmajchrak Apr 28, 2023
3039ab8
64-BE/user could see withdrawn items copied some code from vanilla (#…
milanmajchrak May 2, 2023
5be701e
Added doc (#260)
milanmajchrak May 3, 2023
6de72b8
93BE/hide-some-metadata-fields-from-full-item-page (#258)
milanmajchrak May 3, 2023
66c239d
internal/migrate-clarin-dspace5-to-clarin-dspace7-continue (#220)
Paurikova2 May 3, 2023
c2e28bc
96-BE/update-readme-with-issues (#264)
milanmajchrak May 3, 2023
99e7713
internal-BE/fix-failing-integration-tests (#268)
milanmajchrak May 3, 2023
313d1fa
102-BE/cannot-read-big-file-by-readAllBytes (#277)
Paurikova2 May 11, 2023
7455b79
103-be/shibboleth-login-wrong-error-page (#279)
milanmajchrak May 15, 2023
1b5eb81
105-be/user-is-not-registered-after-shibboleth-login (#281)
milanmajchrak May 17, 2023
f64b24d
88-BE/license-labels-are-missing-icons (#273)
Paurikova2 May 18, 2023
9f0e6b6
110-be/imported-item-should-not-regenerate-certain-metadata-fields (#…
milanmajchrak May 22, 2023
7fc92a9
Changed logging (#286)
milanmajchrak May 25, 2023
07752b1
116 be/deleted bitstreams cannot be imported (#296)
milanmajchrak Jun 1, 2023
3f9ef3f
80-BE/import-tasklistitem (#300)
Paurikova2 Jun 2, 2023
2315819
throw exception soon and explain better (#308)
MajoBerger Jun 6, 2023
c3020b5
added commit (#306)
Paurikova2 Jun 14, 2023
6aee0c3
87-BE/adding-missing-attributes (#303)
Paurikova2 Jun 14, 2023
ae6ef90
119-BE/remove-validation-of-deleted-bitstreams (#302)
Paurikova2 Jun 14, 2023
689fd59
added mvn argument fail-at-end (#319)
MajoBerger Jun 19, 2023
dc21db3
75-BE/missing-handles (#314)
Paurikova2 Jun 21, 2023
f26cbec
122-be/restricted-item-download-issues (#331)
milanmajchrak Jun 21, 2023
c68878c
Be/fixed bitstreams added user metadata (#295)
milanmajchrak Jun 21, 2023
3136308
Removed not defined search options. (#337)
milanmajchrak Jun 22, 2023
cf61d34
browse - Updated IT according to updated cfg (#339)
milanmajchrak Jun 22, 2023
83569da
add redeploy to dev-5 -> curl call to deploy action
MajoBerger Jun 30, 2023
2c12b8f
correct redeploy branch in github action
MajoBerger Jun 30, 2023
c6d6bd3
trigger docker images on correct branch
MajoBerger Jul 6, 2023
03ed41f
disable dspace v 7.2 on dev-5
MajoBerger Jul 21, 2023
0eb8d63
Upgrade CLARIN-DSpace to 7.5 (#344)
milanmajchrak Aug 4, 2023
4658b08
tul/merge-into-clarin-dspace (#402)
milanmajchrak Aug 8, 2023
7e0818f
data-pump/update-non-migrated-tables (#403)
milanmajchrak Aug 10, 2023
6a96d71
ufal/be-date-duplicate-metadata-value (#416)
milanmajchrak Aug 11, 2023
b0ce562
ufal/be-hidden-items-should-not-be-seen (#415)
milanmajchrak Aug 11, 2023
ed2eab3
ufal/be-add-missing-fileextension (#414)
milanmajchrak Aug 11, 2023
ed4b4a4
Update issue assign to new project
MajoBerger Aug 21, 2023
3a83e43
ufal/update-index-for-language (#424)
milanmajchrak Sep 4, 2023
b733fab
internal/be-shibboleth-missing-headers-wrong-redirection
milanmajchrak Sep 4, 2023
ec68eaa
ufal/be-wrong-citation-author-sequence (#417)
milanmajchrak Sep 4, 2023
8c7d575
ufal/be-netid-not-to-be-mandatory
milanmajchrak Sep 4, 2023
c64764f
added indexing scripts to docker image (#422)
MajoBerger Sep 5, 2023
80face6
internal/update-localcfg-example
milanmajchrak Sep 6, 2023
1eb7971
internal/epic-pid-service-never-called (#431)
milanmajchrak Sep 12, 2023
fb252cf
ufal/be-confidence-authority-not-imported (#438)
milanmajchrak Sep 21, 2023
d49f106
Ufal be/handleserver fix (#446)
MajoBerger Sep 28, 2023
ded4fc4
redeploy after build image
MajoBerger Sep 28, 2023
9caa945
ufal/be-user_metadata-wrong-import (#440)
milanmajchrak Sep 28, 2023
a965335
WHY NULL OH NO (#448)
MajoBerger Sep 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 7 additions & 10 deletions .github/disabled-workflows/issue_opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,22 @@ on:
issues:
types: [opened]

permissions: {}
jobs:
automation:
runs-on: ubuntu-latest
steps:
# Add the new issue to a project board, if it needs triage
# See https://github.com/marketplace/actions/create-project-card-action
- name: Add issue to project board
# See https://github.com/actions/add-to-project
- name: Add issue to triage board
# Only add to project board if issue is flagged as "needs triage" or has no labels
# NOTE: By default we flag new issues as "needs triage" in our issue template
if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '')
uses: technote-space/create-project-card-action@v1
uses: actions/add-to-project@v0.3.0
# Note, the authentication token below is an ORG level Secret.
# It must be created/recreated manually via a personal access token with "public_repo" and "admin:org" permissions
# It must be created/recreated manually via a personal access token with admin:org, project, public_repo permissions
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token
# This is necessary because the "DSpace Backlog" project is an org level project (i.e. not repo specific)
with:
GITHUB_TOKEN: ${{ secrets.ORG_PROJECT_TOKEN }}
PROJECT: DSpace Backlog
COLUMN: Triage
CHECK_ORG_PROJECT: true
# Ignore errors.
continue-on-error: true
github-token: ${{ secrets.TRIAGE_PROJECT_TOKEN }}
project-url: https://github.com/orgs/DSpace/projects/24
27 changes: 19 additions & 8 deletions .github/disabled-workflows/label_merge_conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,32 @@ name: Check for merge conflicts
# NOTE: This means merge conflicts are only checked for when a PR is merged to main.
on:
push:
branches:
- main
branches: [ main ]
# So that the `conflict_label_name` is removed if conflicts are resolved,
# we allow this to run for `pull_request_target` so that github secrets are available.
pull_request_target:
types: [ synchronize ]

permissions: {}

jobs:
triage:
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace'
if: github.repository == 'dspace/dspace'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
# See: https://github.com/mschilde/auto-label-merge-conflicts/
# See: https://github.com/prince-chrismc/label-merge-conflicts-action
- name: Auto-label PRs with merge conflicts
uses: mschilde/auto-label-merge-conflicts@v2.0
uses: prince-chrismc/label-merge-conflicts-action@v2
# Add "merge conflict" label if a merge conflict is detected. Remove it when resolved.
# Note, the authentication token is created automatically
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token
with:
CONFLICT_LABEL_NAME: 'merge conflict'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Ignore errors
continue-on-error: true
conflict_label_name: 'merge conflict'
github_token: ${{ secrets.GITHUB_TOKEN }}
conflict_comment: |
Hi @${author},
Conflicts have been detected against the base branch.
Please [resolve these conflicts](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/about-merge-conflicts) as soon as you can. Thanks!
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
name: Build

# Run this Build for pushes to our main and all PRs
on:
on:
push:
branches:
- dtq-dev
pull_request:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
tests:
runs-on: ubuntu-latest
env:
# Give Maven 1GB of memory to work with
# Suppress all Maven "downloading" messages in logs (see https://stackoverflow.com/a/35653426)
# This also slightly speeds builds, as there is less logging
MAVEN_OPTS: "-Xmx1024M -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
MAVEN_OPTS: "-Xmx1024M"
strategy:
# Create a matrix of two separate configurations for Unit vs Integration Tests
# This will ensure those tasks are run in parallel
Expand All @@ -38,7 +39,7 @@ jobs:
# - failsafe.rerunFailingTestsCount => try again for flakey tests, and keep track of/report on number of retries
- type: "Integration Tests"
java: 11
mvnflags: "-DskipIntegrationTests=false -Denforcer.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true -Dxml.skip=true -Dfailsafe.rerunFailingTestsCount=2"
mvnflags: "-DskipIntegrationTests=false -Denforcer.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true -Dxml.skip=true -Dfailsafe.rerunFailingTestsCount=2 -fae"
resultsdir: "**/target/failsafe-reports/**"
# Do NOT exit immediately if one matrix job fails
# This ensures ITs continue running even if Unit Tests fail, or visa versa
Expand All @@ -48,18 +49,18 @@ jobs:
steps:
# https://github.com/actions/checkout
- name: Checkout codebase
uses: actions/checkout@v2
uses: actions/checkout@v3

# https://github.com/actions/setup-java
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

# https://github.com/actions/cache
- name: Cache Maven dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
# Cache entire ~/.m2/repository
path: ~/.m2/repository
Expand All @@ -71,19 +72,19 @@ jobs:
- name: Run Maven ${{ matrix.type }}
env:
TEST_FLAGS: ${{ matrix.mvnflags }}
run: mvn install -B -V -P-assembly -Pcoverage-report $TEST_FLAGS
run: mvn --no-transfer-progress -V install -P-assembly -Pcoverage-report $TEST_FLAGS

# If previous step failed, save results of tests to downloadable artifact for this job
# (This artifact is downloadable at the bottom of any job's summary page)
- name: Upload Results of ${{ matrix.type }} to Artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.type }} results
path: ${{ matrix.resultsdir }}

# https://github.com/codecov/codecov-action
- name: Upload coverage to Codecov.io
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
59 changes: 59 additions & 0 deletions .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# DSpace CodeQL code scanning configuration for GitHub
# https://docs.github.com/en/code-security/code-scanning
#
# NOTE: Code scanning must be run separate from our default build.yml
# because CodeQL requires a fresh build with all tests *disabled*.
name: "Code Scanning"

# Run this code scan for all pushes / PRs to main branch. Also run once a week.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Don't run if PR is only updating static documentation
paths-ignore:
- '**/*.md'
- '**/*.txt'
schedule:
- cron: "37 0 * * 1"

jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
# Limit permissions of this GitHub action. Can only write to security-events
permissions:
actions: read
contents: read
security-events: write

steps:
# https://github.com/actions/checkout
- name: Checkout repository
uses: actions/checkout@v3

# https://github.com/actions/setup-java
- name: Install JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'

# Initializes the CodeQL tools for scanning.
# https://github.com/github/codeql-action
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
# Codescan Javascript as well since a few JS files exist in REST API's interface
languages: java, javascript

# Autobuild attempts to build any compiled languages
# NOTE: Based on testing, this autobuild process works well for DSpace. A custom
# DSpace build w/caching (like in build.yml) was about the same speed as autobuild.
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# Perform GitHub Code Scanning.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
51 changes: 38 additions & 13 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
push:
branches:
- dtq-dev
- dtq-dev-present
pull_request:
workflow_dispatch:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
docker:
# Ensure this job never runs on forked repos. It's only executed for our repo
Expand All @@ -30,21 +32,30 @@ jobs:
# We turn off 'latest' tag by default.
TAGS_FLAVOR: |
latest=false
# Architectures / Platforms for which we will build Docker images
# If this is a PR, we ONLY build for AMD64. For PRs we only do a sanity check test to ensure Docker builds work.
# If this is NOT a PR (e.g. a tag or merge commit), also build for ARM64. NOTE: The ARM64 build takes MUCH
# longer (around 45mins or so) which is why we only run it when pushing a new Docker image.
PLATFORMS: linux/amd64${{ github.event_name != 'pull_request' && ', linux/arm64' || '' }}

steps:
# https://github.com/actions/checkout
- name: Checkout codebase
uses: actions/checkout@v2
uses: actions/checkout@v3

# https://github.com/docker/setup-buildx-action
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU emulation to build for multiple architectures
uses: docker/setup-qemu-action@v2

# https://github.com/docker/login-action
- name: Login to DockerHub
# Only login if not a PR, as PRs only trigger a Docker build and not a push
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
Expand All @@ -56,7 +67,7 @@ jobs:
# Get Metadata for docker_build_deps step below
- name: Sync metadata (tags, labels) from GitHub to Docker for 'dspace-dependencies' image
id: meta_build_deps
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: dataquest/dspace-dependencies
tags: ${{ env.IMAGE_TAGS }}
Expand All @@ -65,10 +76,11 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push 'dspace-dependencies' image
id: docker_build_deps
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.dependencies
platforms: ${{ env.PLATFORMS }}
# For pull requests, we run the Docker build (to ensure no PR changes break the build),
# but we ONLY do an image push to DockerHub if it's NOT a PR
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -82,18 +94,19 @@ jobs:
# Get Metadata for docker_build step below
- name: Sync metadata (tags, labels) from GitHub to Docker for 'dspace' image
id: meta_build
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: dataquest/dspace
tags: ${{ env.IMAGE_TAGS }}
flavor: ${{ env.TAGS_FLAVOR }}

- name: Build and push 'dspace' image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
# For pull requests, we run the Docker build (to ensure no PR changes break the build),
# but we ONLY do an image push to DockerHub if it's NOT a PR
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -107,7 +120,7 @@ jobs:
# Get Metadata for docker_build_test step below
- name: Sync metadata (tags, labels) from GitHub to Docker for 'dspace-test' image
id: meta_build_test
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: dataquest/dspace
tags: ${{ env.IMAGE_TAGS }}
Expand All @@ -118,10 +131,11 @@ jobs:

- name: Build and push 'dspace-test' image
id: docker_build_test
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.test
platforms: ${{ env.PLATFORMS }}
# For pull requests, we run the Docker build (to ensure no PR changes break the build),
# but we ONLY do an image push to DockerHub if it's NOT a PR
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -135,21 +149,32 @@ jobs:
# Get Metadata for docker_build_test step below
- name: Sync metadata (tags, labels) from GitHub to Docker for 'dspace-cli' image
id: meta_build_cli
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: dataquest/dspace-cli
tags: ${{ env.IMAGE_TAGS }}
flavor: ${{ env.TAGS_FLAVOR }}

- name: Build and push 'dspace-cli' image
id: docker_build_cli
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.cli
platforms: ${{ env.PLATFORMS }}
# For pull requests, we run the Docker build (to ensure no PR changes break the build),
# but we ONLY do an image push to DockerHub if it's NOT a PR
push: ${{ github.event_name != 'pull_request' }}
# Use tags / labels provided by 'docker/metadata-action' above
tags: ${{ steps.meta_build_cli.outputs.tags }}
labels: ${{ steps.meta_build_cli.outputs.labels }}
labels: ${{ steps.meta_build_cli.outputs.labels }}

- name: redeploy
if: '!cancelled()'
run: |
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" \
--request POST \
https://api.github.com/repos/dataquest-dev/\
dspace-angular/actions/workflows/deploy.yml/dispatches \
--data "{\"ref\":\"refs/heads/dtq-dev\"}"
Loading
Loading