1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 09:44:03 +00:00
tenancy/src/Events
Abrar Ahmad 77c5ae1f32
[4.x] Configure attributes for synced resources when creating models (#915)
* configure attributes for creating resource

* Update ResourceSyncingTest.php

* Update ci.yml

* Update ResourceSyncingTest.php

* Update ci.yml

* cs

* comments

* Update tests/ResourceSyncingTest.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* improve comments, move method to `SyncMaster` interface

* Revert "improve comments, move method to `SyncMaster` interface"

This reverts commit 5ddd50deb9.

* Update ResourceSyncingTest.php

* Update ResourceSyncingTest.php

* update comment

* Update ResourceSyncingTest.php

* Update ResourceSyncingTest.php

* wip

* wip

* wip

* add a todo

* assert that creation attributes returns null

* classes at the end

* rename method to `getAttributesForCreation`

* Update ResourceSyncingTest.php

* update comments

* Fix little grammer

* merge default values with sync attributes and tests

* Update ResourceSyncingTest.php

* method rename

* method rename

* Update ResourceSyncingTest.php

* comments

* Update ResourceSyncingTest.php

* allow defining a mix of attribute names and default values

* add test

* code improvements

* Fix code style (php-cs-fixer)

* remove unused import

* fix all phpstan issues in resource syncing code

* Fix code style (php-cs-fixer)

* wip

* improve tests

* Update ResourceSyncingTest.php

* better names

* Update UpdateSyncedResource.php

* code style

* Update UpdateSyncedResource.php

* add comments above new tests

* methods dockblocks and correct names

* Update ResourceSyncingTest.php

* update comments

* remove different schema setup

* delete custom migrations

* self review

* grammar, code style

* refactor helpers for creating tenants

Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2022-11-03 17:51:29 +01:00
..
Contracts [4.x] Drop tenant databases on migrate:fresh (#971) 2022-10-17 15:19:30 +02:00
BootstrappingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
CreatingPendingTenant.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
CreatingStorageSymlink.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
CreatingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseMigrated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseRolledBack.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DatabaseSeeded.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DeletingDatabase.php Rolling back & deleting DB events 2020-05-24 20:52:50 +02:00
DeletingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DeletingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainSaved.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
DomainUpdated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
EndingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
InitializingTenancy.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
MigratingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
PendingTenantCreated.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
PendingTenantPulled.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
PullingPendingTenant.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
RemovingStorageSymlink.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
RevertedToCentralContext.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
RevertingToCentralContext.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
RollingBackDatabase.php Rolling back & deleting DB events 2020-05-24 20:52:50 +02:00
SavedDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavedTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SavingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
SeedingDatabase.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
StorageSymlinkCreated.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
StorageSymlinkRemoved.php [4.x] Storage::url() support (modified #689) (#909) 2022-09-28 05:09:45 +02:00
SyncedResourceChangedInForeignDatabase.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
SyncedResourceSaved.php [4.x] Configure attributes for synced resources when creating models (#915) 2022-11-03 17:51:29 +01:00
TenancyBootstrapped.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenancyEnded.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenancyInitialized.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantCreated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantDeleted.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantMaintenanceModeDisabled.php Fix code style (php-cs-fixer) 2022-10-17 17:48:49 +00:00
TenantMaintenanceModeEnabled.php Fix code style (php-cs-fixer) 2022-10-17 17:48:49 +00:00
TenantSaved.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
TenantUpdated.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
UpdatingDomain.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
UpdatingTenant.php Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00