Skip to content

Conversation

@fabrizzio-dotCMS
Copy link
Contributor

@fabrizzio-dotCMS fabrizzio-dotCMS commented Dec 24, 2025

Proposed Changes

  • Adding a new API to interact with the table "indeces", this API takes into account a new version column
  • Why didn't I update the existing API? First, this is a great opportunity to update this code.
  • Old Code under the package elasticsearch will be decommissioned eventually.
  • I am including a new column as well as the respective Upgrade task and test

This PR fixes: #34146

@fabrizzio-dotCMS fabrizzio-dotCMS marked this pull request as ready for review December 29, 2025 17:35
ContentDriveHelperContentletAPIComparisonTest.class,
AppsAPIImplTest.class,
Task251103AddStylePropertiesColumnInMultiTreeTest.class,
Task251212AddVersionColumnIndicesTableTest.class,
Copy link
Contributor

Choose a reason for hiding this comment

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

Add this test at the end of the list

*/
@ApplicationScoped
@RunWith(JUnit4WeldRunner.class)
public class VersionedIndicesAPITest {
Copy link
Contributor

Choose a reason for hiding this comment

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

This class has not been added to the test suite

* It provides functionality for loading, saving, removing, and inspecting indices and their versions.
* It also includes utilities for constructing indices objects from database query results.
*/
public interface IndicesFactory {
Copy link
Contributor

Choose a reason for hiding this comment

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

if we are creating an IndicesFactory and Impl, we should deprecate the old one, shouldn't we?

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.

[TASK] Modify Indices database storage to differentiate indices by version

4 participants