Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #5

Merged
merged 46 commits into from
Nov 24, 2023
Merged

Dev #5

merged 46 commits into from
Nov 24, 2023

Conversation

dehwyy
Copy link
Owner

@dehwyy dehwyy commented Nov 24, 2023

No description provided.

1. benchmark has total_time and average_time spend on each task
fix

fix

fix

add libs/grpc/generated to .git for workflow
…ts -> js via @protobuf-ts)

1. Generated files depends on ENV provided: TWIRP_GO_COMPILE, TWIRP_TS_COMPILE;
2. Instead of generating all files it would iter through Vec of `protos_name` which should be implicitly set

t

t

t

t

t

t

fixed workflow
1. For filtering. As a result changed namespace in _test file; add pipe to do the thing in twirp.handler (getitems)
1. Was ~12 gb, rn <6gb, 3gb is separeted `libs` file which would be reused -> less space. For example in past `auth_backend` service was ~3gb rn it's <1gb, `gateway_twirp` was ~2.5gb, rn it's just 354.64mb).
Build time also decreased from 5 to 10 times
there was type misunderstanding as /lib (for ts) used import alias (@makoto/grpc/generated) so for some reason when compiled .d.ts files resolved this import not the right way
1. The problem was that token from Headers wasn't read -> empty string in `Token` field at request -> if token == "" and it's token's type signIn -> attach from AuthorizationHeader
1. twirp and grpc communicates fine
2. test_url is http://localhost:4000/user/user.UserRPC/CreateUser with { "userId": "1"} and application/json header
1. new schema user_info and languages for future UserService
1. It actually means that Rust and Go services were succesfully linked!
1. in UserInfo model ID was redundant, replaced with user_id as primary key
1. fixed API update_user API
2. @makoto/tests/setupdb utils for test-database
1: add protoc plugins for Go in workflow
1. https and http are available (https says that connection is not secured as ssl certs are self-generated)
2. localhost:80 and localhost:443 (http / https)
docker fix (1)

1. libs for typescript

fix

fix

removed pgadmin from docker-compose

add login to dockerhub in github action

remove web-server from docker-compose

github action 💀

stage for gh actions

stage for gh actions

workflow

fixed typo
@dehwyy dehwyy merged commit f096f51 into v2 Nov 24, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant