Skip to content

chore: [For MSFT Team Review]: Refactor getDatasetsQuery to remove code duplication

[Internal PR, target branch is not master]

Updates description?

The code of the getDatasetsQuery was duplicated between the abstract Journal class and its Cosmos DB implementation, which added some additional behaviour.

This duplication creates technical debt and complicates the implementation of additional behaviour such as #117.

Refactored to remove duplication, adding an empty method customizeDatasetsQuery in the abstract class which is overridden in the Cosmos DB implementation.

Other storage providers have the option to implement the STARTSWITH operator to support recursive=true.

Edited by Alexandre Gattiker

Merge request reports