Skip to content

Conversation

SAKURA-CAT
Copy link
Member

Description

Fixed the bug caused by #984: Abnormal display of experience value color in cloud mode.

@SAKURA-CAT SAKURA-CAT requested review from Zeyi-Lin and Copilot May 22, 2025 15:08
@SAKURA-CAT SAKURA-CAT self-assigned this May 22, 2025
@SAKURA-CAT SAKURA-CAT added the 🐛 bug Something isn't working label May 22, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fix abnormal experience value color in cloud mode by fetching detailed project information after setting the group name.

  • After assigning self.__groupname, add a GET request to retrieve project details.
  • Pass the project group name and project name into the API endpoint.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the project creation flow by switching to the instance’s HTTP methods, simplifying error handling, and fetching full project details after creation.

  • Replaced direct http.post calls with self.post to use the instance client
  • Removed specific 404/403 error handlers and rethrowing unexpected errors with a clarifying comment
  • Added a follow-up GET request to retrieve detailed project info
Comments suppressed due to low confidence (2)

swanlab/api/http.py:274

  • Using self.groupname may not reference the private attribute __groupname you set earlier; consider accessing the correct attribute or providing a public property if needed.
resp = self.get(f"/project/{self.groupname}/{name}")

swanlab/api/http.py:274

  • You’ve added a new GET call to retrieve project details—ensure there are unit or integration tests covering this new request path.
resp = self.get(f"/project/{self.groupname}/{name}")

@SAKURA-CAT SAKURA-CAT merged commit f001249 into main May 25, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/exp-color branch May 25, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants