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
Support version on waitForServices #112
Conversation
Thanks, but current solution works only with numeric version.
Would be better to set an object if you want to define version. Normal current format waitForServices("users");
waitForServices(["posts", "users"]); New optional versioned format waitForServices({ name: "users", version: "staging" });
waitForServices([{ name: "order.saga", version: 2 }, {name: "users", version: "staging"]); Both format should be supported. And of course please add relevant test cases too. We make an effort to cover all codes to ensure stability & quality codebase. Could you change it? |
ok, i will change it |
1 similar comment
I saw your edit only few minutes back 😄 , Added tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect PR! Thanks!
Nice job! Thank you! 👍 |
😄 Thats my contribution to Open Source after a long time 👍 |
Released in v0.11.2 |
If a service has version
waitForServices()
function was not able to find the service because the version is undefined when passed toregistry.hasService()
it checks if the version can be extracted from the service names with format