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: benefits command line interface #2496

Draft
wants to merge 14 commits into
base: refactor/field-defaults
Choose a base branch
from

Commits on Oct 31, 2024

  1. chore(models): TransitAgency eligibility api fields are optional

    slug field is a SlugField for validation
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    bc28c2c View commit details
    Browse the repository at this point in the history
  2. refactor(models): simplify template fields on TransitAgency

    - compute template fields by default
    - allow overriding templates
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    4c0c70b View commit details
    Browse the repository at this point in the history
  3. refactor(models): simplify template fields on EnrollmentFlow

    - compute some template fields by default
    - allow overriding templates
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    ff4d8fd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1479c3b View commit details
    Browse the repository at this point in the history
  5. refactor(models): default agency card templates

    further simplify template requirements for flows
    
    rename agency card templates into standard naming pattern:
    
      {prefix}--{agency.slug}--agency-card.html
    
    where {prefix} is e.g. eligibility/start or enrollment/success
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    0e4c913 View commit details
    Browse the repository at this point in the history
  6. refactor(models): more field defaults for TransitAgency

    - use CST defaults for user-facing fields
    - allow blanks for config fields
    - remove null from TextField, not needed when blank=True
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    dd0eb4e View commit details
    Browse the repository at this point in the history
  7. feat(models): validate active TransitAgency

    when active=True, validate that:
    
    - there are values for user-facing info fields like names, phone, etc.
    - templates exist
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    2ae5d8f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8f8f7b1 View commit details
    Browse the repository at this point in the history
  9. feat(cli): define base class for benefits commands

    inherits from the Django management BaseCommand class
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    53a69fe View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7985c4b View commit details
    Browse the repository at this point in the history
  11. feat(cli): define the agency top-level command

        benefits agency -h
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    0820254 View commit details
    Browse the repository at this point in the history
  12. feat(cli): define the agency list command

        benefits agency list -h
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    ee0097e View commit details
    Browse the repository at this point in the history
  13. feat(cli): define the agency create command

            benefits agency create -h
    thekaveman committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    957cd5c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cdb33c1 View commit details
    Browse the repository at this point in the history