Skip to content
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
458 commits
Select commit Hold shift + click to select a range
2ab0644
Merge branch 'dev' into doctrine
demiankatz May 16, 2024
5234e6c
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 17, 2024
da00f37
Fix case of DateTime class.
demiankatz May 17, 2024
c1ca391
Merge branch 'dev' into doctrine
demiankatz May 17, 2024
70ac464
Add missing interface.
demiankatz May 17, 2024
babb53f
Remove unwanted throw.
demiankatz May 17, 2024
19be38f
Remove obsolete reference.
demiankatz May 17, 2024
3c5d0cf
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 17, 2024
eade5c4
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 17, 2024
861290e
Merge branch 'dev' into doctrine
demiankatz May 20, 2024
4043c57
Code simplifications.
demiankatz May 20, 2024
2d2ca1a
Fix broken test.
demiankatz May 20, 2024
44042cf
Merge branch 'dev' into doctrine
demiankatz May 20, 2024
14e57fa
Merge branch 'dev' into doctrine
demiankatz May 20, 2024
5cbe584
Merge branch 'dev' into doctrine
demiankatz May 22, 2024
453a289
Update bootstrap5 theme.
demiankatz May 22, 2024
0ff0d0a
Merge branch 'dev' into doctrine
demiankatz May 23, 2024
be1b9ce
Merge branch 'dev' into doctrine
demiankatz May 23, 2024
2ce9f85
Fix merge error.
demiankatz May 23, 2024
98ceede
Merge branch 'dev' into doctrine
demiankatz May 24, 2024
a1a9848
Merge branch 'dev' into doctrine
demiankatz May 24, 2024
1261085
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 24, 2024
7274bf2
Merge branch 'dev' into doctrine
demiankatz May 28, 2024
691838e
Add new interface methods to AuthHash entity.
demiankatz May 28, 2024
e0f9837
Merge branch 'dev' into doctrine
demiankatz May 28, 2024
f3e14e3
Implement ExternalSessionEntityInterface in entity class.
demiankatz May 28, 2024
0823739
Merge branch 'dev' into doctrine
demiankatz May 28, 2024
c9b3594
Merge branch 'dev' into doctrine
demiankatz May 29, 2024
39592d7
Merge branch 'dev' into doctrine
demiankatz May 29, 2024
25379a8
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 29, 2024
5c989be
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 29, 2024
d04d2e8
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz May 29, 2024
dde6b4e
Clean up comments.
demiankatz May 29, 2024
72646d5
More cleanup.
demiankatz May 29, 2024
f922264
Merge branch 'dev' into doctrine
demiankatz May 29, 2024
ee4bd71
Add testing of deleted records to OaiTest.
demiankatz May 29, 2024
3e2a614
Remove debug line.
demiankatz May 29, 2024
7a18a96
Merge branch 'dev' into doctrine
demiankatz May 29, 2024
0259d61
Merge branch 'oai-deleted-test' into doctrine
demiankatz May 29, 2024
de69786
Fix broken test.
demiankatz May 29, 2024
61e37dc
Merge branch 'dev' into doctrine
demiankatz May 29, 2024
5f068d9
Merge branch 'dev' into doctrine
demiankatz May 30, 2024
931156d
Remove unused method and associated test.
demiankatz May 30, 2024
bfd275c
php-cs-fixer
demiankatz May 30, 2024
15aa44e
Merge branch 'dev' into doctrine
demiankatz May 31, 2024
03bf4b9
Minor fix.
demiankatz May 31, 2024
e1c1c49
Merge branch 'dev' into doctrine
demiankatz May 31, 2024
56c60df
Reduce diffs.
demiankatz May 31, 2024
a5c6571
Clarify feedback templates.
demiankatz Jun 1, 2024
44c7f60
Fix test.
demiankatz Jun 1, 2024
83ad677
Merge branch 'dev' into doctrine
demiankatz Jun 3, 2024
b9115c2
Merge branch 'dev' into doctrine
demiankatz Jun 3, 2024
37ffd6f
Merge branch 'dev' into doctrine
demiankatz Jun 3, 2024
129214a
phpcbf
demiankatz Jun 3, 2024
9be382c
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 3, 2024
30ae6d0
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
4654027
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
2749e06
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
de77327
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
372b954
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
e4c8704
Merge branch 'dev' into doctrine
demiankatz Jun 5, 2024
f7601cc
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
31f40ae
Add missing return.
demiankatz Jun 6, 2024
1828a00
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
31db1e1
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
ac1d867
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
9ac7c41
php-cs-fixer
demiankatz Jun 6, 2024
6a5c793
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
5496dc7
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 6, 2024
acbeed1
Merge branch 'dev' into doctrine
demiankatz Jun 6, 2024
c6e2ad9
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
165dd62
Make \VuFind\Db\ConnectionFactory easier to extend (#30)
aleksip Jun 7, 2024
3e0a4bf
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
e409022
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
8006615
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
48bac86
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
2c163d2
Merge branch 'dev' into doctrine
demiankatz Jun 7, 2024
b5038b4
Remove unused code.
demiankatz Jun 7, 2024
b560761
Fix alphabetical order.
demiankatz Jun 7, 2024
c54034d
Revert unnecessary change.
demiankatz Jun 7, 2024
1d5c483
Merge branch 'dev' into doctrine
demiankatz Jun 10, 2024
3a2ee02
Merge branch 'dev' into doctrine
demiankatz Jun 10, 2024
c2206cc
Merge branch 'dev' into doctrine
demiankatz Jun 10, 2024
4fac62d
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 10, 2024
3ccfa60
Fix merge glitch.
demiankatz Jun 10, 2024
17f453d
php-cs-fixer.
demiankatz Jun 10, 2024
d0dec6a
Reduce unnecessary diffs.
demiankatz Jun 10, 2024
99b25f8
Make method protected since it's not used externally.
demiankatz Jun 10, 2024
c9e0592
Merge branch 'dev' into doctrine
demiankatz Jun 10, 2024
761c935
Merge branch 'dev' into doctrine
demiankatz Jun 10, 2024
4fdeff3
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
6dabb82
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
a892f12
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
68289c8
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
7a1012a
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 11, 2024
94e6c27
Minor user authentication improvements (follows #3625).
demiankatz Jun 11, 2024
3ca1f52
Merge branch 'user-auth-fixes' into doctrine
demiankatz Jun 11, 2024
f0f0087
php-cs-fixer.
demiankatz Jun 11, 2024
ed30fe4
Minor fix.
demiankatz Jun 11, 2024
0be4ee9
php-cs-fixer
demiankatz Jun 11, 2024
e370658
Reduce diffs.
demiankatz Jun 11, 2024
5f22be8
More diff reduction/simplification.
demiankatz Jun 11, 2024
62d0024
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
da3f5fb
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2024
59d2afa
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
15ea6e1
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
e4d23b7
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
29a65c8
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
74c1aaa
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
eb53990
Fix tag sorting.
demiankatz Jun 12, 2024
9d384c4
Fix phpstan issue.
demiankatz Jun 12, 2024
5bb8928
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
a8af487
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
e2dd538
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 12, 2024
330d8b0
Fix bug.
demiankatz Jun 12, 2024
e9cd529
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
a710e35
Merge branch 'dev' into doctrine
demiankatz Jun 12, 2024
3026b96
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
09a423d
Style fixes.
demiankatz Jun 13, 2024
0a36939
Fix test.
demiankatz Jun 13, 2024
598d46d
More fixes.
demiankatz Jun 13, 2024
52d419e
One last fix.
demiankatz Jun 13, 2024
b2406c4
Remove deprecated method.
demiankatz Jun 13, 2024
eeffc8b
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
b61ce9b
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
5eb2d60
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
4d64f77
Reduce redundancy.
demiankatz Jun 13, 2024
16c7476
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
3a6f234
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
f14fe41
Merge branch 'dev' into doctrine
demiankatz Jun 13, 2024
a16a9dc
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 13, 2024
e7dce70
Merge branch 'dev' into doctrine
demiankatz Jun 14, 2024
d6cc727
Merge branch 'dev' into doctrine
demiankatz Jun 14, 2024
80c36dc
Merge branch 'dev' into doctrine
demiankatz Jun 14, 2024
02e7666
Bug fix.
demiankatz Jun 14, 2024
2ed20f0
Merge branch 'dev' into doctrine
demiankatz Jun 17, 2024
ba5fe82
Merge branch 'dev' into doctrine
demiankatz Jun 17, 2024
f4d4f23
Merge branch 'dev' into doctrine
demiankatz Jun 18, 2024
3ded82b
Merge branch 'dev' into doctrine
demiankatz Jun 18, 2024
ea58ce1
Fix issues.
demiankatz Jun 18, 2024
9fb5494
LoginToken Doctrine entity class (#31)
padmasreegade Jun 20, 2024
ae159c1
Merge branch 'dev' into doctrine
demiankatz Jul 2, 2024
17bae4d
Merge branch 'dev' into doctrine
demiankatz Aug 16, 2024
147a6cd
Merge branch 'dev' into doctrine
demiankatz Aug 27, 2024
19ece32
Merge branch 'dev' into doctrine
demiankatz Aug 28, 2024
a6796f3
Merge branch 'dev' into doctrine
demiankatz Aug 29, 2024
99df79f
Fix factory to use current interfaces.
demiankatz Aug 29, 2024
845df3d
Merge branch 'dev' into doctrine
demiankatz Sep 3, 2024
8916731
Merge branch 'dev' into doctrine
demiankatz Sep 4, 2024
4951130
Merge branch 'dev' into doctrine
demiankatz Sep 4, 2024
9e0c5c2
Access token service doctrine (#32)
padmasreegade Sep 4, 2024
60966f8
Merge branch 'dev-11.0' into doctrine
demiankatz Sep 5, 2024
26e19e6
Merge branch 'dev-11.0' into doctrine
demiankatz Sep 13, 2024
3ef5c51
Merge branch 'dev-11.0' into doctrine
demiankatz Sep 13, 2024
c21d9a6
Add SecretTrait support to database ConnectionFactory.
demiankatz Sep 13, 2024
0b04e24
Auth hash service doctrine (#33)
padmasreegade Sep 19, 2024
761a5f5
Merge branch 'dev-11.0' into doctrine
demiankatz Oct 8, 2024
6fb9c88
Merge branch 'dev-11.0' into doctrine
demiankatz Oct 22, 2024
8ad9a03
Merge branch 'dev' into doctrine
demiankatz Nov 1, 2024
e66a394
Merge branch 'dev' into doctrine
demiankatz Nov 5, 2024
5bc9ede
Merge branch 'dev' into doctrine
demiankatz Nov 15, 2024
40c8613
Merge branch 'dev' into doctrine
demiankatz Dec 2, 2024
9b86ddc
Migration of Login Token Service from Laminas to Doctrine. (#35)
padmasreegade Dec 2, 2024
8c0cb05
Merge branch 'dev' into doctrine
demiankatz Dec 9, 2024
9f6bdc5
Merge branch 'dev' into doctrine
demiankatz Dec 9, 2024
fe77e78
Convert ExternalSession code to Doctrine. (#34)
padmasreegade Dec 9, 2024
f0f0d35
Merge branch 'dev' into doctrine
demiankatz Jan 6, 2025
d14f02e
Remove no-longer-needed pagination adapter.
demiankatz Jan 6, 2025
ba31619
Make comment order consistent.
demiankatz Jan 6, 2025
095200c
Fix bug: wrong table name in query.
demiankatz Jan 6, 2025
c805944
Merge branch 'dev' into doctrine
demiankatz Jan 24, 2025
83b23d1
Merge branch 'dev' into doctrine
demiankatz Mar 3, 2025
d45aa32
Merge branch 'dev' into doctrine
demiankatz Mar 6, 2025
1b5933a
Merge branch 'dev' into doctrine
demiankatz Apr 9, 2025
f6528ea
Introduce persistence manager.
demiankatz Apr 9, 2025
2ec281e
Merge branch 'dev' into doctrine
demiankatz Apr 10, 2025
f8c65a5
Merge branch 'dev' into doctrine
demiankatz Apr 14, 2025
da382d5
Merge branch 'dev' into doctrine
demiankatz Apr 15, 2025
41983be
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Apr 15, 2025
c673eee
Convert user service to Doctrine. (#37)
padmasreegade Apr 28, 2025
61e5a07
Merge branch 'dev' into doctrine
demiankatz Apr 29, 2025
6720dd7
Port InstallController to use Doctrine.
demiankatz Apr 29, 2025
62b0c8a
Remove deprecated method.
demiankatz Apr 29, 2025
371aebe
Convert UpgradeController to Doctrine.
demiankatz Apr 29, 2025
f328163
Merge branch 'dev' into doctrine
demiankatz May 6, 2025
2ddfb0c
Merge branch 'dev' into doctrine
demiankatz May 13, 2025
6d9adc9
Introduce Doctrine search service (#39)
padmasreegade May 13, 2025
19f4652
Merge branch 'dev' into doctrine
demiankatz May 14, 2025
1819224
Remove DbTableAware code and related test logic.
demiankatz May 14, 2025
b3ebf67
Clean up more unused table code.
demiankatz May 14, 2025
6a9a5f2
Update exception.
demiankatz May 14, 2025
458c2c6
Improve comments.
demiankatz May 14, 2025
449e411
Remove obsolete Laminas code/configuration.
demiankatz May 15, 2025
a9ed082
Convert from annotation driver to attribute driver.
demiankatz May 15, 2025
af8878b
Use entity interfaces in getEntityClass calls; other minor consistenc…
demiankatz May 15, 2025
006db64
Merge branch 'dev' into doctrine
demiankatz May 21, 2025
d381fde
Replace Laminas-based log writer with Doctrine-based one.
demiankatz May 21, 2025
2e557b1
Remove remaining Laminas\Db code.
demiankatz May 21, 2025
cf77894
Remove Laminas\Db.
demiankatz May 21, 2025
c77bfa5
Case-insensitive username lookup.
demiankatz May 21, 2025
bf59266
Eliminate static method.
demiankatz May 21, 2025
989137c
Simplify ChangeTrackerService.
demiankatz May 21, 2025
6d882fb
Merge branch 'dev' into doctrine
demiankatz May 27, 2025
c81cc75
Fix missing case-sensitivity handling.
demiankatz May 27, 2025
09d0041
Fix database upgrade workflow.
demiankatz May 27, 2025
1867b98
Move tag merging logic to higher level service.
demiankatz May 27, 2025
d6bda84
Style fix.
demiankatz May 27, 2025
574ae19
Refactor and fix getResourceIDsForTag().
demiankatz May 27, 2025
2bd7d66
Unify DateTime field definitions. (#41)
EreMaijala May 28, 2025
0d00784
Merge branch 'dev' into doctrine
demiankatz May 28, 2025
f40ee11
Fix duplicate code (likely merge error).
demiankatz May 28, 2025
ec16e7c
Merge branch 'dev' into doctrine
demiankatz May 29, 2025
684049e
Reimplement character set config.
demiankatz May 29, 2025
d98a0d4
No need to translate oci8; that's the native Doctrine value.
demiankatz May 29, 2025
1b5cb5d
Reimplement MySQL SSL support.
demiankatz May 29, 2025
5a36708
Update config/vufind/config.ini
demiankatz Jun 3, 2025
9f5a790
Merge branch 'dev' into doctrine
demiankatz Jun 3, 2025
a88798f
Fix CLI configuration.
demiankatz Jun 3, 2025
6523961
Refactor duplicate key detection into persistence manager.
demiankatz Jun 3, 2025
cc11603
Update module/VuFind/src/VuFind/Db/Entity/ExchangeArrayInterface.php
demiankatz Jun 4, 2025
2658cf9
Update module/VuFind/src/VuFind/Db/Entity/ExchangeArrayInterface.php
demiankatz Jun 4, 2025
670737c
Fix getLastLogin/setLastLogin. (#42)
EreMaijala Jun 9, 2025
46028b1
Add PersistenceManagerFactory::getEntityManager() (#43)
aleksip Jun 11, 2025
2e415df
Merge branch 'dev' into doctrine
demiankatz Jun 11, 2025
4485630
Simplify / clean up ShortlinksService.
demiankatz Jun 11, 2025
27fe040
Fix change tracker test to work in different time zones. (#45)
EreMaijala Jun 18, 2025
d144552
Merge branch 'dev' into doctrine
demiankatz Jun 18, 2025
cfd96b3
Remove unused include.
demiankatz Jun 18, 2025
4ef6fbf
Simplify and type SessionServiceTest.
demiankatz Jun 18, 2025
62b4b83
Update module/VuFind/tests/unit-tests/src/VuFindTest/Db/Service/OaiRe…
demiankatz Jun 18, 2025
ae329ea
Type and simplify OaiResumptionServiceTest.
demiankatz Jun 18, 2025
e01c560
Remove stopgap doctrine references.
demiankatz Jun 18, 2025
862aca6
Fix tests.
demiankatz Jun 18, 2025
a53c3bd
Merge branch 'dev' into doctrine
demiankatz Jun 25, 2025
b09baac
Fix CLI config.
demiankatz Jun 25, 2025
73706e8
Use interfaces and typed variables in database entities (#44)
aleksip Jun 26, 2025
85b87b2
Merge branch 'dev' into doctrine
demiankatz Jun 26, 2025
09a914d
Merge remote-tracking branch 'origin/dev' into doctrine
demiankatz Jun 26, 2025
2e3d561
Fix User Content functionality for Doctrine (#40)
rajaro Jun 26, 2025
53b1449
Merge branch 'dev' into doctrine
demiankatz Jun 30, 2025
9e9aba1
Remove unnecessary exception handling.
demiankatz Jun 30, 2025
fa5b0c2
Merge branch 'dev' into doctrine
demiankatz Jul 2, 2025
ae0249f
Standardize user list processing.
demiankatz Jul 2, 2025
b967e7e
Merge branch 'dev' into doctrine
demiankatz Jul 15, 2025
8f3187a
Update dependencies.
demiankatz Jul 15, 2025
ab5362d
Merge branch 'dev' into doctrine
demiankatz Jul 28, 2025
f8526d2
Add Doctrine validation test and associated fixes. (#47)
demiankatz Jul 29, 2025
9047259
Merge branch 'dev' into doctrine
demiankatz Jul 29, 2025
a84629b
Remove meaningless whitespace diff.
demiankatz Aug 19, 2025
d97ad75
Merge branch 'dev' into doctrine
demiankatz Aug 19, 2025
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
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"colinmollenhour/credis": "1.13.0",
"composer/package-versions-deprecated": "1.11.99.5",
"composer/semver": "3.3.2",
"doctrine/doctrine-orm-module": "^5.0",
"doctrine/orm": "^2.10.2",
"endroid/qr-code": "4.4.9",
"jasig/phpcas": "1.5.0",
"laminas/laminas-cache": "3.1.3",
Expand Down
1,857 changes: 1,329 additions & 528 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions config/application.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

// Set up modules:
$modules = [
'DoctrineModule',
'DoctrineORMModule',
'Laminas\Cache',
'Laminas\Cache\Storage\Adapter\BlackHole',
'Laminas\Cache\Storage\Adapter\Filesystem',
Expand Down
6 changes: 6 additions & 0 deletions config/cli-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

$app = include __DIR__ . '/application.php';
return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet(
$app->getServiceManager()->get('doctrine.entity_manager.orm_default')
);
42 changes: 42 additions & 0 deletions module/VuFind/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
'service_manager' => [
'allow_override' => true,
'factories' => [
'Doctrine\ORM\Mapping\Driver\AnnotationDriver' => 'VuFind\Db\AnnotationDriverFactory',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleksip, I see that you deleted this factory, but the configuration is still here. We should clean something up.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, forgot to remove that line. Should I push the change to your branch or what would be the best way to work on this together?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please feel free to push directly here, as long as the code still works. I'm not going to be working on this much until next year, so I welcome any progress you can make in the meantime, and I don't anticipate that we'll "step on each other," so to speak.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if at any point it would be helpful to get a second opinion or anything, or if you would like me to run any tests, just let me know and I'll be happy to help!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@demiankatz I meant to push the changes to my repository and then point you there. Not sure how multi-user PRs should work... Should I push future suggested changes to my clone so you can then decide whether to merge to your branch from there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleksip, it is possible to make a pull request against a pull request -- you can just target a PR against this branch. That might be the easiest workflow going forward, especially when multi-user collaboration picks up... but since things are quiet right now, feel free to work directly in this branch, at least until you get things into a correct/stable state again. (I think it's easier to just move forward and fix things than to roll back changes and make a separate PR, at least under the present circumstances).

Copy link
Contributor

@aleksip aleksip Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@demiankatz Seems like I can create a PR for the branch in your repository! Should I do that? Edit: missed your above reply.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to try it as a proof-of-concept, feel free... but otherwise, as I said, you can just go ahead and push. :-)

'League\CommonMark\ConverterInterface' => 'VuFind\Service\MarkdownFactory',
'ProxyManager\Configuration' => 'VuFind\Service\ProxyConfigFactory',
'VuFind\AjaxHandler\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
Expand Down Expand Up @@ -378,7 +379,10 @@
'VuFind\Crypt\HMAC' => 'VuFind\Crypt\HMACFactory',
'VuFind\Date\Converter' => 'VuFind\Service\DateConverterFactory',
'VuFind\Db\AdapterFactory' => 'VuFind\Service\ServiceWithConfigIniFactory',
'VuFind\Db\Connection' => 'VuFind\Db\ConnectionFactory',
'VuFind\Db\Entity\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
'VuFind\Db\Row\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
'VuFind\Db\Service\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
'VuFind\Db\Table\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
'VuFind\DigitalContent\OverdriveConnector' => 'VuFind\DigitalContent\OverdriveConnectorFactory',
'VuFind\DoiLinker\PluginManager' => 'VuFind\ServiceManager\AbstractPluginManagerFactory',
Expand Down Expand Up @@ -464,6 +468,7 @@
'VuFind\ServiceManager\ServiceInitializer',
],
'aliases' => [
'doctrine.connection.orm_vufind' => 'VuFind\Db\Connection',
'League\CommonMark\MarkdownConverterInterface' => 'League\CommonMark\ConverterInterface',
'Request' => 'VuFind\Http\PhpEnvironment\Request',
'VuFind\AccountCapabilities' => 'VuFind\Config\AccountCapabilities',
Expand Down Expand Up @@ -533,6 +538,41 @@
'VuFind\Form\Form' => false,
],
],
'doctrine' => [
'cache' => [
'filesystem' => [
'directory' => LOCAL_CACHE_DIR . '/doctrine',
],
],
'configuration' => [
'orm_default' => [
'query_cache' => 'filesystem',
'result_cache' => 'filesystem',
'metadata_cache' => 'filesystem',
'hydration_cache' => 'filesystem',
],
],
'driver' => [
'vufind_annotation_driver' => [
'class' => \Doctrine\ORM\Mapping\Driver\AnnotationDriver::class,
'cache' => 'filesystem',
'paths' => [
'module/VuFind/src/VuFind/Db/Entity',
],
],
'orm_default' => [
'drivers' => [
'VuFind\Db\Entity' => 'vufind_annotation_driver',
],
],
],
'entitymanager' => [
'orm_vufind' => [
'connection' => 'orm_vufind',
'configuration' => 'orm_vufind',
],
],
],
'translator' => [],
'translator_plugins' => [
'factories' => [
Expand Down Expand Up @@ -595,7 +635,9 @@
'content_toc' => [ /* see VuFind\Content\TOC\PluginManager for defaults */ ],
'contentblock' => [ /* see VuFind\ContentBlock\PluginManager for defaults */ ],
'cover_layer' => [ /* see VuFind\Cover\Layer\PluginManager for defaults */ ],
'db_entity' => [ /* see VuFind\Db\Entity\PluginManager for defaults */ ],
'db_row' => [ /* see VuFind\Db\Row\PluginManager for defaults */ ],
'db_service' => [ /* see VuFind\Db\Service\PluginManager for defaults */ ],
'db_table' => [ /* see VuFind\Db\Table\PluginManager for defaults */ ],
'doilinker' => [ /* see VuFind\DoiLinker\PluginManager for defaults */ ],
'form_handler' => [ /* see VuFind\Form\Handler\PluginManager for defaults */],
Expand Down
13 changes: 13 additions & 0 deletions module/VuFind/src/VuFind/Controller/AbstractBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,19 @@ public function getTable($table)
->get($table);
}

/**
* Get a database service object.
*
* @param string $name Name of service to retrieve
*
* @return \VuFind\Db\Service\AbstractService
*/
public function getDbService(string $name): \VuFind\Db\Service\AbstractService
{
return $this->serviceLocator->get(\VuFind\Db\Service\PluginManager::class)
->get($name);
}

/**
* Get the full URL to one of VuFind's routes.
*
Expand Down
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/Controller/UpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ public function fixdatabaseAction()
// content -- the checks below should be platform-independent.

// Check for legacy tag bugs:
$resourceTagsTable = $this->getTable('ResourceTags');
$anonymousTags = $resourceTagsTable->getAnonymousCount();
$tagService = $this->getDbService(\VuFind\Db\Service\TagService::class);
$anonymousTags = $tagService->getAnonymousCount();
if ($anonymousTags > 0 && !isset($this->cookie->skipAnonymousTags)) {
$this->getRequest()->getQuery()->set('anonymousCnt', $anonymousTags);
return $this->redirect()->toRoute('upgrade-fixanonymoustags');
Expand Down
Loading