Víctor Fernández Poyatos
4371ad1535
feat/PRWLR-3999 Implement providers endpoints ( #21 )
...
* feat(Backend): PRWLR-3989 add RLS to postgresql db and base models
* feat(API): PRWLR-3989 add TenantMiddleware
* chore(API, Backend): PRWLR-3989 create new db user without RLS bypass on migrations
* chore(Backend): PRWLR-3989 fix RLS bypasser for POST requests
* fix(Backend): PRWLR-3989 fix user permissions when migrating new models
* chore(Backend): PRWLR-3989 add testing view for RLS manual tests
* feat(API): PRWLR-3989 add tenant_id to API logging
* chore(API, Backend): PRWLR-3989 add TODOs
* test(API): PRWLR-3989 add new middleware unit tests
* chore(API): PRWLR-3989 refactor RLS code
* fix(tests): PRWLR-3989 fix testing db connector
* chore: PRWLR-3989 add references to JIRA tickets
* fix: PRWLR-3989 remove bypass logic and fix serializers
* fix: PRWLR-3989 improve drop SQL query for RLS models
* feat(Backend): PRWLR-3989 add specific permissions on each model
* fix(Backend): PRWLR-3989 fix database routing and grant select perms
* fix(test): PRWLR-3989 fix routing issues with unit tests
* chore: PRWLR-3989 remove references to JIRA tickets
* feat(Backend): PRWLR-3999 add Provider model
* feat: PRWLR-3999 add providers view logic
* fix: PRWLR-3999 fix unique index fields
* feat(API): PRWLR-3999 add custom exception handlers
* feat(API): PRWLR-3999 add /providers/{provider_id}/connection endpoint
* test(API): PRWLR-3999 add base unit tests for providers
* fix(API, Backend): PRWLR-3999 fix bugs after rebase
* chore(API, docker): PRWLR-3999 add dev feats for demo
* feat(API): PRWLR-3999 add drf-spectacular-jsonapi and improve docs
* test(API): PRWLR-3999 add providers unit tests
* chore(Backend): PRWLR-3989 adjust privileges for user on table tenant
* chore: PRWLR-3999 rename model custom validation error
* chore: PRWLR-3999 remove Test references
* chore: PRWLR-3999 update API v1 spec
* fix: PRWLR-3999 apply requested changes to filter and models
* feat: PRWLR-3999 add validation to PATCH /providers payload
* fix: PRWLR-3999 fix providers enum description
* chore: add more providers fixtures
* fix: PRWLR-3999 make providers.alias optional
2024-08-06 12:39:08 -04:00
Víctor Fernández Poyatos
e1a12bcb14
feat/PRWLR-3989 Add RLS full implementation ( #18 )
...
* feat(Backend): PRWLR-3989 add RLS to postgresql db and base models
* feat(API): PRWLR-3989 add TenantMiddleware
* chore(API, Backend): PRWLR-3989 create new db user without RLS bypass on migrations
* chore(Backend): PRWLR-3989 fix RLS bypasser for POST requests
* fix(Backend): PRWLR-3989 fix user permissions when migrating new models
* chore(Backend): PRWLR-3989 add testing view for RLS manual tests
* feat(API): PRWLR-3989 add tenant_id to API logging
* chore(API, Backend): PRWLR-3989 add TODOs
* test(API): PRWLR-3989 add new middleware unit tests
* chore(API): PRWLR-3989 refactor RLS code
* fix(tests): PRWLR-3989 fix testing db connector
* chore: PRWLR-3989 add references to JIRA tickets
* fix: PRWLR-3989 remove bypass logic and fix serializers
* fix: PRWLR-3989 improve drop SQL query for RLS models
* feat(Backend): PRWLR-3989 add specific permissions on each model
* fix(Backend): PRWLR-3989 fix database routing and grant select perms
* fix(test): PRWLR-3989 fix routing issues with unit tests
* chore: PRWLR-3989 remove references to JIRA tickets
* chore(Backend): PRWLR-3989 adjust privileges for user on table tenant
* chore: PRWLR-3989 add comments on migrations
2024-08-02 11:29:05 -04:00
Víctor Fernández Poyatos
7cb3a4e16e
feat/PRWLR-3996 implement /tenants endpoint and basic filters logic ( #14 )
...
* chore: PRWLR-3996 add drf-jsonapi library to project
* feat: PRWLR-3996 implement /tenants endpoint and basic JSON:API spec
* feat: PRWLR-3996 implement new middleware to ingest metadata on API responses
* chore: PRWLR-3996 annotate views with drf-spectacular
* feat: PRWLR-3996 add cache-control to tenants endpoints
* feat: PRWLR-3996 update views filters
* chore: PRWLR-3996 remove meta middleware in favour of meta fields in serializers
* test(API): PRWLR-3996 add unit tests for /tenants
* chore: PRWLR-3996 turn DEBUG on on devel environment
* test: PRWLR-3996 rework tenants unit tests
* chore: PRWLR-3996 refactor filter classes
* fix(Backend,API): PRWLR-3996 use correct filter backend
2024-07-22 16:06:57 -04:00
Víctor Fernández Poyatos
3a502c5b3d
feat(Backend): PRWLR-3990 Add custom logging ( #6 )
...
* chore: PRWLR-4022 add django-cors-headers
* chore: PRWLR-4022 configure basic CORS
* feat: PRWLR-4022 add drf-spectacular and spec/docs endpoints
* build: PRWLR-4022 add basic docker development deployment
* chore: PRWLR-4022 update schema generation
* chore: PRWLR-4022 bump required Python version to 3.12
* feat: PRWLR-3990 add basic custom Django logging
* feat: PRWLR-3990 add tasks logger
* chore: PRWLR-3990 update API logging middleware to follow updated syntax
* docs: PRWLR-3990 add docstring for APILoggingMiddleware class
* chore: PRWLR-3990 add testing dependencies to poetry
* test(API): PRWLR-3990 add new middleware unit tests and base setup
* feat(API, Backend): PRWLR-3990 add NDJSONFormatter and transaction_id
* feat(API): PRWLR-3990 add dev/test model, views and urls
* chore(backend): PRWLR-3990 refactor logging settings and modules
* chore(backend): PRWLR-3990 add BackendLogger enum and refactor logging modules
* chore(backend): PRWLR-3990 refactor module importing
* style(backend): PRWLR-3990 remove extra endlines
* chore: PRWLR-3990 update poetry.lock
* chore: PRWLR-3990 run pre-commit
2024-07-05 10:13:04 -04:00