feat(dashboard) : update Dashboard to use GET API in Workloads Component[#294]#295
Merged
leeeunkoo merged 1 commit intoeclipse-pullpiri:mainfrom Sep 25, 2025
Merged
Conversation
Contributor
Author
|
Hey @daeyoung-jeong-lge @youngtaekiim @leeeunkoo |
Contributor
|
@chaehee-lim Could you check the Files Changed? |
Contributor
|
@daeyoung-jeong-lge , @LGSI-KarumuriHari |
leeeunkoo
approved these changes
Sep 25, 2025
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]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 PR Description
Added a
.envfile in the dashboard repo for managing the API URL dynamically.The
.envcontains the following key-value pair: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:
useStateto update the existing mock data variable (nodesdata) with the fetched data.Dashboard.tsx:
Workloadscomponent.<baseUrl>/api/v1/metricsand integrated it with the existingpodsdata.Note
Screenshots
🔗 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)