Skip to content

Migrations/Imports: ModulestoreSource listing API #2391

@kdmccormick

Description

@kdmccormick

This REST API will be used by both the Course-to-Library Import UI and the Legacy Libraries Migration UI. They will need it in order to query whether a given course or library has been migrated and whether it has an authoritative migration.

Endpoint:

  • GET /api/modulestore_migrator/v1/sources
    • Returns a paginated list of ModulestoreSources which the requester has Read access to.
    • Each object should include:
      • key (str): The source's LearningContextKey (CourseKey or legacy LibraryKey)
      • forwarded (str | null): If the source has been authoritatively migrated, the UUID of that ModulestoreMigration
      • migrations (list of str): List of ModulestoreMigration UUIDs for this source

Note: The requester will use the UUIDs returned by this API in order to query the existing /api/modulestore_migrator/v1/migrations/<uuid> API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions