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

Feedback mk #110

Closed
wants to merge 153 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
f887d87
Voortschrijdend inzicht op aanmeldingsspel
rjzondervan Jul 26, 2024
8edab70
Use $this->client not $client
WilcoLouwerse Jul 30, 2024
424f4e9
Merge remote-tracking branch 'origin/development' into feature/DIMOC-…
rjzondervan Jul 31, 2024
8d91d9f
Fix serialization of featured
rjzondervan Jul 31, 2024
463d604
Fixes from redesign
rjzondervan Jul 31, 2024
3a5a422
Fixes from tests
rjzondervan Jul 31, 2024
c604640
changed english to nl and a few spelling fixes
RalkeyOfficial Aug 2, 2024
8a04d3c
removed some fields - changed the way publication displays
RalkeyOfficial Aug 2, 2024
a2881c5
Merge branch 'development' into feature/DIMOC-124/search-page
RalkeyOfficial Aug 2, 2024
4655632
Validate url
bbrands02 Aug 2, 2024
f6e8b1e
remove testing
bbrands02 Aug 2, 2024
d845090
Handle empty fields
rjzondervan Aug 2, 2024
dee2f67
Merge pull request #95 from ConductionNL/fix/DIMOC-167/url-validating
bbrands02 Aug 2, 2024
56ab381
removed fields from edit modal
RalkeyOfficial Aug 2, 2024
4af9e6c
fixed some text
RalkeyOfficial Aug 2, 2024
9982acd
Merge branch 'development' into feature/DIMOC-123/EN-NL
RalkeyOfficial Aug 2, 2024
a0b3255
Merge pull request #94 from ConductionNL/feature/DIMOC-123/EN-NL
RalkeyOfficial Aug 2, 2024
7b3e176
Validate elastic config
bbrands02 Aug 2, 2024
b4aff18
Search federatief improvements
bbrands02 Aug 2, 2024
1b261a2
Renamed FAQ to something non breaking
rubenvdlinde Aug 4, 2024
eee6cb3
Merge remote-tracking branch 'origin/development' into docs2
rubenvdlinde Aug 4, 2024
42fa0b3
Menu improvements
rubenvdlinde Aug 4, 2024
df35fa2
Merge branch 'docs2' into docs
rubenvdlinde Aug 4, 2024
87e5461
Bit of menu work
rubenvdlinde Aug 4, 2024
178e5e6
Aditional documentation and linting fixes
rubenvdlinde Aug 4, 2024
5a13b9d
Bit more linting fixes
rubenvdlinde Aug 4, 2024
24f872a
Add lodash
rubenvdlinde Aug 4, 2024
1d9b2bc
Verdere uitleg over hoe we testen en hoe je dit zelf kan toepassen
rubenvdlinde Aug 4, 2024
4f83a16
Wat hardere eisen
rubenvdlinde Aug 4, 2024
eeec689
Add feature flow
rubenvdlinde Aug 4, 2024
01632d3
Wat meer nuance in de feature flow
rubenvdlinde Aug 5, 2024
80cd461
Type script toegevoegd
rubenvdlinde Aug 5, 2024
e734d60
Merge pull request #97 from ConductionNL/feature/DIMOC-183/remove-fields
RalkeyOfficial Aug 5, 2024
d2015ed
Begonnen met documentatie over publicaties
rubenvdlinde Aug 5, 2024
c24093a
Merge pull request #98 from ConductionNL/docs
rubenvdlinde Aug 5, 2024
2242065
added help buttons
RalkeyOfficial Aug 5, 2024
d1d895b
spellcheck aan-de-slag-development
MWest2020 Aug 5, 2024
588d1aa
Merge branch 'development' into feature/DIMOC-176/help-buttons
RalkeyOfficial Aug 5, 2024
d17d4d2
changed open link func name
RalkeyOfficial Aug 5, 2024
9f09692
better code readability
RalkeyOfficial Aug 5, 2024
3ecf67b
workflows
MWest2020 Aug 5, 2024
34d2854
Update src from PHP Codesniffer
Aug 5, 2024
87ea3b2
Added FileService and added a createShareLink function
WilcoLouwerse Aug 5, 2024
4028e85
added required fields
RalkeyOfficial Aug 5, 2024
d7d2064
one workflow to rule check them all
MWest2020 Aug 5, 2024
c195d8c
Update src from remark-lint
actions-user Aug 5, 2024
ff6cd38
Update src from PHP Codesniffer
actions-user Aug 5, 2024
c5acecd
merging with docs
MWest2020 Aug 5, 2024
cdb61a8
Added configuration for nextcloud api-call auth
WilcoLouwerse Aug 5, 2024
f74422f
merge error in link
MWest2020 Aug 5, 2024
f5c2e8b
linting error fix fe
MWest2020 Aug 5, 2024
2045ff6
Update src from PHP Codesniffer
actions-user Aug 5, 2024
3e1635b
new workflow
MWest2020 Aug 5, 2024
446effc
removed vue warn
remko48 Aug 5, 2024
5045be1
readded src
MWest2020 Aug 5, 2024
9e42817
merge conflicts gone
MWest2020 Aug 5, 2024
22666d2
Update src from PHP Codesniffer
actions-user Aug 5, 2024
3331bb3
package-json misery in workflow
MWest2020 Aug 5, 2024
d07eee1
Merge branch 'test-met-linters-in-workflow' of https://github.com/Con…
MWest2020 Aug 5, 2024
b861465
linting in modules stores
MWest2020 Aug 5, 2024
5fb6964
Update src from remark-lint
actions-user Aug 5, 2024
c151849
Update src from PHP Codesniffer
actions-user Aug 5, 2024
e0ddbdf
tests bootstrap crap
MWest2020 Aug 5, 2024
f25f0bc
Merge branch 'test-met-linters-in-workflow' of https://github.com/Con…
MWest2020 Aug 5, 2024
dceba4d
workflow to make sure plugins installed
MWest2020 Aug 5, 2024
b62b7b9
phpmd.xml added for mess detection rules
MWest2020 Aug 5, 2024
70ef407
bootstrap.php
MWest2020 Aug 5, 2024
795eb15
added composer install
MWest2020 Aug 5, 2024
dd73ccc
updated package-lock
remko48 Aug 5, 2024
a9cda34
fixed publication spec and entity
RalkeyOfficial Aug 5, 2024
424e296
OC app visible
MWest2020 Aug 5, 2024
1248726
workflow checks and order
MWest2020 Aug 5, 2024
eff0416
small fix for Attachment $labels
WilcoLouwerse Aug 5, 2024
2be6d09
docs spellechekc and workflow
MWest2020 Aug 5, 2024
bcbafd1
fixed metadata entity spec
RalkeyOfficial Aug 5, 2024
6352dd1
added # for comment fi
MWest2020 Aug 5, 2024
05fc495
Merge pull request #102 from ConductionNL/feature/DIMOC-204/create-sh…
WilcoLouwerse Aug 5, 2024
a784c74
Merge pull request #101 from ConductionNL/feature/DIMOC-116/console-e…
remko48 Aug 5, 2024
eead63c
fixed listing spec
RalkeyOfficial Aug 5, 2024
24f39d2
catalogi spec works now
RalkeyOfficial Aug 5, 2024
e1937c4
WIP on feature/DIMOC-129/Organisation-page
remko48 Aug 5, 2024
c1d1d16
Added local search to SearchController
bbrands02 Aug 5, 2024
a708afd
Cleanup/refactor
bbrands02 Aug 5, 2024
616b05c
Merge pull request #103 from ConductionNL/feature/DIMOC-204/test-fixes
rubenvdlinde Aug 5, 2024
b4b47ca
Merge pull request #99 from ConductionNL/feature/DIMOC-176/help-buttons
rubenvdlinde Aug 5, 2024
11c56c2
Merge pull request #100 from ConductionNL/test-met-linters-in-workflow
rubenvdlinde Aug 5, 2024
3404d83
Themes meegenomen en controller voor het gemak even omgezet naar mock…
rubenvdlinde Aug 5, 2024
2132aa1
A bit of entity managment
rubenvdlinde Aug 5, 2024
0bfd52e
Fixing the testing script
rubenvdlinde Aug 5, 2024
2404957
Finishing the stores
rubenvdlinde Aug 5, 2024
a4662af
Fixing the build errors
rubenvdlinde Aug 5, 2024
9c9b0dc
Cleaning up the lists
rubenvdlinde Aug 5, 2024
1496f86
Bit of routing and database work
rubenvdlinde Aug 6, 2024
2257717
Connecting it al together
rubenvdlinde Aug 6, 2024
4caa720
Merge remote-tracking branch 'origin/development' into feature/DIMOC-…
rjzondervan Aug 6, 2024
e6a06ed
Fix for the reflection errors
rubenvdlinde Aug 6, 2024
2d92dfb
Added filters to organisations
rubenvdlinde Aug 6, 2024
b59ab7a
fixed attachment entity spec
RalkeyOfficial Aug 6, 2024
2eb4149
Database fix en migration
rubenvdlinde Aug 6, 2024
f91e329
Fix for the migrations
rubenvdlinde Aug 6, 2024
7eb6ff3
Typo fix
rubenvdlinde Aug 6, 2024
8b297c2
Added better headings to dashboard and search
remko48 Aug 6, 2024
6bc94c6
Lint fixes
remko48 Aug 6, 2024
f6259a4
Design voor sorteren op publicaties
rubenvdlinde Aug 6, 2024
d67acf3
Merge remote-tracking branch 'origin/feature/DIMOC-129/Organisation-p…
remko48 Aug 6, 2024
0312e1b
fixed all tests
RalkeyOfficial Aug 6, 2024
6e378db
fixed eslint on save
RalkeyOfficial Aug 6, 2024
6763ebc
Merge branch 'feature/DIMOC-129/Organisation-page' into feature/DIMOC…
RalkeyOfficial Aug 6, 2024
f57e5ec
WIP
remko48 Aug 6, 2024
7921238
Small cleanup
bbrands02 Aug 6, 2024
1d1e377
Adding the BL for Organisation and Theme controller
rubenvdlinde Aug 6, 2024
379eacc
Merge remote-tracking branch 'origin/development' into feature/DIMOC-…
bbrands02 Aug 6, 2024
9ee2eb9
removed unnecessary stuff
bbrands02 Aug 6, 2024
a016f6e
Dialogs and models for organisations and themes
rubenvdlinde Aug 6, 2024
7799fea
fixed new entities
RalkeyOfficial Aug 6, 2024
18219e7
validate fix
bbrands02 Aug 6, 2024
0a1041e
more fixes + 100% code coverage
RalkeyOfficial Aug 6, 2024
e059a57
Merge branch 'development' into feature/DIMOC-204/test-fixes
RalkeyOfficial Aug 6, 2024
5aa2aa8
Fixing the edit modals
rubenvdlinde Aug 6, 2024
910d9d8
Fixing controllers
rubenvdlinde Aug 6, 2024
6684758
forgot to change a reference
RalkeyOfficial Aug 6, 2024
3e2e68d
Fix for the deletes
rubenvdlinde Aug 6, 2024
ea63e27
Merge remote-tracking branch 'origin/feature/DIMOC-129/Organisation-p…
RalkeyOfficial Aug 6, 2024
5a10709
removed coverage report as its not supposed to be commited
RalkeyOfficial Aug 6, 2024
8822204
Fix for the invinite reloads
rubenvdlinde Aug 6, 2024
c748415
Merge pull request #105 from ConductionNL/fix/DIMOC-167/url-validation
bbrands02 Aug 6, 2024
9e557e6
Merge pull request #104 from ConductionNL/feature/DIMOC-124/search-page
bbrands02 Aug 6, 2024
ad3e30f
renamed to UK english
RalkeyOfficial Aug 6, 2024
64e1f4e
Merge branch 'feature/DIMOC-129/Organisation-page' into feature/DIMOC…
RalkeyOfficial Aug 6, 2024
eb3f8d6
removed vscode setting
RalkeyOfficial Aug 6, 2024
0b5ffc0
Import fix
remko48 Aug 6, 2024
005d3b1
Merge branch 'feature/DIMOC-204/test-fixes' of https://github.com/Con…
RalkeyOfficial Aug 6, 2024
49afee5
Create directories from listed catalogi
rjzondervan Aug 6, 2024
bedf16a
added to the disabled check
RalkeyOfficial Aug 6, 2024
b79704f
Merge remote-tracking branch 'origin/development' into feature/DIMOC-…
rjzondervan Aug 6, 2024
b1ebc32
added required to edit modal
RalkeyOfficial Aug 6, 2024
d0e3293
Update aan-de-slag-met-development.md
MWest2020 Aug 6, 2024
d0e8b66
Update src from remark-lint
actions-user Aug 6, 2024
0b2afc2
Merge pull request #109 from ConductionNL/MWest2020-unit-testing-aan-…
MWest2020 Aug 6, 2024
5aa6335
Merge pull request #108 from ConductionNL/feature/DIMOC-205/no-save-n…
rubenvdlinde Aug 6, 2024
f19fe31
Merge pull request #107 from ConductionNL/feature/DIMOC-129/Organisat…
rubenvdlinde Aug 6, 2024
3f236ae
Merge pull request #84 from ConductionNL/feature/DIMOC-48/update-dire…
rubenvdlinde Aug 6, 2024
549e5bb
Merge remote-tracking branch 'origin/feature/DIMOC-204/test-fixes' in…
rubenvdlinde Aug 6, 2024
807e849
Merge branch 'development' into docs
rubenvdlinde Aug 6, 2024
9ff728b
Update src from remark-lint
actions-user Aug 6, 2024
b97177e
Update src from PHP Codesniffer
actions-user Aug 6, 2024
30de3c4
Fixes on stores
rubenvdlinde Aug 6, 2024
b9e11ee
Merge branch 'docs' of https://github.com/ConductionNL/opencatalogi i…
rubenvdlinde Aug 6, 2024
d09ab7c
Update src from PHP Codesniffer
actions-user Aug 6, 2024
26445c4
github issue/59
MWest2020 Aug 6, 2024
8becb91
github issue/59
MWest2020 Aug 6, 2024
d512743
Update src from remark-lint
actions-user Aug 6, 2024
1a0e692
Update src from PHP Codesniffer
actions-user Aug 6, 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
120 changes: 120 additions & 0 deletions .github/workflows/CI-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: CI Workflow

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, zip, xml, curl, intl, sqlite, gd, pdo_mysql
tools: cs2pr, phpcbf, phpcs, phpmd, phpunit

- name: Install Composer dependencies
run: composer install

- name: Run phpcbf
run: phpcbf .
continue-on-error: ${{ github.ref != 'refs/heads/main' }}

- name: Commit code formatting changes
if: success() && github.ref != 'refs/heads/main'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add src
git diff --cached --quiet || (git commit -m "Update src from PHP Codesniffer" && git pull origin $(git rev-parse --abbrev-ref HEAD) --rebase --autostash && git push)

- name: Run phpcs
run: phpcs -q --report=checkstyle src | cs2pr
continue-on-error: ${{ github.ref != 'refs/heads/main' }}

- name: Run phpmd
run: phpmd src xml phpmd.xml --not-strict
continue-on-error: ${{ github.ref != 'refs/heads/main' }}

- name: List files in repository root
run: ls -alh

- name: List files in tests directory
run: ls -alh ./tests

- name: List files in vendor directory
run: ls -alh ./vendor

- name: Run PHPUnit tests
env:
XDEBUG_MODE: coverage
run: |
phpunit --bootstrap ./tests/bootstrap.php --configuration phpunit.xml --coverage-html ./coverage --coverage-text | tee coverage.txt
continue-on-error: ${{ github.ref != 'refs/heads/main' }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install remark presets
run: npm install remark-cli remark-preset-lint-consistent remark-preset-lint-recommended remark-lint-list-item-indent
- name: Run remark
run: npx remark . --output --use remark-preset-lint-consistent --use remark-preset-lint-recommended --use remark-lint-list-item-indent
- name: Check for linting errors
run: |
npx remark . --use remark-preset-lint-consistent --use remark-preset-lint-recommended --use remark-lint-list-item-indent
continue-on-error: ${{ github.ref != 'refs/heads/main' }}
- name: Git commit
if: success() && github.ref != 'refs/heads/main'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git add package.json package-lock.json
git diff --cached --quiet || (git commit -m "Update src from remark-lint" && git pull origin $(git rev-parse --abbrev-ref HEAD) --rebase --autostash && git push)

checks:
needs: [build, lint]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP (for checks)
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, zip, xml, curl, intl, sqlite, gd, pdo_mysql
tools: cs2pr, phpcs, phpmd, phpunit

- name: Run Checks
run: |
if ! command -v phpcs &> /dev/null; then
echo "phpcs could not be found. Please ensure it's installed."
exit 1
fi
if ! command -v phpmd &> /dev/null; then
echo "phpmd could not be found. Please ensure it's installed."
exit 1
fi
if phpcs -q --report=checkstyle src | grep -q "ERROR"; then
echo "PHP CodeSniffer found issues. Please fix them before merging."
exit 1
fi
if phpmd src xml phpmd.xml --strict | grep -q "ERROR"; then
echo "PHP Mess Detector found issues. Please fix them before merging."
exit 1
fi
# if ! phpunit --bootstrap ./tests/bootstrap.php --configuration phpunit.xml; then
# echo "PHPUnit tests failed. Please fix them before merging."
# exit 1
#fi
if ! npx remark . --use remark-preset-lint-consistent --use remark-preset-lint-recommended --use remark-lint-list-item-indent; then
echo "Markdown linting failed. Please fix them before merging."
exit 1
fi
continue-on-error: false
28 changes: 19 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"files.autoSave": "afterDelay",
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"cSpell.words": [
"Depubliceren",
"nextcloud",
"opencatalogi",
"pinia"
]
"files.autoSave": "afterDelay",
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"eslint.format.enable": true,
"cSpell.words": [
"depubliceren",
"Depubliceren",
"gedepubliceerd",
"Matadata",
"nextcloud",
"opencatalogi",
"organisation",
"Organisation",
"pinia",
"Toegangs"
],
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
}
3 changes: 3 additions & 0 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
'resources' => [
'metadata' => ['url' => '/api/metadata'],
'publications' => ['url' => '/api/publications'],
'organisations' => ['url' => '/api/organisations'],
'themes' => ['url' => '/api/themes'],
'attachments' => ['url' => '/api/attachments'],
'catalogi' => ['url' => '/api/catalogi'],
'directory' => ['url' => '/api/directory']
Expand All @@ -17,6 +19,7 @@
['name' => 'search#index', 'url' => '/api/search', 'verb' => 'GET'],
['name' => 'search#show', 'url' => '/api/search/{id}', 'verb' => 'GET'],
['name' => 'directory#page', 'url' => '/directory', 'verb' => 'GET'],
['name' => 'directory#add', 'url' => '/api/directory/add', 'verb' => 'POST'],
['name' => 'configuration#index', 'url' => '/configuration', 'verb' => 'GET'],
['name' => 'configuration#create', 'url' => '/configuration', 'verb' => 'POST']
],
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"adbario/php-dot-notation": "^3.3.0",
"bamarni/composer-bin-plugin": "^1.8",
"elasticsearch/elasticsearch": "^v8.14.0",
"adbario/php-dot-notation": "^3.3.0",
"guzzlehttp/guzzle": "^7.0",
"symfony/uid": "^6.4"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading