voonhous commented on code in PR #13147:
URL: https://github.com/apache/hudi/pull/13147#discussion_r3401723777


##########
hudi-timeline-service/src/main/java/org/apache/hudi/timeline/service/RequestHandler.java:
##########
@@ -240,6 +252,30 @@ private void registerTimelineAPI() {
       TimelineDTO dto = instantHandler.getTimeline(getBasePathParam(ctx));
       writeValueAsString(ctx, dto);
     }, false));
+
+    app.get(RemoteHoodieTableFileSystemView.TIMELINE_V2_URL, new 
ViewHandler(ctx -> {
+      metricsRegistry.add("TIMELINE_V2", 1);
+      org.apache.hudi.common.table.timeline.dto.v2.TimelineDTO dto = 
instantHandler.getTimelineV2(getBasePathParam(ctx));
+      writeValueAsString(ctx, dto);
+    }, false));
+
+    app.get(RemoteHoodieTableFileSystemView.INSTANT_DETAILS_URL, new 
ViewHandler(ctx -> {
+      metricsRegistry.add("INSTANT_DETAILS", 1);
+      Object instantDetailsObj = 
instantHandler.getInstantDetails(getBasePathParam(ctx),
+          getInstantParam(ctx), getInstantActionParam(ctx), 
getInstantStateParam(ctx));
+      writeValueAsString(ctx, instantDetailsObj);
+    }, false));
+
+    app.get("/v2/hoodie/view/table/config", new ViewHandler(ctx -> {

Review Comment:
   Done. Added `TABLE_CONFIG_V2_URL` and `SCHEMA_HISTORY_V2_URL` to 
`RemoteHoodieTableFileSystemView` (next to the other v2 URL constants) and 
switched the two routes to reference them instead of inline string literals.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to