Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mycodeplug/mycodeplug
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: mycodeplug/mycodeplug
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: data-model
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 20 commits
  • 16 files changed
  • 1 contributor

Commits on Nov 11, 2021

  1. Vagrant/docker-compose: basic app deploy

    lay the groundwork for deploying a development
    environment with debian 11 via vagrant and
    running the database + application stack via
    docker-compose for cross platform development.
    masenf committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    793941e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    860947a View commit details
    Browse the repository at this point in the history
  3. src/mycodeplug: fastapi skeleton with user authentication

    skeleton for magic-token authentication and JWT
    bearer tokens + postgres access
    masenf committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    0f8ad41 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2021

  1. src/mycodeplug: OTP is hashed via passlib/bcrypt

    Instead of storing the bare OTP in the database,
    store the hash, like a reasonable person, and
    do all comparisons against the salted hash.
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    947e417 View commit details
    Browse the repository at this point in the history
  2. mycodeplug/user.py: raise custom exceptions

    Raise HTTPException derived custom exceptions to
    help avoid information leakage from the authentication
    part of the app.
    
    Allow exceptions raised deeply to be bubbled to
    FastAPI directly to avoid tedious mapping
    layers.
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    55e6962 View commit details
    Browse the repository at this point in the history
  3. mycodeplug/api.py: enable python logging

    leverage existing uvicorn stream handlers to
    inject custom log messages
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    59fde48 View commit details
    Browse the repository at this point in the history
  4. mycodeplug/api.py: don't map exceptions

    Allow the exceptions from mycodeplug.user to
    bubble up and be converted into HTTP responses
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    75f1818 View commit details
    Browse the repository at this point in the history
  5. mycodeplug/user.py: create "admin" users

    admin users can modify other users and edit
    objects that don't belong to them
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    a252319 View commit details
    Browse the repository at this point in the history
  6. mycodeplug/user.py: otp_delivery dependendable

    Move OTP delivery (via email or otherwise) to
    a separate dependable that can be overridden
    for testing or to provide other means of
    delivery.
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    ad79e54 View commit details
    Browse the repository at this point in the history
  7. mycodeplug/user.py: EditableUser

    models describe what user fields are user and
    admin editable
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    288c52c View commit details
    Browse the repository at this point in the history
  8. mycodeplug/api.py: expose POST /users/me

    allow the user to edit fields of their own profile
    
    allow the email field to be edited only after
    reauthenticating with the new email address
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    14b7918 View commit details
    Browse the repository at this point in the history
  9. mycodeplug: add httpx as a dependency

    will use for submitting external HTTP requests to
    other services
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    5a8e6e2 View commit details
    Browse the repository at this point in the history
  10. mycodeplug/mail.py: send OTP token via mailgun

    if MG_TOKEN and MG_DOMAIN are not in the environ
    then fall back to the "print to console" method
    of delivering the OTP from the user module (now
    called "local_otp_delivery").
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    8c96fd2 View commit details
    Browse the repository at this point in the history
  11. mycodeplug: blacken

    apply automatic formatting
    masenf committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    78cf677 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. mycodeplug: include sqlmodel

    Use sqlmodel to bring sqlalchemy and pydantic
    together, or, I'm sick of repeating myself and
    hand-writing queryies =-[
    masenf committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    fb5b0bc View commit details
    Browse the repository at this point in the history
  2. docker-compose: don't initialize database tables

    we'll do that in python code now
    masenf committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    f669cab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b2e190d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f4b831a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fea97d6 View commit details
    Browse the repository at this point in the history
  6. mycodeplug/channel: data model for channels

    Linked SQLModel classes for channel, name, and
    channel revision and a sample function for
    creating a channel
    masenf committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    4ac293f View commit details
    Browse the repository at this point in the history
Loading