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

fix: Set literal range for UpdatedBy resource #3913

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

yaraslau-kavaliou
Copy link
Contributor

Queries with UpdatedBy property produced the wrong query to neo4j because UpdatedBy range was set to User type.
E. g. - https://github.com/oat-sa/generis/blob/feat/REL-1198/list-neo4j/test/integration/model/persistence/starsql/ClassTest.php#L71
In order to fix rdf UpdatedBy range has been set to literal.

How to test:

  1. Launch integration tests twice. No issue have to occur. (php vendor/bin/phpunit -c phpunit.xml generis/test/integration/model/persistence/starsql/)

Copy link
Contributor

@vbyndych vbyndych left a comment

Choose a reason for hiding this comment

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

@yaraslau-kavaliou You will need a migration to sync RDFs from the file to the database. See https://github.com/oat-sa/tao-core/blob/master/migrations/Version202307101518342234_tao.php as an example.

@vbyndych vbyndych self-assigned this Oct 20, 2023
@yaraslau-kavaliou yaraslau-kavaliou force-pushed the fix/REL-1198/update-update-by-range branch from d20fb49 to 6e41887 Compare October 23, 2023 15:54
@yaraslau-kavaliou
Copy link
Contributor Author

@yaraslau-kavaliou You will need a migration to sync RDFs from the file to the database. See https://github.com/oat-sa/tao-core/blob/master/migrations/Version202307101518342234_tao.php as an example.

Thanks, done

@vbyndych vbyndych force-pushed the feat/REL-1198/list-neo4j branch from b1049d1 to 05f300b Compare October 23, 2023 16:07
Base automatically changed from feat/REL-1198/list-neo4j to develop October 23, 2023 16:16
@github-actions
Copy link

Version

Target Version 53.12.0
Last version 53.11.0

There are 0 BREAKING CHANGE, 1 feature, 2 fixes

@yaraslau-kavaliou yaraslau-kavaliou merged commit 2c81852 into develop Oct 25, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants