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

fix user list #104

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
4ab451f
Change order of permission changes for debian
lizrea Aug 2, 2024
91f9e8d
Sierra Self Reg
K-Alette Aug 6, 2024
6c0653d
Merge pull request #1963 from K-Alette/24.08.10
mdnoble73 Aug 8, 2024
7a127f0
Add pagination to user agent report
Abhyastamita Aug 9, 2024
cc00602
Merge branch 'pagination_for_user_agents' into 24.09.00
Abhyastamita Aug 9, 2024
d5a631e
Release notes update
Abhyastamita Aug 9, 2024
42a3491
Improvements to Nashville Student Barcode report
NashvillePublicLibrary Aug 12, 2024
9e6f72a
update koha message_queue query to include timestamp
catsoup11789 Aug 14, 2024
1abcf16
update fetchILSMessages cron to run on the 40 minute mark
catsoup11789 Aug 14, 2024
572b68e
Use CHANGE instead of RENAME
K-Alette Aug 14, 2024
99340e6
comment out changes to avaliable_at & owning_location
catsoup11789 Aug 14, 2024
3940968
Merge pull request #1980 from catsoup11789/24.08.01
K-Alette Aug 14, 2024
62bace2
temp disable cron function
catsoup11789 Aug 14, 2024
7ea0b71
Merge pull request #1982 from catsoup11789/24.08.01
K-Alette Aug 14, 2024
04d38b6
Update 24.08.10.php
K-Alette Aug 14, 2024
2c5d407
Merge pull request #1981 from K-Alette/24.08.10
mdnoble73 Aug 14, 2024
820af13
refactor: extract assignGraphSpecificTitle() from launch()
Chloe070196 Aug 15, 2024
6093b44
refactor: extract getAndSetInterfaceDataSeries() from launch()
Chloe070196 Aug 15, 2024
a21d464
feat: build CSV file
Chloe070196 Aug 15, 2024
03328cd
feat: CSV download button
Chloe070196 Aug 15, 2024
6f11282
feat: handle export data Ajax requests
Chloe070196 Aug 15, 2024
2cd51a7
docs: update release notes
Chloe070196 Aug 15, 2024
e663123
Add pagination to Manage Material Requests
catsoup11789 Aug 15, 2024
8d0d83b
add alternate library card options to Library API
catsoup11789 Aug 15, 2024
37a646c
fix: extract branch name
Chloe070196 Aug 15, 2024
32747ec
docs: update release note
Chloe070196 Aug 16, 2024
317e983
Merge pull request #108 from Chloe070196/fix_search_facet_location_fi…
Chloe070196 Aug 16, 2024
01f7753
Merge pull request #110 from Chloe070196/data_download_for_existing_u…
Chloe070196 Aug 16, 2024
ca23b7d
Hide empty item groups for volume-level holds
kylemhall Aug 16, 2024
28f93d3
Remove old pre-production Koha volumes code
kylemhall Aug 16, 2024
ec49fe5
Don't fetch user agent array twice
Abhyastamita Aug 16, 2024
08dc0b4
Merge branch 'pagination_for_user_agents' into 24.09.00
Abhyastamita Aug 16, 2024
a60fd40
updates for cloudLibrary scoping
catsoup11789 Aug 16, 2024
adad0c5
updates for cloudLibrary scoping
catsoup11789 Aug 16, 2024
9616c2c
Update APIs for handling alternate library cards
catsoup11789 Aug 16, 2024
a2ea547
Merge branch 'Aspen-Discovery:24.09.00' into 24.09.00
catsoup11789 Aug 16, 2024
9035192
Merge branch 'Aspen-Discovery:24.09.00' into 24.09.00
catsoup11789 Aug 16, 2024
5a0b339
always display copy counts, even if no waitlist
catsoup11789 Aug 16, 2024
9d13ad5
Merge branch '24.08.01' into 24.08.10
mdnoble73 Aug 16, 2024
459dd21
Ignore local IntelliJ and PhpStorm Projects
mdnoble73 Aug 19, 2024
69c0e3d
Merge branch '24.08.10' into 24.09.00
mdnoble73 Aug 19, 2024
f5e2944
Merge branch 'Aspen-Discovery:24.09.00' into 24.09.00
catsoup11789 Aug 19, 2024
f1c3289
GitHub Actions - Add additional push to GHCR
kylemhall Aug 19, 2024
fdf21eb
GitHub Actions - Use GitHub tags for Docker tags intead of Github bra…
kylemhall Aug 19, 2024
d9cbd72
GitHub Actions - Stop tagging newest images with the "latest" tag
kylemhall Aug 19, 2024
04a8e68
GitHub Actions - Build an push to GHCR first
kylemhall Aug 19, 2024
0257f7f
GitHub Actions - Build each image only once and push to all registrie…
kylemhall Aug 19, 2024
69e2a87
Note Column Size for Self Reg Values
K-Alette Aug 19, 2024
3413ab3
Update release notes
kylemhall Aug 19, 2024
ebe688f
False Error NCR
K-Alette Aug 19, 2024
071ef45
Merge pull request #1998 from K-Alette/24.08.10
catsoup11789 Aug 19, 2024
98ffa55
Merge changes
mdnoble73 Aug 19, 2024
4c57f46
Merge branch 'PTFS-Europe-fix_search_facet_location_filter' into 24.0…
mdnoble73 Aug 19, 2024
75ca47a
Fixes Nashville-specific Holds Report
NashvillePublicLibrary Aug 19, 2024
a69bf5b
Merge branch 'data_download_for_existing_usage_graphs' of https://git…
mdnoble73 Aug 19, 2024
4de150f
Merge branch 'PTFS-Europe-data_download_for_existing_usage_graphs' in…
mdnoble73 Aug 19, 2024
fc66a98
Merge pull request #2002 from Nashville-Public-Library/24.08.01-Nashv…
mdnoble73 Aug 19, 2024
d53978d
Merge branch '24.08.01' into 24.08.10
mdnoble73 Aug 19, 2024
43e0fb2
Merge branch '24.08.10' into 24.09.00
mdnoble73 Aug 19, 2024
5308129
Merge pull request #2000 from K-Alette/24.09.00
mdnoble73 Aug 19, 2024
7306905
Add web resource access restrictions
catsoup11789 Aug 19, 2024
6694f81
Merge branch 'Aspen-Discovery:24.09.00' into 24.09.00
catsoup11789 Aug 19, 2024
3893a61
Web resource login prompt
catsoup11789 Aug 19, 2024
5b128c7
fix: guard clause handles null values
Chloe070196 Aug 8, 2024
e53d137
Merge pull request #1999 from kylemhall/update_github_actions
mdnoble73 Aug 20, 2024
47411c7
Bump axios from 1.6.8 to 1.7.4 in /code/aspen_app
dependabot[bot] Aug 20, 2024
f406ea5
Merge pull request #2003 from Aspen-Discovery/dependabot/npm_and_yarn…
mdnoble73 Aug 20, 2024
683b57b
Merge branch '24.09.00' into 24.09.00
catsoup11789 Aug 20, 2024
1a4804f
feat: render location preference settigs only for ils users
Chloe070196 Aug 20, 2024
77cd3b2
docs: update release note
Chloe070196 Aug 20, 2024
c6bc543
Merge pull request #115 from Chloe070196/fix_save_preferences
Chloe070196 Aug 21, 2024
4fb72db
Add GitHub Actions to check pull requests for release notes
kylemhall Aug 21, 2024
f1979a0
Update release notes
kylemhall Aug 21, 2024
b31e757
rebase
Chloe070196 Aug 2, 2024
1ac93e3
Hide empty item groups for volume-level holds
kylemhall Aug 16, 2024
77bab37
Add release notes
kylemhall Aug 21, 2024
3c12500
AD-9 Sierra self check
mdnoble73 Aug 21, 2024
fa9aeb9
update SAML errors to be more clear
catsoup11789 Aug 21, 2024
d0f078d
Update 24.09.00.MD
catsoup11789 Aug 21, 2024
370fba8
Merge branch 'AD-9-Sierra-Self-Check' into 24.09.00
mdnoble73 Aug 21, 2024
cbafe03
Update release notes
kylemhall Aug 21, 2024
ec2ffab
Merge pull request #1996 from catsoup11789/24.09.00
mdnoble73 Aug 21, 2024
6e32952
Merge branch '24.09.00' into github_actions_release_notes
mdnoble73 Aug 21, 2024
fbd9aab
Merge pull request #2006 from kylemhall/github_actions_release_notes
mdnoble73 Aug 21, 2024
4d4a518
Merge pull request #2005 from PTFS-Europe/fix_save_user_preferences_f…
mdnoble73 Aug 21, 2024
41c4a6b
Use standard method of determining if a user is connected to an ILS
mdnoble73 Aug 21, 2024
4608e6b
Merge pull request #2004 from Nashville-Public-Library/24.09.00-Barco…
mdnoble73 Aug 21, 2024
d72eb08
Merge branch '24.09.00' into issue_1990
mdnoble73 Aug 21, 2024
1829f77
Merge pull request #1992 from kylemhall/issue_1990
mdnoble73 Aug 21, 2024
2fd0028
Merge pull request #1953 from lizrea/patch-6
mdnoble73 Aug 21, 2024
30f9b3a
Update order of changing permissions in updateSitePermissions scripts
mdnoble73 Aug 21, 2024
d43adf8
Merge branch '24.09.00' of https://github.com/Aspen-Discovery/aspen-d…
mdnoble73 Aug 21, 2024
2e448f5
Merge pull request #1971 from Abhyastamita/24.09.00
mdnoble73 Aug 21, 2024
8c8802a
Increase pageSize for Materials Requests
catsoup11789 Aug 21, 2024
3fcb6a6
Merge branch '24.09.00' into issue_1989
mdnoble73 Aug 21, 2024
3ae2973
Merge pull request #2007 from catsoup11789/24.09.00
mdnoble73 Aug 21, 2024
f04dc89
Merge pull request #1991 from kylemhall/issue_1989
mdnoble73 Aug 21, 2024
d33c762
Rebuild koha_export jar based on previous PRs
mdnoble73 Aug 21, 2024
52146e5
Suppress warnings when deserializing details to show in search result…
mdnoble73 Aug 21, 2024
3e03e4c
Fix query to select circulation rules for Koha #2008
kylemhall Aug 22, 2024
440b771
Update release notes #2008
kylemhall Aug 22, 2024
7c48252
Indent the query properly #2008
kylemhall Aug 22, 2024
aba40a4
Properly close the connections to Koha from Aspen
kylemhall Aug 14, 2024
a90fc41
Add supporting company variable
lucasmontoya13 Aug 22, 2024
ccf25de
Add check for tabs vs spaces to GitHub Actions for Pull Requests
kylemhall Aug 22, 2024
30dc64e
Append SUPPORTING COMPANY to associate array
lucasmontoya13 Aug 22, 2024
e30a439
Add supportingCompany support in Docker scripts
lucasmontoya13 Aug 22, 2024
6c534c2
Switch to using release notes file to determine current version
catsoup11789 Aug 22, 2024
4b044e5
sync up variable names so they properly overwrite
catsoup11789 Aug 22, 2024
8f1f3fc
update value when deleting alt card via API
catsoup11789 Aug 22, 2024
b0c46bc
add function to get alt card options
catsoup11789 Aug 22, 2024
c6d982e
return linked account alt card info
catsoup11789 Aug 22, 2024
73b2d4b
Merge pull request #949 from Aspen-Discovery/24.09.00
catsoup11789 Aug 22, 2024
968e086
Only attempt to log in and push to container repos if the commit is p…
kylemhall Aug 22, 2024
9418295
Update 24.09.00.MD
catsoup11789 Aug 22, 2024
f5ec4e7
Merge branch '24.09.00' of https://github.com/catsoup11789/aspen-disc…
catsoup11789 Aug 22, 2024
03b7bb8
Update formatting of Palace Project Collection report to apply defaul…
mdnoble73 Aug 22, 2024
573c559
Merge pull request #2015 from catsoup11789/24.09.00
mdnoble73 Aug 22, 2024
2afdedf
Merge pull request #2013 from kylemhall/fix_github_actions_docker
mdnoble73 Aug 22, 2024
5b2c3e7
Merge branch '24.09.00' into qa_check_tabs
mdnoble73 Aug 22, 2024
0f31f56
Merge pull request #2011 from kylemhall/qa_check_tabs
mdnoble73 Aug 22, 2024
537e9aa
Merge pull request #2012 from thekesolutions/supp_company_docker
mdnoble73 Aug 22, 2024
1175f38
Merge pull request #2009 from kylemhall/issue_2008
mdnoble73 Aug 22, 2024
0492420
Merge branch '24.09.00' into koha_close_all_db_queries
mdnoble73 Aug 22, 2024
c3f75f7
Merge pull request #1984 from kylemhall/koha_close_all_db_queries
mdnoble73 Aug 22, 2024
d4c8c6b
fix: sourceId allow 255 char
Chloe070196 Aug 6, 2024
12e2a74
fix: SearchObjectFactory builds Solr search objects
Chloe070196 Aug 6, 2024
0f47025
docs: update release notes
Chloe070196 Aug 6, 2024
a3359d1
fix: lists with summon records can be viewed
Chloe070196 Aug 7, 2024
12cc95d
fix: each record's data is processed
Chloe070196 Aug 7, 2024
2a7e56e
fix: textQuery defaults to null in processData
Chloe070196 Aug 7, 2024
6a56405
style: swap spaces for tabs when indenting
Chloe070196 Aug 23, 2024
9fe2b5e
style: remove redundant spaces
Chloe070196 Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 75 additions & 96 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,179 +3,158 @@ on:
push

jobs:
push_aspen_to_dockerhub:
name: Push Aspen image to Docker Hub
if: github.repository == 'Aspen-Discovery/aspen-discovery'
build_aspen_docker_images:
name: Push Aspen image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract GitHub Tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
id: extract_tag
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Add placeholder if this is not a tag
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
id: extract_tag_dummy
run: echo "GIT_TAG=NOTHING" >> $GITHUB_ENV

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
- name: Log in to Docker Hub
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
context: .
file: docker/Dockerfile
push: true
tags: |
aspendiscovery/aspen:latest
aspendiscovery/aspen:${{ steps.extract_branch.outputs.branch }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

push_aspen_to_quay:
name: Push Aspen image to Quay.io
if: github.repository == 'Aspen-Discovery/aspen-discovery'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GHCR
if: github.repository == 'Aspen-Discover/aspen-discovery'
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin

- name: Log in to Quay.io
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile
push: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: |
quay.io/aspen-discovery/aspen:latest
quay.io/aspen-discovery/aspen:${{ steps.extract_branch.outputs.branch }}
aspendiscovery/aspen:${{ env.GIT_TAG }}
ghcr.io/aspen-discovery/aspen:${{ env.GIT_TAG }}
quay.io/aspen-discovery/aspen:${{ env.GIT_TAG }}

push_solr_to_dockerhub:
name: Push Solr image to Docker Hub
if: github.repository == 'Aspen-Discovery/aspen-discovery'
build_solr_docker_images:
name: Push Aspen image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract GitHub Tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
id: extract_tag
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Add placeholder if this is not a tag
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
id: extract_tag_dummy
run: echo "GIT_TAG=NOTHING" >> $GITHUB_ENV

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
- name: Log in to Docker Hub
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
context: .
file: docker/files/solr/Dockerfile
push: true
tags: |
aspendiscovery/solr:latest
aspendiscovery/solr:${{ steps.extract_branch.outputs.branch }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

push_solr_to_quay:
name: Push Solr image to Quay.io
if: github.repository == 'Aspen-Discovery/aspen-discovery'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GHCR
if: github.repository == 'Aspen-Discover/aspen-discovery'
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin

- name: Log in to Quay.io
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v5
with:
context: .
file: docker/files/solr/Dockerfile
push: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: |
quay.io/aspen-discovery/solr:latest
quay.io/aspen-discovery/solr:${{ steps.extract_branch.outputs.branch }}
aspendiscovery/solr:${{ env.GIT_TAG }}
ghcr.io/aspen-discovery/solr:${{ env.GIT_TAG }}
quay.io/aspen-discovery/solr:${{ env.GIT_TAG }}

push_tunnel_to_dockerhub:
name: Push Tunnel image to Docker Hub
if: github.repository == 'Aspen-Discovery/aspen-discovery'
build_tunnel_docker_images:
name: Push Aspen image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract GitHub Tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
id: extract_tag
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Add placeholder if this is not a tag
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
id: extract_tag_dummy
run: echo "GIT_TAG=NOTHING" >> $GITHUB_ENV

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
- name: Log in to Docker Hub
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
context: .
file: docker/files/tunnel/Dockerfile
push: true
tags: |
aspendiscovery/tunnel:latest
aspendiscovery/tunnel:${{ steps.extract_branch.outputs.branch }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

push_tunnel_to_quay:
name: Push Tunnel image to Quay.io
if: github.repository == 'Aspen-Discovery/aspen-discovery'
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GHCR
if: github.repository == 'Aspen-Discover/aspen-discovery'
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin

- name: Log in to Quay.io
if: github.repository == 'Aspen-Discover/aspen-discovery'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v5
with:
context: .
file: docker/files/tunnel/Dockerfile
push: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: |
quay.io/aspen-discovery/tunnel:latest
quay.io/aspen-discovery/tunnel:${{ steps.extract_branch.outputs.branch }}
aspendiscovery/tunnel:${{ env.GIT_TAG }}
ghcr.io/aspen-discovery/tunnel:${{ env.GIT_TAG }}
quay.io/aspen-discovery/tunnel:${{ env.GIT_TAG }}
73 changes: 73 additions & 0 deletions .github/workflows/pull_request_qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Check Pull Request for QA Issues

on:
pull_request:

jobs:
check_release_notes:
runs-on: ubuntu-latest

steps:
- name: Checkout pull request branch
uses: actions/checkout@v4

- name: Add official Aspen Discovery repo as another remote
run: git remote add official https://github.com/Aspen-Discovery/aspen-discovery.git && git fetch official

- name: Get default branch
id: get_default_branch
run: |
default_branch=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/Aspen-Discovery/aspen-discovery | jq -r .default_branch)
echo "Default branch is $default_branch"
echo "DEFAULT_BRANCH=$default_branch" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for changes in release notes
run: |
if git diff --name-only official/$DEFAULT_BRANCH HEAD | grep -q 'code/web/release_notes/'; then
echo "Release notes have been modified."
else
echo "No changes detected in the release notes."
exit 1
fi

check_tabs_vs_spaces:
runs-on: ubuntu-latest

steps:
- name: Checkout pull request branch
uses: actions/checkout@v4

- name: Add official Aspen Discovery repo as another remote
run: git remote add official https://github.com/Aspen-Discovery/aspen-discovery.git && git fetch official

- name: Get default branch
id: get_default_branch
run: |
default_branch=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/Aspen-Discovery/aspen-discovery | jq -r .default_branch)
echo "Default branch is $default_branch"
echo "DEFAULT_BRANCH=$default_branch" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for spaces instead of tabs
run: |
# Find files that are modified in the pull request
MODIFIED_FILES=$(git diff --name-only official/$DEFAULT_BRANCH HEAD)

# Loop through each file and check for spaces used instead of tabs
EXIT_CODE=0
for file in $MODIFIED_FILES; do
echo "Found modified file: $file";
if [[ $file == *.php || $file == *.js || $file == *.java ]]; then
#echo "Checking $file for whitespace issues"
DIFF=$(git diff official/$DEFAULT_BRANCH HEAD -- $file)
#echo "DIFF: $DIFF"
if [[ $DIFF =~ " " ]]; then
echo "Detected spaces instead of tabs in $file"
EXIT_CODE=1
fi
fi
done
exit $EXIT_CODE
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,5 @@ code/aspen_app/updateTestApps.sh
code/cron/.idea/misc.xml
tests/phpunit/.phpunit.result.cache
install/unit_tests_local.ini
intellij_project
phpstorm_project
2 changes: 1 addition & 1 deletion code/aspen_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@sentry/react-native": "~5.22.0",
"@tanstack/react-query": "^4.33.0",
"apisauce": "^2.1.6",
"axios": "^1.6.0",
"axios": "^1.7.4",
"babel-preset-expo": "^11.0.10",
"chroma-js": "~2.4.2",
"compare-versions": "^6.1.0",
Expand Down
8 changes: 4 additions & 4 deletions code/aspen_app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7219,10 +7219,10 @@ axios@^0.21.4:
dependencies:
follow-redirects "^1.14.0"

axios@^1.6.0:
version "1.6.8"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66"
integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==
axios@^1.7.4:
version "1.7.4"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.4.tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2"
integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==
dependencies:
follow-redirects "^1.15.6"
form-data "^4.0.0"
Expand Down
Binary file modified code/koha_export/koha_export.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -529,16 +529,11 @@ private static void exportVolumes(Connection dbConn, Connection kohaConn) {
float kohaVersion = getKohaVersion(kohaConn);
PreparedStatement getVolumeInfoStmt;
PreparedStatement getItemsForVolumeStmt;
if (kohaVersion < 22.11) {
//Arlington's code for volumes
getVolumeInfoStmt = kohaConn.prepareStatement("SELECT * from volumes", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
getItemsForVolumeStmt = kohaConn.prepareStatement("SELECT * from volume_items", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
}else {
//community code for
getVolumeInfoStmt = kohaConn.prepareStatement("SELECT * from item_groups", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
getItemsForVolumeStmt = kohaConn.prepareStatement("SELECT * from item_group_items", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
}
PreparedStatement addVolumeStmt = dbConn.prepareStatement("INSERT INTO ils_volume_info (recordId, volumeId, displayLabel, relatedItems, displayOrder) VALUES (?,?,?,?, ?) ON DUPLICATE KEY update recordId = VALUES(recordId), displayLabel = VALUES(displayLabel), relatedItems = VALUES(relatedItems), displayOrder = VALUES(displayOrder)");
// Filter out any item groups that do not currently contain items
getVolumeInfoStmt = kohaConn.prepareStatement("SELECT item_groups.* FROM item_groups LEFT JOIN item_group_items USING (item_group_id) GROUP BY item_group_id HAVING COUNT(item_id) > 0", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
getItemsForVolumeStmt = kohaConn.prepareStatement("SELECT * from item_group_items", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);

PreparedStatement addVolumeStmt = dbConn.prepareStatement("INSERT INTO ils_volume_info (recordId, volumeId, displayLabel, relatedItems, displayOrder) VALUES (?,?,?,?, ?) ON DUPLICATE KEY update recordId = VALUES(recordId), displayLabel = VALUES(displayLabel), relatedItems = VALUES(relatedItems), displayOrder = VALUES(displayOrder)");
PreparedStatement deleteVolumeStmt = dbConn.prepareStatement("DELETE from ils_volume_info where volumeId = ?");

ResultSet volumeInfoRS = null;
Expand Down
8 changes: 6 additions & 2 deletions code/web/CatalogConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1790,8 +1790,12 @@ public function checkoutBySip(User $patron, $barcode, $currentLocationId): array
return $this->driver->checkoutBySip($patron, $barcode, $currentLocationId);
}

public function checkoutByAPI(User $patron, $barcode, $currentLocationId): array {
return $this->driver->checkoutByAPI($patron, $barcode, $currentLocationId);
public function hasAPICheckout() : bool {
return $this->driver->hasAPICheckout();
}

public function checkoutByAPI(User $patron, $barcode, Location $currentLocation): array {
return $this->driver->checkoutByAPI($patron, $barcode, $currentLocation);
}

public function allowUpdatesOfPreferredName(User $patron) : bool {
Expand Down
Loading
Loading