Skip to content

Commit

Permalink
setup projections for property svc (#708)
Browse files Browse the repository at this point in the history
* current state

* feat: add event listeners

* feat: add models to migration

* feat: add createFieldTypData eventListener

* feat: add allowFreetextUpdated event listener

* feat: add removeSelectOptions listener

* feat: add selectOptionsUpserted listener

* chore: log rollback errors

* fix: update selectDataID properly

* fix: formatting

* feat: add property queries

* fix: merge declaration with assignment

* chore: regen sqlc models after update

* chore: gomodtidy in property-svc

* fix: migrations

* fix: reduce db queries

* fix: remove attributes from create statement

* chore: move db into projection struct

* fix: remove field_type_datas table

* fix: update allowFreetext properly

---------

Co-authored-by: Max Schäfer <[email protected]>
  • Loading branch information
PaulKalho and MaxSchaefer authored Apr 9, 2024
1 parent d102452 commit 632f0b4
Show file tree
Hide file tree
Showing 36 changed files with 4,488 additions and 171 deletions.
1 change: 1 addition & 0 deletions dev/dapr_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ common:
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
EVENTSTORE_CS: esdb://admin:changeit@eventstore:2113?tls=false
INSECURE_FAKE_TOKEN_ENABLE: true
REDIS_ADDR: redis:6379
INSECURE_REDIS_NO_TLS: true
Expand Down
1 change: 1 addition & 0 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,4 @@ services:
- "3001:3001" # task-svc
- "3002:3002" # user-svc
- "3003:3003" # ory-svc
- "3004:3004" # property-svc
1 change: 1 addition & 0 deletions dev/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ CREATE DATABASE "task-svc";
CREATE DATABASE "user-svc";
CREATE DATABASE "impulse-svc";
CREATE DATABASE "tasks-svc";
CREATE DATABASE "property-svc";
408 changes: 408 additions & 0 deletions gen/dart/lib/proto/services/property_svc/v1/property_svc.pb.dart

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 632f0b4

Please sign in to comment.