Commit Graph

56 Commits

Author SHA1 Message Date
Ethan Paul 31845ef7c5 !fixup Add access_list_names property back to domain model 2020-02-27 00:06:50 -05:00
Ethan Paul d6265c4797 Revert "Refactor datatypes into submodules"
This reverts commit 07828f0063.
2020-02-26 22:01:25 -05:00
Ethan Paul 07828f0063 Refactor datatypes into submodules
Gonna do some composition up in here
Add py38 tox env
2020-02-25 22:28:45 -05:00
Ethan Paul 227f1e7c18 Update toxfile to pin all dependencies to locked versions
Stop-gap until I can figure out how to create a tox env from the lockfile
Add missing pytest-cov dev dependency
Fix py3.6 sqlite compatibility error with pathlib
2020-02-25 00:00:50 -05:00
Ethan Paul 1fa5747647 Add tests for unique field assurances on domain and account models 2020-02-24 23:54:28 -05:00
Ethan Paul 822287ad3c !fixup make domain access list names unique 2020-02-24 23:22:49 -05:00
Ethan Paul 96c595147e Fix sqlite configuration error improperly accessing config object
Add token model import to database init
2020-02-24 23:11:30 -05:00
Ethan Paul ae86a5d21c Add tests for account ACL model
Add string repr to account ACL model
2020-02-24 23:09:05 -05:00
Ethan Paul 54ac7c4141 Add tests for domain model and domain extras models
Add string reprs to domain models
Fix misnamed dict key names on domain model
Fix improper timedelta/int conversions on domain model
2020-02-24 23:03:59 -05:00
Ethan Paul e202152fc5 !fixup finish making test database 2020-02-24 22:54:32 -05:00
Ethan Paul 94b6b84be3 Add tests for account model
Add string repr to account model
2020-02-24 22:38:28 -05:00
Ethan Paul 7a88b0ddac Add tests for new Epoch and RawMultiType fields
Fix bug with PathString field not dumping NoneType properly
2020-02-24 21:53:10 -05:00
Ethan Paul b7596bdd3f Add serializer submodule imports 2020-02-24 21:29:38 -05:00
Ethan Paul 8c1e0fff0a Add serializers for domain extras
Update domain serializer to properly access extras
2020-02-24 21:29:10 -05:00
Ethan Paul f7d93bd68c !fixup account serializer 2020-02-24 21:28:47 -05:00
Ethan Paul ac893d9707 Fix hacked permission and access list string names
Update domain access list and domain permission models to be dict-castable
Update domain model to specify dict casting for access list and permission backrefs properly
Remove unnecessary permission_names and access_list_names properties
2020-02-24 21:27:20 -05:00
Ethan Paul 85a53d061a WIP more serializer stuff 2020-02-24 20:33:44 -05:00
Ethan Paul 199cad3f43 WIP add initial serializers 2020-02-24 20:33:44 -05:00
Ethan Paul 733ffa6cd8 Add missing methods for casting account model to dict 2020-02-24 20:33:44 -05:00
Ethan Paul ca183d7052 Add passlib to testenv dependencies 2020-02-24 20:33:44 -05:00
Ethan Paul cfa63b4201 !fixup fixtures 2020-02-24 20:33:44 -05:00
Ethan Paul e4cf37c625 Remove unnecessary infrastructure from token model 2020-02-24 20:33:44 -05:00
Ethan Paul 129e21a960 Fix typo in coveragerc 2020-02-24 20:33:44 -05:00
Ethan Paul 4f55053e24 Fix unused import in account model
Fix linting errors in top level config serializer
2020-02-24 20:33:44 -05:00
Ethan Paul f6185ba82d Update about file with less sketchy loading system
Remove importlib usage from about file
Add tests to enforce data consistency between pyproject and about
Update sphinx config to use new about file
Remove pyproject from package
2020-02-24 20:33:44 -05:00
Ethan Paul 1dd27b6169 Fix misnamed domain auth enable fields
Add missing refresh expiration parameter to token model
2020-02-24 20:33:44 -05:00
Ethan Paul a21b8dd194 Remove account assignment and domain admin models
Meta domain administration really made no sense, no point including it
No reason to include explicit account-domain assignment when the ACL table exists
2020-02-24 20:33:44 -05:00
Ethan Paul e475fd4971 Add database test fixtures
Fix test condition in config tests for possible false pass
2020-02-24 20:33:44 -05:00
Ethan Paul 0088561fea Add tests for fields submodule
Add marshmallow to test dependencies
Fix namespace issue in config tests
2020-02-24 20:33:44 -05:00
Ethan Paul 4bc4c34254 Add tests for config module
Add toml test dependency to toxfile
Add missing predump and postload hooks to top-level config serializer
Remove dummy paceholder test
2020-02-24 20:33:44 -05:00
Ethan Paul b9e0f08560 Add flag to doc building to force failure on warning 2020-02-24 20:33:44 -05:00
Ethan Paul 71d6ed4e3c Fix linting and typing errors
Document token model
Fix typo accessing incorrect crypto hash in passlib
Fix cyclical import around domain admin settings
Deprecate unused token usage enum
Document constants module
Fix typing errors in fields module
Fix creation order of database models
Add uuid default factory for uuid field
2020-02-24 20:33:44 -05:00
Ethan Paul 33325a344e Add token storage model
Document datatypes module
Included initial permissions system in token model, will likely need to update/move it
2020-02-24 20:33:44 -05:00
Ethan Paul f1254c4704 Add model for account ACL entries 2020-02-24 20:33:44 -05:00
Ethan Paul fc4eb38c9e Add account model definition 2020-02-24 20:33:44 -05:00
Ethan Paul 425d39cd48 Add domain and domain administration models 2020-02-24 20:33:44 -05:00
Ethan Paul 2b5eafa71a Add initial database infrastructure
Add base model class
Add initialize function and basic import structure
Add datatypes module
2020-02-24 20:33:44 -05:00
Ethan Paul ee99c1b9ab Add config.load function for loading config container
Document/lint config module
Add constants module
2020-02-24 20:33:44 -05:00
Ethan Paul 2e3c10209b Add initial configuration module with storage settings
Add fields module for custom de/serializer fields
2020-02-24 20:33:44 -05:00
Ethan Paul f0b1217da7 Add depenencies for database system
Add peewee dependency
Add pymysql dependency
Add marshmallow dependency
Add dataclasses dependency for python3.6
Add passlib dependency
2020-02-24 20:33:44 -05:00
Ethan Paul 5030db2a84
Merge pull request #1 from enpaul/enpaul/ci
Add CI workflow
2020-02-23 20:32:37 -05:00
Ethan Paul c7fc882981 Fix coverage path 2020-02-23 20:24:39 -05:00
Ethan Paul c8cc6ce0af
Update python version breakdown 2020-02-23 20:19:56 -05:00
Ethan Paul 6ac18c1bf5
Rename CI job and environment list 2020-02-23 20:11:07 -05:00
Ethan Paul 6615863580
Add CI workflow 2020-02-23 20:08:42 -05:00
Ethan Paul caa31b2dc3 Update development documentation 2020-02-18 23:07:48 -05:00
Ethan Paul d199c5fb0b Add codeowners 2020-02-18 23:04:15 -05:00
Ethan Paul 48b356eda2 Add placeholder test 2020-02-18 23:02:43 -05:00
Ethan Paul 7da27c3f57 Add mypy cache to gitignore 2020-02-18 23:02:24 -05:00
Ethan Paul 1282300dea Populate development dependencies 2020-02-18 23:02:02 -05:00