-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created Project dashboard #1054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice using the pydantic schemas 👍
@spwoodcock, what are we using from now on? Pydantic schemas or raw SQL? I've noticed that some parts of the code use Pydantic, while others use raw SQL. Shouldn't it be consistent throughout the entire codebase, or am I missing something? |
Hi @varun2948, you raise a good point! Pydantic schemas are used for JSON serialization to and from (SQLAlchemy) database models. That plan was (and still possibly is) to refactor out SQLAlchemy in favour of raw SQL. |
Oh yeah i meant SQLAlchemy vs raw SQL 😄 okay sounds good @spwoodcock Thanks |
Updates
This PR introduces the
get_dashboard_detail
async function, which fetches project details for the project dashboard usingproject_id
.Response
{
"project_name_prefix": "test sujan",
"organization": "naxa",
"organization_logo": "http://s3.fmtm.localhost:7050/fmtm-data/1/logo.png",
"total_tasks": 6,
"total_submission": 0,
"total_contributors": 2,
"created": "06 Dec 2023",
"last_active": "6 days ago"
}