Minor: Return pagination of for listHierarchy (#18567)

This commit is contained in:
Sriharsha Chintalapani 2024-11-09 23:28:52 -08:00 committed by GitHub
parent a03d915909
commit e7632428f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,7 @@ import org.openmetadata.service.resources.settings.SettingsCache;
import org.openmetadata.service.search.models.IndexMapping; import org.openmetadata.service.search.models.IndexMapping;
import org.openmetadata.service.search.security.RBACConditionEvaluator; import org.openmetadata.service.search.security.RBACConditionEvaluator;
import org.openmetadata.service.security.policyevaluator.SubjectContext; import org.openmetadata.service.security.policyevaluator.SubjectContext;
import org.openmetadata.service.util.ResultList;
import org.openmetadata.service.util.SSLUtil; import org.openmetadata.service.util.SSLUtil;
import os.org.opensearch.action.bulk.BulkRequest; import os.org.opensearch.action.bulk.BulkRequest;
import os.org.opensearch.action.bulk.BulkResponse; import os.org.opensearch.action.bulk.BulkResponse;
@ -195,7 +196,7 @@ public interface SearchClient {
Used for listing knowledge page hierarchy for a given parent and page type, used in Elastic/Open SearchClientExtension Used for listing knowledge page hierarchy for a given parent and page type, used in Elastic/Open SearchClientExtension
*/ */
@SuppressWarnings("unused") @SuppressWarnings("unused")
default Response listPageHierarchy(String parent, String pageType, int offset, int limit) { default ResultList listPageHierarchy(String parent, String pageType, int offset, int limit) {
throw new CustomExceptionMessage( throw new CustomExceptionMessage(
Response.Status.NOT_IMPLEMENTED, NOT_IMPLEMENTED_ERROR_TYPE, NOT_IMPLEMENTED_METHOD); Response.Status.NOT_IMPLEMENTED, NOT_IMPLEMENTED_ERROR_TYPE, NOT_IMPLEMENTED_METHOD);
} }