Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:02
    github-actions[bot] commented #2037
  • 09:53
    github-actions[bot] commented #2037
  • 09:41
    Romakita synchronize #2037
  • 09:40
    github-actions[bot] commented #2037
  • 09:36
    Romakita synchronize #2037
  • 09:28
    Romakita synchronize #2037
  • 09:28
    github-actions[bot] commented #2037
  • 09:14
    Romakita synchronize #2037
  • 08:25
    Romakita commented #2039
  • 08:25
    github-actions[bot] commented #2039
  • 08:24
    Romakita closed #2039
  • 08:24
    Romakita commented #2039
  • 06:48
    thanhchuongbmd assigned #2039
  • 06:48
    thanhchuongbmd labeled #2039
  • 06:48
    thanhchuongbmd opened #2039
  • Aug 14 23:33
    github-actions[bot] labeled #2038
  • Aug 14 23:33
    github-actions[bot] labeled #2038
  • Aug 14 23:33
    github-actions[bot] opened #2038
  • Aug 13 17:13
    github-actions[bot] commented #2037
  • Aug 13 17:00
    Romakita synchronize #2037
Romain Lenzotti
@Romakita
Ok the PR is ready
Ashish Gupta
@ashprojects
Great! :)
Romain Lenzotti
@Romakita
I’ll merge it in 5minutes. The build / release takes 10min-15min

@ashprojects have you seen my message about your question

proud to use TSED. But i had a query regarding microservices usage of tsed
is there a plan or way to make internal services call via tcp? Proxy calling other microservices ? At this point i have to expose http endpoints for each service.

Ashish Gupta
@ashprojects

Oh yeah, sorry missed it.
I will check the link that you sent, will review it.
My basic need was internal communication among microservices built on TsED.
Example
There is a UserService with following methods: getUserById() and createUser()
And there is a UIService which calls UserService internally in the same VPC.

I come from Java background, so was looking for a convenient way (like Service Proxies https://vertx.io/docs/vertx-service-proxy/java/) which makes UIService and UserService easy to communicate with neat API Contracts.
Today, we created shared UserService Interface, which is kept in commons, and has two implementations:

  1. Actual Implementation in UserService (HTTP Endpoint exposed)
  2. Proxy Implementation, which calls 1 via HTTP call.

UIService now has (2), calls like a method call (getUserById) and returns an object

I can create a repo demonstrating this, in case that helps.
It's just way that I am using it like now, I will review Command pattern that you mentioned as well.
Romain Lenzotti
@Romakita
Command patners won’t feet with your needs. A repo example could help me. But I never used Tcp command. I use always http protocol to communicate between two applications
Ashish Gupta
@ashprojects
Oh. Got it thanks.
Romain Lenzotti
@Romakita
Release in progress
Romain Lenzotti
@Romakita
released
Romain Lenzotti
@Romakita

:rotating_light: Hello community, :rotating_light:

Ts.ED team have decided to migrate the discussions on two tools:

image.pngimage.pngimage.png
Why github discussions? Because, the topics can be followed by any developpers who encountered the same problems
Romain Lenzotti
@Romakita
@canal The issue on Slack button is fixed!
raitislebedevs
@raitislebedevs

Is there a way to specify a Response 417 code to be shown in Swagger documentation for Post Request, by default it has only 400, if I decorate the function with @Authenticated() then it shows as well 401. How can I add 417, and still have the option to use a type e.g., want to have the below. Though Swagger does not reflect this code.

@Returns(417, { description: "Unauthorized", type: Model})

Romain Lenzotti
@Romakita
@Returns(417, Model).Description(‘Unauthorized')

@Romakita
:rotating_light: Hello community, :rotating_light:

Ts.ED team have decided to migrate the discussions on two tools:

Romain Lenzotti
@Romakita
Slack access fixed (again)
Avesh Memon
@aveshalchemy:matrix.org
[m]

Hey Community,
I am facing one issue.

TypeError: Cannot destructure property request of 'undefined' or 'null'.
at PlatformExpressHandler.getParam (/home/alchemy/bored_backend/node_modules/@tsed/common/src/platform/services/PlatformHandler.ts:89:9)
at PlatformExpressHandler.mapParam (/home/alchemy/bored_backend/node_modules/@tsed/common/src/platform/services/PlatformHandler.ts:228:24)
at context.args.Promise.all.parameters.map (/home/alchemy/bored_backend/node_modules/@tsed/common/src/platform/services/PlatformHandler.ts:201:71)
at Array.map (<anonymous>)
at PlatformExpressHandler.onRequest (/home/alchemy/bored_backend/node_modules/@tsed/common/src/platform/services/PlatformHandler.ts:201:51)
at /home/alchemy/bored_backend/node_modules/@tsed/common/src/platform/services/PlatformHandler.ts:178:14
at Layer.handle_error (/home/alchemy/bored_backend/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/home/alchemy/bored_backend/node_modules/express/lib/router/index.js:315:13)
at /home/alchemy/bored_backend/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/alchemy/bored_backend/node_modules/express/lib/router/index.js:335:12)

When my request size is bigger in graphql at that time i:m getting this error

Romain Lenzotti
@Romakita
Can you open an issue. Also this chanel is closed. For any bug/question use github or slack
Avesh Memon
@aveshalchemy:matrix.org
[m]
Okay
Eric Polerecky
@detroitpro
image.png

I am using TypeORM and would like to use the async factory to resolve the default database connection; however, I am unable to find an example of how to mock out the database connection that is injected.

Is there an example of testing a service with a constructor like this?

I am looking for an example of unit testing, one that is only testing this service and not starting an entire server.
Romain Lenzotti
@Romakita
image.png
:rotating_light: Hello community, :rotating_light:
Ts.ED team have decided to migrate the discussions on two tools:
Discussions will be now on Github discussions
https://github.com/TypedProject/tsed/discussions
Direct message will be now on Slack (https://join.slack.com/t/tsed-framework/shared_invite/zt-pd8d3ope-s_W4VM89E~NsIh8kxkXNoQ)
image.pngimage.pngimage.png
Lux
@lux:ontheblueplanet.com
[m]
That's horrible
Moving away from an open source and decentralized tool as matrix to a highly problematic slack channel? That's truly sad!
Romain Lenzotti
@Romakita

This is why you have two links. One to github discussions and a second for slack.

  • Github is open and SEO frendly
  • Slack offer better options for me and I assumed that

I work on my personal time to develop the framework and provide answers. I think I have the right to choose the right tools to save time :)

There is no debate on this. I also took the time to tell you about the preferred communication channels so that you can get a response from the community.

I hope you understand my personal motivations to be able to choose the elements that prevent me from wasting time. Gitter no longer made it possible to follow conversations correctly and answer questions quickly.

For your question. I think the response is here: https://tsed.io/docs/testing.html#unit-test

Or on the official TypeORM documentation

devops-sevaa
@devops-sevaa
Hi there , I have used Ts.ed for development of NodeJS server. Everything is working fine in local , but after hosting it on AWS ec2 instance ubuntu AMI, with pm2 tool I am facing some errors
src/Server.ts(61,3): error TS2564: Property 'settings' has no initializer and is not definitely assigned in the constructor.
2|be_sagis |
2|be_sagis | src/Server.ts(56,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(58,3): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(58,3): error TS2564: Property 'app' has no initializer and is not definitely assigned in the constructor.
2|be_sagis | src/Server.ts(61,3): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(61,3): error TS2564: Property 'settings' has no initializer and is not definitely assigned in the constructor.
2|be_sagis |
2|be_sagis | src/Server.ts(56,14): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(58,3): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(58,3): error TS2564: Property 'app' has no initializer and is not definitely assigned in the constructor.
2|be_sagis | src/Server.ts(61,3): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
2|be_sagis | src/Server.ts(61,3): error TS2564: Property 'settings' has no initializer and is not definitely assigned in the constructor.
this is error description
Some one please help me solving this
I am system.config.js file to run pm2
Romain Lenzotti
@Romakita
This question must be asked on PM2 team.
Again this channel will be definitively close on end of this month !!
please use the appropriate channels: Github discussion or Slack
Gheorghe Avram
@sweethuman
why is the website so slow? sometimes the browser tells me it's not responding
jmkozko
@jmkozko

i just tried to look up various decorators at:
https://tsed.io/docs/model.html#example
and the api-doc.tsed.io site they link out to is unreachable:
https://api-doc.tsed.io/api/specs/schema/types/decorators/common/Property.html

i also tried looking up the Model & JsonSchema link in the README under:
https://github.com/tsedio/tsed/blob/production/docs/getting-started/README.md?plain=1#L75
and it routes to a "page not found":
https://github.com/tsedio/tsed/blob/production/docs/model.md

where can i find working api docs?

Romain Lenzotti
@Romakita

I work on documentation fix.

:warning: REMEMBER, GITTER WON'T BE USED ANYMORE AS A DISCUSSION PLATFORM FOR Ts.ED :warning:
:warning: ALL THE QUESTIONS SHOULD BE PLACED ON THE GITHUB DISCUSSIONS PLATFORM :warning:
https://github.com/TypedProject/tsed/discussions

Denis Novozhilov
@gloomybrain
Hey everyone! It seems I've got stuck with Ts.ED query parameter parsing. In particular I have a REST controller that accepts two types of the same query parameter: it's either GET foo.bar/entity?createdAt[lte]=2021-12-10T10:10:17.717Z or GET foo.bar/entity?createdAt=2021-12-10T10:10:17.717Z. So as you can see I have to check whether the createdAt query parameter is a string and then make a Date instance from it OR createdAt is an Object and I should create an instance of my EntityFilter class with the lte field set to an appropriate Date instance.
So my questions is as follows: what decorators should I use to define such a distinction? And how should my EntityDto class look like given that its createdAt field has to be either a Date or an EntityFilter instance?
I'd highly appreciate any help, and I suppose there might be some solutions other than writing these filters by hand.
Denis Novozhilov
@gloomybrain
FYI: I've posted this question on GitHub discussions too: https://github.com/tsedio/tsed/discussions/1732
Sibaram Nayak
@Sibaram82729382_twitter
Is there any way to read all the controller's metadata in tsed? actually, the inversify-express-util library has a method called getRawMetaData() which gives all the metadata.
imoyakin
@imoyakin
Hello everyone. Does Ts.ED support to accept request with form-data on Body?
Romain Lenzotti
@Romakita
:warning: REMEMBER, GITTER WON'T BE USED ANYMORE AS A DISCUSSION PLATFORM FOR Ts.ED :warning:
:warning: ALL THE QUESTIONS SHOULD BE PLACED ON THE GITHUB DISCUSSIONS PLATFORM :warning:
https://github.com/tsedio/tsed/discussions
or slack
FuHongBiao
@FuHongBiao
hello every one.I have a thinkjs project now, I want to use tsed's auto-generate swagger documentation function, how can I do it?
Romain Lenzotti
@Romakita
@Romakita
:warning: REMEMBER, GITTER WON'T BE USED ANYMORE AS A DISCUSSION PLATFORM FOR Ts.ED :warning:
:warning: ALL THE QUESTIONS SHOULD BE PLACED ON THE GITHUB DISCUSSIONS PLATFORM :warning:
https://github.com/tsedio/tsed/discussions
or slack
Richard Ward
@Rich43
Hi, Is there any sequelise support?