Skip to content

67 refactor and test functions of dashboarduse casespy#69

Merged
YoyoLiuuu merged 2 commits intomainfrom
67-refactor-and-test-functions-of-dashboarduse_casespy
Nov 14, 2024
Merged

67 refactor and test functions of dashboarduse casespy#69
YoyoLiuuu merged 2 commits intomainfrom
67-refactor-and-test-functions-of-dashboarduse_casespy

Conversation

@jnnchi
Copy link
Copy Markdown
Collaborator

@jnnchi jnnchi commented Nov 14, 2024

The following endpoints have been fully tested and are ready to be deployed. All calculations are verified and only integer scores/values are returned (with the exception of amount spent).

Can be called through /dashboard/[ENDPOINTNAME]

Endpoint names:
get_weekly_green_transactions/
get_weekly_carbon_score/
get_monthly_green_transactions/
get_monthly_carbon_score/
get_total_green_transactions/
get_top_5_companies/
get_total_co2_score/
get_company_tiers/
get_co2_score_change/
get_green_transaction_change/

@jnnchi jnnchi linked an issue Nov 14, 2024 that may be closed by this pull request
2 tasks
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rattm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 2:31am

@jnnchi
Copy link
Copy Markdown
Collaborator Author

jnnchi commented Nov 14, 2024

@benrockehenderson Let us know if the formatting works!

Copy link
Copy Markdown
Collaborator

@YoyoLiuuu YoyoLiuuu left a comment

Choose a reason for hiding this comment

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

Looking good! Thank you!

@YoyoLiuuu YoyoLiuuu merged commit 8dbe83c into main Nov 14, 2024
@benrockehenderson
Copy link
Copy Markdown
Collaborator

@benrockehenderson Let us know if the formatting works!

Almost there. I think weekly should be removed. Also, data for the line graph component should come from one endpoint.

@YoyoLiuuu
Copy link
Copy Markdown
Collaborator

Yes! I just noticed. Thanks @benrockehenderson!

@jnnchi
Copy link
Copy Markdown
Collaborator Author

jnnchi commented Nov 14, 2024

Yep, just made the changes and will make a new PR. Thanks!

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.

Refactor and Test Functions of dashboard/use_cases.py

3 participants