Skip to content

Commit 3c2fd02

Browse files
halfwholemadanalogy
authored andcommitted
[#10950] Merge track session endpoint into session logs endpoint (#11082)
1 parent b81408f commit 3c2fd02

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

src/main/java/teammates/common/util/Const.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ public static class ResourceURIs {
295295
public static final String SESSION_LINKS_RECOVERY = URI_PREFIX + "/sessionlinksrecovery";
296296
public static final String NATIONALITIES = URI_PREFIX + "/nationalities";
297297
public static final String EMAIL = URI_PREFIX + "/email";
298-
public static final String TRACK_SESSION = URI_PREFIX + "/track/session";
299298
public static final String SESSION_LOGS = URI_PREFIX + "/logs/session";
300299

301300
public static final String STUDENT_PROFILE_PICTURE = URI_PREFIX + "/student/profilePic";

src/main/java/teammates/ui/constants/ResourceEndpoints.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public enum ResourceEndpoints {
5353
STUDENT_PROFILE(ResourceURIs.STUDENT_PROFILE),
5454
STUDENT_COURSE_LINKS_REGENERATION(ResourceURIs.STUDENT_COURSE_LINKS_REGENERATION),
5555
SEARCH_INSTRUCTORS(ResourceURIs.SEARCH_INSTRUCTORS),
56-
SEARCH_STUDENTS(ResourceURIs.SEARCH_STUDENTS),
57-
TRACK_SESSION(ResourceURIs.TRACK_SESSION);
56+
SEARCH_STUDENTS(ResourceURIs.SEARCH_STUDENTS);
5857
//CHECKSTYLE.ON:JavadocVariable
5958

6059
private final String url;

src/main/java/teammates/ui/webapi/ActionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public class ActionFactory {
118118
map(ResourceURIs.INSTRUCTOR, POST, CreateInstructorAction.class);
119119

120120
// Logging and tracking
121-
map(ResourceURIs.TRACK_SESSION, POST, CreateFeedbackSessionLogAction.class);
121+
map(ResourceURIs.SESSION_LOGS, POST, CreateFeedbackSessionLogAction.class);
122122
map(ResourceURIs.SESSION_LOGS, GET, GetFeedbackSessionLogsAction.class);
123123

124124
// Cron jobs; use GET request

src/test/java/teammates/ui/webapi/CreateFeedbackSessionLogActionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class CreateFeedbackSessionLogActionTest extends BaseActionTest<CreateFeedbackSessionLogAction> {
1515
@Override
1616
protected String getActionUri() {
17-
return Const.ResourceURIs.TRACK_SESSION;
17+
return Const.ResourceURIs.SESSION_LOGS;
1818
}
1919

2020
@Override

src/web/services/log.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class LogService {
2929
fsltype: queryParams.logType.toString(),
3030
};
3131

32-
return this.httpRequestService.post(ResourceEndpoints.TRACK_SESSION, paramMap);
32+
return this.httpRequestService.post(ResourceEndpoints.SESSION_LOGS, paramMap);
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)