Skip to content
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

Feat/generate certificate management command #86

Merged
merged 5 commits into from
Apr 7, 2022

Commits on Apr 7, 2022

  1. 🗃️(core) add is_gradable boolean field to CourseRun model

    This boolean field allow a course leader to mark its session as gradable.
    Gradable course runs can be used to generate a certificate.
    jbpenrath committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    70aede8 View commit details
    Browse the repository at this point in the history
  2. ✨(models) add is_passed cached property to enrollment model

    This property is a shortcut which retrieve the enrollment grade from its related
    LMS then check if it is passed. To prevent to spam LMS, the setting
    `JOANIE_ENROLLMENT_GRADE_CACHE_TTL` is used to store grade state in cache.
    By default, for 10 minutes.
    jbpenrath committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    9406524 View commit details
    Browse the repository at this point in the history
  3. ✨(core) create a management command to generate certificates

    Create a management command which aims to be called by a cron task to generate
    certificate at a regular interval. This command accepts three options (course,
    product and order) to restrict review to those resources.
    jbpenrath committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    771751e View commit details
    Browse the repository at this point in the history
  4. ➕(deps) install django-object-actions

    django-object-actions allows us to add custom actions with admin change views.
    jbpenrath committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    5958c01 View commit details
    Browse the repository at this point in the history
  5. ✨(admin) add custom actions to generate certificates

    Create custom actions across all relevant models (products, course and orders)
    to generate certificates through the bunch of provided resources.
    jbpenrath committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    7620e67 View commit details
    Browse the repository at this point in the history