Skip to content
Draft

V2 #14

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
970295c
travis is dead
Spamercz Apr 4, 2024
97e41c3
version bump
Spamercz Apr 4, 2024
c371e6c
added json to php image
Spamercz Apr 4, 2024
333dabe
test
Spamercz Apr 4, 2024
0357cfc
cs
Spamercz Apr 4, 2024
067a08e
dropped support for types (ES<7)
Spamercz Jun 5, 2024
cd6c79c
cs update
Spamercz Jun 5, 2024
264e900
elasticsearch version bump, supported version is now 8+
Spamercz Jun 5, 2024
834fecb
phpstan bump
Spamercz Jun 5, 2024
9cbb3b2
Config Attributes can be used on property and parameter
Spamercz Jun 5, 2024
7ed91aa
added IdentityMap
Spamercz Jun 5, 2024
2a585f3
added STI entity collection
Spamercz Jun 5, 2024
538b29c
added event manager for entityManager
Spamercz Jun 5, 2024
b6c7ea0
added EntityManager
Spamercz Jun 5, 2024
fad6d75
Added entity manager to entity factory
Spamercz Jun 7, 2024
87495af
added ChangeSet to figure out which entities are new/changed
Spamercz Jun 7, 2024
70cf60c
added event dispatcher for child entities inside elastic entity
Spamercz Jun 7, 2024
eb1f2f5
added listener interface
Spamercz Jun 7, 2024
4122acf
integrated identity map into insert mechanism
Spamercz Jun 7, 2024
53d5097
🧙‍♂️
Spamercz Jun 7, 2024
f4864e5
EntityFactory improvements
Spamercz Jun 7, 2024
b215525
updated tests (may not work yet)
Spamercz Jun 7, 2024
5ca5704
added branch alias
Spamercz Jun 7, 2024
02be735
updated tests
Spamercz Jun 8, 2024
2d84cba
cs
Spamercz Jun 9, 2024
ede3533
cs
Spamercz Jun 9, 2024
0cc64fe
phpstan bump
Spamercz Jun 9, 2024
026d053
es for tests
Spamercz Jun 9, 2024
7e79940
dependencies bump
Spamercz Jun 9, 2024
4b4cbe5
dependencies bump
Spamercz Jul 17, 2024
7b96723
must work with abstract entity class because of implemented methods
Spamercz Oct 8, 2024
6bd7dec
phpstan
Spamercz Oct 8, 2024
ba1177b
serialized string only calculates from main entity and ids of subprop…
Spamercz Oct 8, 2024
2df4dc4
cs
Spamercz Oct 8, 2024
cb6d417
passed name to parent
Spamercz Oct 8, 2024
12e3679
version bump and dropped support for kdyby console (for now?)
Spamercz Oct 8, 2024
e1a775b
version bump and dropped support for kdyby console (for now?)
Spamercz Oct 8, 2024
9e5eb30
version bump and dropped support for kdyby console (for now?)
Spamercz Oct 8, 2024
f8eb819
version bump and dropped support for kdyby console (for now?)
Spamercz Oct 8, 2024
0462664
not signed certificates fix?
Spamercz Oct 8, 2024
2669af6
collections should serialize only ids
Spamercz Oct 10, 2024
99c283e
elasticsearch type cleanup - no longer supported
Spamercz Oct 14, 2024
8e49078
universal collections instead of arrays
Spamercz Oct 14, 2024
f9d65d4
cs
Spamercz Oct 14, 2024
6db3f0d
tests fixed
Spamercz Oct 14, 2024
244413d
lowest version bump
Spamercz Oct 14, 2024
a738ab7
lowest version bump
Spamercz Oct 14, 2024
1a3fa5d
lowest version bump
Spamercz Oct 14, 2024
0fc5689
universal collection for results
Spamercz Oct 18, 2024
8c790da
Elastic entity collection now has result search so you can access agg…
Spamercz Nov 5, 2024
697e964
fixed sti entity so it properly sets entity class
Spamercz Nov 5, 2024
129a63d
changed base service so it has less config parameters in constructor …
Spamercz Nov 5, 2024
54b7537
fixed types
Spamercz Nov 5, 2024
a223a00
entity factory must have class and entity manager even when used from…
Spamercz Nov 5, 2024
99f352d
fixed attributes reading so it is resolved correctly for all supporte…
Spamercz Nov 5, 2024
f438520
return type is not nullable, when no result found, exception Document…
Spamercz Nov 5, 2024
d00c748
added template to Elastic collections
Spamercz Jan 9, 2025
5acc231
autowire entities if class exists in container
Spamercz Jan 9, 2025
6286fa1
autoload STIElasticEntity in entity factory based on attribute name S…
Spamercz Jan 9, 2025
5cb752b
if entity in collection is missing, just skip it, do not load or fail…
Spamercz Jan 9, 2025
d0c6bf8
cs
Spamercz Jan 9, 2025
958aae1
read attributes via reflection in entity serialization logic
Spamercz Jan 9, 2025
71ae4f7
do not save abstract entity parent to identity map
Spamercz Jan 9, 2025
a03ab5a
prepare entity after it is marked as inserted to prevent some cases o…
Spamercz Jan 9, 2025
6f1f016
tests update
Spamercz Jan 9, 2025
24f1087
trying to solve circular reference when creating entity
Spamercz Jan 9, 2025
5b5729d
CS + PHPStan fixes
Spamercz Feb 21, 2025
dfe7f90
initialize circular reference properties after entities are initializ…
Spamercz Feb 21, 2025
2f31714
phpstan standards ignore errors copied to phpstan low
Spamercz Feb 21, 2025
2650da2
bumped minimal version of guzzle as elasticsearch depends on it
Spamercz Feb 21, 2025
bcd21b3
bumped minimal version of symfony/console as other libs depends on it
Spamercz Feb 21, 2025
7a4b79e
fix circular
Spamercz Feb 22, 2025
0594eba
update docblok
Spamercz Feb 22, 2025
a604681
phpstan cleanup
Spamercz Feb 22, 2025
7961b70
init claude md
Spamercz Nov 27, 2025
e3ec1f7
updated CI
Spamercz Dec 21, 2025
d5513b5
updated documentation
Spamercz Dec 21, 2025
e544b13
dropped entities config via neon
Spamercz Dec 21, 2025
6c00cda
remove also removes from identitymap
Spamercz Dec 21, 2025
e9356d2
remove also removes from identitymap
Spamercz Dec 21, 2025
20abf2a
refactor: update alias handling to use updateAliases method
Spamercz Dec 21, 2025
0b53c08
bump version and setup dev docker
Spamercz Dec 21, 2025
a90a7b6
bump version and setup dev docker
Spamercz Dec 21, 2025
d69f507
added tests
Spamercz Dec 21, 2025
2336478
cs
Spamercz Dec 21, 2025
64dee24
remove duplicate run
Spamercz Dec 21, 2025
9bbe0dc
added basic auth config
Spamercz Dec 22, 2025
91ae604
csf
Spamercz Dec 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git/
vendor/
tests/tmp/
.idea/
.vscode/
*.log
.phpcs-cache
22 changes: 0 additions & 22 deletions .github/ci.yml

This file was deleted.

82 changes: 62 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
name: Package CI

on:
push:
branches:
- master
pull_request:

jobs:
checks:
name: Checks
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.2, 8.3 ]
php: [ '8.2', '8.5' ]
version: [ lowest, standard ]
elastic: [ 8.12.0 ]
elastic: [ '9.2.2' ]

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, curl
coverage: none

- name: Configure sysctl limits
run: |
Expand All @@ -30,27 +39,60 @@ jobs:
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: ${{ matrix.elastic }}
security-enabled: false
elasticsearch_options: action.destructive_requires_name=false

- if: matrix.version == 'lowest'
name: Composer lowest
- name: Install dependencies (lowest)
if: matrix.version == 'lowest'
run: make composer-lowest

- if: matrix.version == 'standard'
name: Composer standard
- name: Install dependencies (standard)
if: matrix.version == 'standard'
run: make composer

- if: matrix.php == '8.2'
name: Coding standard
run: make cs
- name: Run tests
run: make tests

- if: matrix.php == '8.2' && matrix.version == 'lowest'
name: PHPStan lowest
run: make phpstan-lowest
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- if: matrix.php == '8.2' && matrix.version == 'standard'
name: PHPStan standard
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
extensions: json, curl
coverage: none

- name: Install dependencies
run: make composer

- name: Check coding standards
run: make cs

- name: Run PHPStan
run: make phpstan

- name: Tests
run: make tests
phpstan-lowest:
name: PHPStan (lowest deps)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
extensions: json, curl
coverage: none

- name: Install dependencies
run: make composer-lowest

- name: Run PHPStan
run: make phpstan-lowest

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
vendor/
composer.lock
Loading
Loading