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

REL-1198: List value URI definition should work with neo4j RDF storage. #1075

Merged
merged 14 commits into from
Oct 23, 2023

Conversation

vbyndych
Copy link
Contributor

Goal

List value URIs can be modified via user interface. Yet implementation is modifying SQL statements table directly, and would not work with neo4j RDF storage.

Changelog

  • feat: extended complex search functionality to fetch lists data.
  • chore: removed unused constructors and extra spaces.
  • refactor: changed logic for values fetching using new complex search tripple method for consistency.

Dependencies

oat-sa/lib-generis-search#32

@vbyndych vbyndych force-pushed the feat/REL-1198/list-neo4j branch from 1820fd2 to 9cbb8a7 Compare October 13, 2023 08:25
Copy link
Contributor

@yaraslau-kavaliou yaraslau-kavaliou left a comment

Choose a reason for hiding this comment

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

Great job!
Tested locally with sql and neo4j databases and updating uri functionality for lists works without issues.

  • New code respects code style rules
  • New code respects best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic

$result = $this->fetchTripleList(
parent::searchTriples($Builder, $propertyUri, $isDistinct)
);
return new $this->resultSetClassName($result, count($result));
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: Adding empty line before return statement here and in other methods looks like a good idea

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will fix

/**
* Changes class URI for all its properties and linked objects.
*
* @param core_kernel_classes_Class $resource
Copy link
Contributor

Choose a reason for hiding this comment

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

Not important at all, but just thought if we have type hinting in method declaration we don't need to add them to phpdoc. Wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I totally agree. Will fix.

Base automatically changed from feat/REL-1197/rdf-import-export-neo4j to poc/REL-1106/rdf-in-neo4j October 20, 2023 09:03
Base automatically changed from poc/REL-1106/rdf-in-neo4j to develop October 20, 2023 14:42
Copy link
Contributor

@augustas augustas left a comment

Choose a reason for hiding this comment

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

Looking good and working good for me

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Changelog is updated according to changes (if applicable)
  • Documentation is updated according to changes (if applicable)

@github-actions
Copy link

Version

Target Version 15.31.0
Last version 15.30.0

There are 0 BREAKING CHANGE, 1 feature, 7 fixes

@vbyndych vbyndych merged commit 38934d4 into develop Oct 23, 2023
4 of 5 checks passed
@vbyndych vbyndych deleted the feat/REL-1198/list-neo4j branch October 23, 2023 15:55
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.

3 participants