This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 8ada2027f468f7da49de6e7063ae1a3262d604e0
Author: Ruixuan Zhang <ruixuan.zh...@kyligence.io>
AuthorDate: Thu Nov 17 18:27:48 2022 +0800

    [DIRTY] fix favorite rules return null
---
 .../src/main/java/org/apache/kylin/rest/service/ProjectService.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/common-service/src/main/java/org/apache/kylin/rest/service/ProjectService.java
 
b/src/common-service/src/main/java/org/apache/kylin/rest/service/ProjectService.java
index 10c5b19f6f..93d8cad3ba 100644
--- 
a/src/common-service/src/main/java/org/apache/kylin/rest/service/ProjectService.java
+++ 
b/src/common-service/src/main/java/org/apache/kylin/rest/service/ProjectService.java
@@ -586,7 +586,7 @@ public class ProjectService extends BasicService {
 
         response.setPrincipal(projectInstance.getPrincipal());
         // return favorite rules
-        // TODO: adapt
+        response.setFavoriteRules(projectSmartService != null ? 
projectSmartService.getFavoriteRules(project) : null);
 
         response.setScd2Enabled(config.isQueryNonEquiJoinModelEnabled());
 

Reply via email to