1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:34:03 +00:00
Commit graph

1298 commits

Author SHA1 Message Date
b0861e11fd ci: dont produce .exp .lib on Windows 2025-01-02 08:21:14 +01:00
github-actions[bot]
cef9d7ead6 Auto-build: Update extensions [skip ci] 2025-01-02 07:19:07 +00:00
772cbd9de0 ci: windows fixes, makefile fix 2025-01-02 08:18:36 +01:00
2bee323ef7 ci: try using clang on windows 2025-01-02 08:16:45 +01:00
3368a6dc27 ci: try to fix windows build 2025-01-02 08:13:28 +01:00
594fa92383 ci: add debug steps 2025-01-02 08:04:51 +01:00
b9c09ef271 ci: misc minor fixes 2025-01-02 08:02:10 +01:00
8b8ae265e5 ci: try fixing c compiler on windows 2025-01-02 07:59:44 +01:00
688a4df7e6 ci: misc minor fixes 2025-01-02 07:49:58 +01:00
a5b2bbc505 ci: try calling vcvars64 2025-01-02 07:46:58 +01:00
a784ee0311 ci: use the current branch for rebase 2025-01-02 06:31:26 +01:00
c5f187d2c7 ci: try fixing retry logic, make makefile use cl on Windows 2025-01-02 06:29:47 +01:00
github-actions[bot]
93fe982b12 Auto-build: Update extensions [skip ci] 2025-01-02 05:11:37 +00:00
github-actions[bot]
68a7795ed1 Auto-build: Update extensions [skip ci] 2025-01-02 05:11:34 +00:00
f032b452fb ci: fix workflow on windows, fix makefile 2025-01-02 06:11:19 +01:00
3866f59b60 ci: fix runs-on matrix 2025-01-02 06:05:12 +01:00
cf0a8cae84 ci: simpler solution to race conditions, proper os/arch matrix 2025-01-02 06:02:24 +01:00
59e9590219 ci: add cd to each step 2025-01-02 05:49:29 +01:00
PHP CS Fixer
ededbbe1e2 Fix code style (php-cs-fixer) 2025-01-02 04:47:12 +00:00
9bb06afc57 add DisallowSqliteAttach feature 2025-01-02 05:46:43 +01:00
613ab5bbc8 queue.yml: remove TENANCY_VERSION env var from test.sh 2024-12-31 07:41:32 +01:00
abe1f1f0ec queue ci: set TENANCY_VERSION for setup.sh 2024-12-31 07:40:06 +01:00
f84b22e6ce add queue CI workflow 2024-12-31 06:44:50 +01:00
Márk Magyar
79f740d057
[4.x] General code cleanup (#1278)
* Declare sensitive parameters as sensitive

... just so that they don't show up in logs

* Remove unnecessary null-coalescing

* Simplify return

* Merge isset() calls

* Inline return

* Use nullsafe operator

* Simplify if-else branches

* Use direct empty string comparison instead of strlen()

* Add missing type

* Change interface as events expect a TenantWithDatabase not just a Tenant

* Narrow typehint

* Remove redundant type casts

* Fix style with php-cs-fixer

* Fix typos

* Revert unwanted if-else simplification

* fix phpstan errors

* narrow type

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-31 00:35:46 +01:00
Alec
05b602e37f
fix: no primary key on RLS views (#1280)
* fix: no primary key on RLS views

* test: add RLS view regression

* verify and slightly refactor regression test

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-31 00:02:50 +01:00
eff41553d7 deprecate JobBatchBootstrapper 2024-12-27 21:33:44 +01:00
5777ff850f bump php version 2024-12-26 05:51:46 +01:00
855ba91508 prepare for public beta 2024-12-26 05:00:58 +01:00
79444723dd phpstan fix 2024-12-20 03:47:35 +01:00
lukinovec
cb0d7e2902
Improve early identification tests (#66)
* Separate route-level domain identification test from path/request to improve readability WIP

* Get rid of confusing datasets in route-level identifcation tests

* Clean up updated tests

* Simplify early id tests

* Reduce dataset duplication

* Improve test readability, fix false positive,  polish details

* Separate early ID test from defaulting test (WIP)

* Finish improving and correcting the early identification/default route mode tests

* Make flag/default mode usage more clear by improving the docblock in DealsWithRouteContexts

* Fix PHPUnit deprecation warnings

* code review

* code review

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-20 03:42:23 +01:00
Samuel Štancl
48b916e182
Supported named in-memory SQLite databases (#69)
This PR adds support for named in-memory SQLite databases, making it feasible to use in-memory SQLite for tenant databases in tests.

The usage is simply creating a tenant with 'tenancy_db_name' => ':memory:' and the bootstrapper will automatically update the tenant with a database name derived from its tenant key.

There are static property hooks for keeping these DBs alive (at least one connection needs to be open, they don't have process lifetime and are essentially "refcounted") and closing them when the database is deleted. This gives the user control over the lifetimes of these databases.
2024-11-25 04:48:52 +01:00
Samuel Štancl
85bdbd57f7
Fix pullFromPendingPool() behavior (#70) 2024-11-25 04:44:39 +01:00
PHP CS Fixer
19631f4e9a Fix code style (php-cs-fixer) 2024-11-09 19:54:56 +00:00
56dd4117ab Fix origin id w/ empty header & using full-hostname subdomain records
This makes it possible to have Domain records in both `foo` and
`foo.{centralDomain}` format when using the combined domain/subdomain
identification middleware, or the origin header id mw which extends it.

This commit also refactors some related logic.
2024-11-09 20:48:45 +01:00
c199a6e0c8 Merge branch 'master' of github.com:tenancy-for-laravel/v4 2024-10-11 23:01:25 +02:00
10b214c452 add phpstan ignore 2024-10-11 23:01:12 +02:00
lukinovec
5f8a3d2ffe
Improve the tests where the removed universal_channel() was still used (#64) 2024-10-11 22:50:38 +02:00
a07ba8c76c docker: add composer back 2024-10-11 21:54:10 +02:00
PHP CS Fixer
d4b9972600 Fix code style (php-cs-fixer) 2024-10-11 19:32:21 +00:00
9ee1d63dce sqlite: use WAL journal mode by default 2024-10-11 21:31:54 +02:00
43d821ca49 docker: base Dockerfile on php images, misc improvements 2024-10-11 21:29:54 +02:00
a52efe5cf0 wip broadcasting test fixes 2024-10-03 21:34:05 +02:00
a37dc9b449 reimplement broadcasting channel helpers to support model binding 2024-10-03 21:12:09 +02:00
836a258a78 sqlite: use .sqlite suffix if db.suffix is empty 2024-09-30 16:49:46 +02:00
c6ba62bdd0 ParallelCommand: add -P option for bypassing MAX_PROCESSES 2024-09-30 16:36:37 +02:00
303b52d25a minor improvements to parallelization logic 2024-09-29 12:42:29 +02:00
075789eb91 fix typo in ParallelCommand 2024-09-29 12:25:46 +02:00
f017b6509b fix sysctl string 2024-09-27 23:21:08 +02:00
b01c16f4fc phpstan fixes 2024-09-27 23:16:39 +02:00
39bcbda5d0 parallel commands: core # autodetect, bugfixes, improved output 2024-09-27 23:02:03 +02:00