feat: add global specification watcher#220
Conversation
|
I guess there is an error with, test case for watch mode. |
derberg
left a comment
There was a problem hiding this comment.
Please also enable watcher for diff
@Souvikns @boyney123 @magicmatatjahu wanna have a look?
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
|
Hey @derberg |
magicmatatjahu
left a comment
There was a problem hiding this comment.
Awesome! I leave some comments, please refer to them.
magicmatatjahu
left a comment
There was a problem hiding this comment.
@imabp Good, but you have to handle that one code smell :) https://sonarcloud.io/project/issues?id=asyncapi_cli&open=AX7bDmqtPXvNfWF5cO0t&pullRequest=220&resolved=false&types=CODE_SMELL
Also please refer to my and Łukasz suggestion: https://github.com/asyncapi/cli/pull/220/files#r802512653
|
Hey @magicmatatjahu the code smell is fixed :) |
derberg
left a comment
There was a problem hiding this comment.
OH man, what an improvement, it looks much cleaner now. I left only 2 comments
|
Hey @derberg @magicmatatjahu |
derberg
left a comment
There was a problem hiding this comment.
looking good, except for one followup comments I guess we are still left with an idea on testing watcher?
I'm also wondering if we do not need unit tests for commands where watcher is used. Like what happens for example when user passes --watch and both AsyncAPI references are URLs. Do we perform validation/diff> IMHO yes, but then we need to have it tested imho as well
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
|
Sure @magicmatatjahu here is the new issue, we can work on that. :) |
|
Just a question, @magicmatatjahu then shall we proceed with this PR, and then address the issue of handling errors #234 ? |
|
@imabp First complete that PR and then start working on mentioned issue :) You can propagate changes from that comment and I will accept it. #220 (comment) |
|
I have fixed the second error as you mentioned @magicmatatjahu and is now reflected in the latest changes
|
|
@imabp Probably we don't understand each other 😆 I had in mind this one: |
|
Ohh I got it.. 😅 . .Its really a learning to converse on PRs 😄 specially on such highly-critical issues |
|
Hey @magicmatatjahu |
|
Kudos, SonarCloud Quality Gate passed!
|
magicmatatjahu
left a comment
There was a problem hiding this comment.
LGTM! However I see little "bug" when I run diff command. When I have invalid spec I cannot recognize in which file I have errors (in new or old?):
We should improve logs in the followup PR @imabp Could you handle that? We need that PR for another commands so I don't want to block development with rejection.
|
/rtm |
|
Yes sure!! @magicmatatjahu We need a proper logging control center 😅 or an interface I am creating a issue #236 |
|
🎉 This PR is included in version 0.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@all-contributors please add @imabp for code |
|
I've put up a pull request to add @imabp! 🎉 |
|
I gave it a try, and it worked out xD 😂😂 |
* docs: fix missing toc (asyncapi#230) * feat: add global specification watcher (asyncapi#220) Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com> Co-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com> * chore(release): v0.14.0 (asyncapi#237) * docs: add imabp as a contributor for code (asyncapi#239) Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * fix: update @asyncapi/studio to 0.10.0 version (asyncapi#241) * chore(release): v0.14.1 (asyncapi#242) * feat: added testing for new (asyncapi#212) * docs: add Samridhi-98 as a contributor for test (asyncapi#248) * ci: update global workflows (asyncapi#246) * chore(release): v0.15.0 (asyncapi#249) * feat: migrate to latest oclif version (asyncapi#203) * chore: update bot name from codeowners file (asyncapi#247) * ci: update global workflows (asyncapi#250) * Create test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml Co-authored-by: Abir <abir.pal899@gmail.com> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com> Co-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com> Co-authored-by: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Samriddhi <Agrawalsamriddhi83@gmail.com> Co-authored-by: asyncapi-bot <bot+chan@asyncapi.io>














Description
Related issue(s)
#73