Skip to content

feat(dashboard) : update Dashboard to use GET API in Workloads Component[#294]#295

Merged
leeeunkoo merged 1 commit intoeclipse-pullpiri:mainfrom
LGSI-KarumuriHari:main
Sep 25, 2025
Merged

feat(dashboard) : update Dashboard to use GET API in Workloads Component[#294]#295
leeeunkoo merged 1 commit intoeclipse-pullpiri:mainfrom
LGSI-KarumuriHari:main

Conversation

@LGSI-KarumuriHari
Copy link
Contributor

📝 PR Description

  • Added a .env file in the dashboard repo for managing the API URL dynamically.

  • The .env contains the following key-value pair:

    VITE_SETTING_SERVICE_API_URL=http://0.0.0.0:8080
    
  • This approach ensures the API URL can be updated easily without being pushed to the repo, maintaining security by leveraging .gitignore.

Changes made

  • Workloads.tsx:

    • Implemented functionality to fetch data from the GET API.
    • Used useState to update the existing mock data variable (nodesdata) with the fetched data.
  • Dashboard.tsx:

    • Prop drilled pods/containers info to the Workloads component.
    • Fetched pods/containers data from <baseUrl>/api/v1/metrics and integrated it with the existing podsdata.

Note

  • No UI changes were made.

Screenshots

image image

🔗 Related Issue
closes->#294

🧪 Test Method
logs are printed in console on sucessful fetch

✅ Checklist
[✅] Code conventions are followed
[✅] Tests are added/modified
[✅] Documentation is updated (if necessary)

@LGSI-KarumuriHari
Copy link
Contributor Author

Hey @daeyoung-jeong-lge @youngtaekiim @leeeunkoo
please review these changes and merge
Thanks!!

Copy link
Contributor

@daeyoung-jeong-lge daeyoung-jeong-lge left a comment

Choose a reason for hiding this comment

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

Looks good

@daeyoung-jeong-lge
Copy link
Contributor

@chaehee-lim Could you check the Files Changed?
@youngtaekiim @leeeunkoo I finished the review. Please merge this. Thanks.

@chaehee-lim
Copy link
Contributor

@daeyoung-jeong-lge , @LGSI-KarumuriHari
I've checked the changed files. It looks good.
I'll check them once the modified files are reflected and report back if there are any issues.
Thanks.

@leeeunkoo leeeunkoo merged commit c5ff9dd into eclipse-pullpiri:main Sep 25, 2025
6 checks passed
yeohyeon-i added a commit to yeohyeon-i/pullpiri that referenced this pull request Sep 25, 2025
feat(dashboard) : update Dashboard to use GET API in Workloads Component[eclipse-pullpiri#294]
@leeeunkoo leeeunkoo linked an issue Oct 14, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Implement REST GET API in Dashboard for workloads

4 participants