-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: mycodeplug/mycodeplug
base: main
head repository: mycodeplug/mycodeplug
compare: data-model
- 20 commits
- 16 files changed
- 1 contributor
Commits on Nov 11, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 793941e - Browse repository at this point
Copy the full SHA 793941eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 860947a - Browse repository at this point
Copy the full SHA 860947aView commit details -
src/mycodeplug: fastapi skeleton with user authentication
skeleton for magic-token authentication and JWT bearer tokens + postgres access
Configuration menu - View commit details
-
Copy full SHA for 0f8ad41 - Browse repository at this point
Copy the full SHA 0f8ad41View commit details
Commits on Nov 14, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 947e417 - Browse repository at this point
Copy the full SHA 947e417View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 55e6962 - Browse repository at this point
Copy the full SHA 55e6962View commit details -
mycodeplug/api.py: enable python logging
leverage existing uvicorn stream handlers to inject custom log messages
Configuration menu - View commit details
-
Copy full SHA for 59fde48 - Browse repository at this point
Copy the full SHA 59fde48View commit details -
mycodeplug/api.py: don't map exceptions
Allow the exceptions from mycodeplug.user to bubble up and be converted into HTTP responses
Configuration menu - View commit details
-
Copy full SHA for 75f1818 - Browse repository at this point
Copy the full SHA 75f1818View commit details -
mycodeplug/user.py: create "admin" users
admin users can modify other users and edit objects that don't belong to them
Configuration menu - View commit details
-
Copy full SHA for a252319 - Browse repository at this point
Copy the full SHA a252319View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ad79e54 - Browse repository at this point
Copy the full SHA ad79e54View commit details -
mycodeplug/user.py: EditableUser
models describe what user fields are user and admin editable
Configuration menu - View commit details
-
Copy full SHA for 288c52c - Browse repository at this point
Copy the full SHA 288c52cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 14b7918 - Browse repository at this point
Copy the full SHA 14b7918View commit details -
mycodeplug: add httpx as a dependency
will use for submitting external HTTP requests to other services
Configuration menu - View commit details
-
Copy full SHA for 5a8e6e2 - Browse repository at this point
Copy the full SHA 5a8e6e2View commit details -
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").
Configuration menu - View commit details
-
Copy full SHA for 8c96fd2 - Browse repository at this point
Copy the full SHA 8c96fd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78cf677 - Browse repository at this point
Copy the full SHA 78cf677View commit details
Commits on Nov 15, 2021
-
Use sqlmodel to bring sqlalchemy and pydantic together, or, I'm sick of repeating myself and hand-writing queryies =-[
Configuration menu - View commit details
-
Copy full SHA for fb5b0bc - Browse repository at this point
Copy the full SHA fb5b0bcView commit details -
docker-compose: don't initialize database tables
we'll do that in python code now
Configuration menu - View commit details
-
Copy full SHA for f669cab - Browse repository at this point
Copy the full SHA f669cabView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e190d - Browse repository at this point
Copy the full SHA b2e190dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f4b831a - Browse repository at this point
Copy the full SHA f4b831aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fea97d6 - Browse repository at this point
Copy the full SHA fea97d6View commit details -
mycodeplug/channel: data model for channels
Linked SQLModel classes for channel, name, and channel revision and a sample function for creating a channel
Configuration menu - View commit details
-
Copy full SHA for 4ac293f - Browse repository at this point
Copy the full SHA 4ac293fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...data-model