Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion apps/backend/src/services/console_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def fetch_users_by_usernames(self, usernames: list[str]) -> dict[str, str]:
url = f"{self.console_url}/internal/users/fetch-by-usernames"
response = httpx.post(
url,
json={"usernames": usernames, "fields": ["username", "firstName", "lastName"]},
json={"usernames": usernames},
timeout=5.0,
)
response.raise_for_status()
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/tests/services/test_console_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_success_returns_display_name_map(self, mock_post: MagicMock) -> None:
assert result == {"jdoe": "Jane Doe", "asmith": "Alice Smith"}
mock_post.assert_called_once_with(
"http://console.example.com/internal/users/fetch-by-usernames",
json={"usernames": ["jdoe", "asmith"], "fields": ["username", "firstName", "lastName"]},
json={"usernames": ["jdoe", "asmith"]},
timeout=5.0,
)

Expand Down
4 changes: 0 additions & 4 deletions georchestra-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1295,10 +1295,6 @@ components:
type: "object"
properties:
usernames:
type: "array"
items:
type: "string"
fields:
type: "array"
items:
type: "string"
Loading