Skip to main content

get_changeset_counts

Function get_changeset_counts 

Source
async fn get_changeset_counts(
    pool: Data<PgPool>,
    query: Query<AgentChangesetsQuery>,
    user: AuthUser,
) -> ControllerResult<Json<AgentChangesetCounts>>
Expand description

GET /api/v0/main-frontend/agent-changesets/counts?course_id= - Whether the signed-in user has agent changesets in the course, and how many entities their open one stages, for the course management tab and its badge.