This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
[FEATURE] Elastic 6.x support #167
Open
bmoex
wants to merge
75
commits into
codappix:develop
Choose a base branch
from
bmoex:feature/elastic-upgrade
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bmoex
commented
Oct 26, 2018
- Removed multiple documents from indexation
- Added specific deletion from same index
- Bugfixed the Generator loop when loop was not finished but has no results in the 50 items
- Added a new Functional test for deleteDocuments
- Added typolink to indexation
- Seperated form & list plugin for flexible usage
- Added frontend access lookup for searching in hidden/public pages
Release/0.0.7
+ Updated version pointer + Replaces deprecated ArrayUtility for Core utility
Multiple types are not allowed any more in ES6. Refactored to use document type and custom identifier to still create different 'types'. See: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html
…ootLineBlacklist() returns no results
Thanks for this amazing work @bmoex. Can you check the broken tests and fix them? I need to check when I've time to review all these changes. |
bmoex
force-pushed
the
feature/elastic-upgrade
branch
from
October 26, 2018 12:04
672c21e
to
7b5a003
Compare
Also add documentation with breaking change.
Otherwise user input is saved and re displayed to foreign visitors. If someone is in need for an cached version, he can create a plugin inside his sitepackage with a different plugin signature but same action. If that does not work, we might add another action for caching. Also keep old action name to be non breaking.
As this didn't work on first use. Also no tests are available for this feature yet. As we remove the whole feature in a single commit, we can revert this commit later. This way we can upgrade Elasticsearch and provide this feature later on.
Use latest stable 6.x releases, for elasticsearch and used library.
* Add missing throws annotation. * Remove useless comments. * Import namespaces used in comments.
With V6 of elasticsearch the meaning / handling of index and type has changed, and it will change further in the future. We therefore move code to own classes and adjust / refactor calling code.
* Do not use variable, instead provide result to method call. * Do not provide public method which is not part of API. Otherwise one might use it in custom PHP code and switch connection later on. Then the method call will no longer work.
As we have the same flow in some more places, we refactor this part to follow this conventions.
Do not provide unnecessary Constants or Setup. Fluid paths are there out of the box and integrators have all freedom without the provided constants.
DanielSiepmann
force-pushed
the
feature/elastic-upgrade
branch
from
December 29, 2018 17:48
8c862bc
to
5662a06
Compare
* Add some missing documentation. * Adjust some documentation due to breaking changes. * Adjust structure of documentation for easier changelog rendering and browsing.
Otherwise the interface is no big benefit. Also it might crash under some circumstances.
We replace the "flush" and "delete" by "delete" and "deletedocuments" logic. This makes it more obvious what will happen, without reading the docs. Also we kept the logic to always provide the index name, as we will need them in the future. Due to elasticsearch v6 changes no types are allowed in the same index in the future. Therefore we need to make it possible to use different indexes in the future, leading to the need to provide the document type all the time.
DanielSiepmann
force-pushed
the
feature/elastic-upgrade
branch
from
December 30, 2018 12:46
5662a06
to
689f293
Compare
Instead of only adding a new class for one static method, we extend the existing class to only import a single class. This way we extend the original array utility function collection.
E.g. use statement and injected object manager.
As it does not use TYPO3 caching framework but custom feature.
@bmoex I've updated the code and documentation. Would you like to test my changes with your project and provide feedback? There were some changes that might need updates in your project. |
DanielSiepmann
previously approved these changes
Dec 30, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.