Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ public Mono<ResponseDTO<Workspace>> deleteLogo(@PathVariable String workspaceId)

@JsonView(Views.Public.class)
@GetMapping("/home")
public Mono<ResponseDTO<List<Workspace>>> workspacesForHome() {
public Mono<ResponseDTO<List<Workspace>>> workspacesForHome(
@RequestHeader(name = "Host", required = false) String hostname) {

@abhvsn abhvsn Dec 27, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we replace this with x-appsmith-host to make it apparent that this is custom header?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a custom header.

return userWorkspaceService
.getUserWorkspacesByRecentlyUsedOrder()
.getUserWorkspacesByRecentlyUsedOrder(hostname)
.map(workspaces -> new ResponseDTO<>(HttpStatus.OK.value(), workspaces, null));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Mono<MemberInfoDTO> updatePermissionGroupForMember(

Boolean isLastAdminRoleEntity(PermissionGroup permissionGroup);

Mono<List<Workspace>> getUserWorkspacesByRecentlyUsedOrder();
Mono<List<Workspace>> getUserWorkspacesByRecentlyUsedOrder(String hostname);
}
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public Boolean isLastAdminRoleEntity(PermissionGroup permissionGroup) {
* @return Mono of list of workspaces
*/
@Override
public Mono<List<Workspace>> getUserWorkspacesByRecentlyUsedOrder() {
public Mono<List<Workspace>> getUserWorkspacesByRecentlyUsedOrder(String hostname) {

Mono<List<String>> workspaceIdsMono = userDataService
.getForCurrentUser()
Expand Down