Comments (2)
Project data lives in the projects
table, but this data is obtained by the frontend by using the GET /v1/stats/single/{id}
API call.
This API function calls an unexposed function get_project
that gets this information and returns it as part of the stats
response object.
The problem occurs when the stats
table contains no measurements for this project, it returns a failure and doing so, it does not fetch any data about the project.
I am attempting to expose this get_project
function on the API to make an independent call to it before getting notes and stats, and the API is returning 200 from the API docs and curl command, but failing when being called from the frontend.
Not finding the reason right now, could we please discuss this tomorrow?
I pushed my work here: https://github.com/green-coding-berlin/green-metrics-tool/tree/no_api_data_handling
from green-metrics-tool.
Pull request has been merged in #75
from green-metrics-tool.
Related Issues (20)
- Make metric "Network Energy" in UI more understandable HOT 4
- Github Action's Jobs failing with cache error on external PRs
- [Test Impr.] VM Standardization [S] HOT 4
- Tests run_until should trigger automatic cleanup HOT 2
- Tests are not always using test containers HOT 5
- Enable testing on Mac HOT 5
- Pytest must be stopped when not triggered in subdir
- Tests have race condition with random path HOT 1
- Add Formbricks to energy-id
- Add configured metric providers to status page
- Restricted user rights for cluster
- Green Coding Puppeteer Container not running headless browser HOT 4
- Constant value for network transmission energy calculation HOT 9
- API endpoint /compare does not work anymore HOT 6
- Feature request: Allow comparisons of different usage scenarios and commits
- Add error reporting for frontend HOT 1
- Feature request: support named volumes HOT 4
- Make the carbonDB_add deduplication function faster HOT 3
- Update to the new Ubuntu 24.04 LTS version HOT 1
- HTML escaping inefficient and inconsistent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from green-metrics-tool.