Livio Spring
441f215513
fix: join on instanceIDs in queries ( #4612 )
2022-10-27 06:08:36 +00:00
Silvan
77b4fc5487
feat(database): support for postgres ( #3998 )
...
* beginning with postgres statements
* try pgx
* use pgx
* database
* init works for postgres
* arrays working
* init for cockroach
* init
* start tests
* tests
* TESTS
* ch
* ch
* chore: use go 1.18
* read stmts
* fix typo
* tests
* connection string
* add missing error handler
* cleanup
* start all apis
* go mod tidy
* old update
* switch back to minute
* on conflict
* replace string slice with `database.StringArray` in db models
* fix tests and start
* update go version in dockerfile
* setup go
* clean up
* remove notification migration
* update
* docs: add deploy guide for postgres
* fix: revert sonyflake
* use `database.StringArray` for daos
* use `database.StringArray` every where
* new tables
* index naming,
metadata primary key,
project grant role key type
* docs(postgres): change to beta
* chore: correct compose
* fix(defaults): add empty postgres config
* refactor: remove unused code
* docs: add postgres to self hosted
* fix broken link
* so?
* change title
* add mdx to link
* fix stmt
* update goreleaser in test-code
* docs: improve postgres example
* update more projections
* fix: add beta log for postgres
* revert index name change
* prerelease
* fix: add sequence to v1 "reduce paniced"
* log if nil
* add logging
* fix: log output
* fix(import): check if org exists and user
* refactor: imports
* fix(user): ignore malformed events
* refactor: method naming
* fix: test
* refactor: correct errors.Is call
* ci: don't build dev binaries on main
* fix(go releaser): update version to 1.11.0
* fix(user): projection should not break
* fix(user): handle error properly
* docs: correct config example
* Update .releaserc.js
* Update .releaserc.js
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Elio Bischof <eliobischof@gmail.com>
2022-08-31 07:52:43 +00:00
Florian Forster
fa9f581d56
chore(v2): move to new org ( #3499 )
...
* chore: move to new org
* logging
* fix: org rename caos -> zitadel
Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2022-04-26 23:01:45 +00:00
Livio Amstutz
56b916a2b0
feat: projections auto create their tables ( #3324 )
...
* begin init checks for projections
* first projection checks
* debug notification providers with query fixes
* more projections and first index
* more projections
* more projections
* finish projections
* fix tests (remove db name)
* create tables in setup
* fix logging / error handling
* add tenant to views
* rename tenant to instance_id
* add instance_id to all projections
* add instance_id to all queries
* correct instance_id on projections
* add instance_id to failed_events
* use separate context for instance
* implement features projection
* implement features projection
* remove unique constraint from setup when migration failed
* add error to failed setup event
* add instance_id to primary keys
* fix IAM projection
* remove old migrations folder
* fix keysFromYAML test
2022-03-23 09:02:39 +01:00
Silvan
9ddbc80e81
fix(queries): project grant and role prepare funcs ( #2659 )
...
* chore(queries): test suite for prepare stmt funcs
* test(queries): prepare project funcs
* refactor: add comments
* test: simlify expected sql, added possibility to add args to expected queries
* test(queries): prepare funcs in org
* chore(backend): correct modules
* test(queries): org domain prepare funcs
* test: correct name
* refactor: file name
* refactor: add table to login policy columns
* chore(prepare_test): only add row to result if columns
* test(queries): login policy prepare funcs
* chore: add comments for configs
* test(queries): prepare idp funcs
* fix(queries): add table to password complexity policy cols
* test(queries): password complexity policy prepare funcs
* fix(queries): add table to password age policy cols
* test(queries): password age policy prepare func
* fix(queries): set cols on lockout policy
* test(queries): lockout policy prepare funs
* fix(queries): set table on privacy policy cols
* test(queries): privacy policy prepare funcs
* fix(queries): set table on org iam policy cols
* fix(queries): correct table in org iam policy cols
* test(queries): org iam policy prepare funcs
* test(queries): prepare project grant funcs
* refactor(queries): prepareProjectRoleQuery as func
* test(queries): prepare project role funcs
* test(queries): project grant check for nulls in joins
* fix(queries): allow null values in project grant
2021-11-16 08:44:56 +00:00