-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
feat: add global specification watcher #220
Conversation
I guess there is an error with, test case for watch mode. |
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.
Please also enable watcher for diff
@Souvikns @boyney123 @magicmatatjahu wanna have a look?
Co-authored-by: Lukasz Gornicki <[email protected]>
Co-authored-by: Lukasz Gornicki <[email protected]>
Co-authored-by: Lukasz Gornicki <[email protected]>
Hey @derberg |
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.
Awesome! I leave some comments, please refer to them.
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.
@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 :) |
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.
OH man, what an improvement, it looks much cleaner now. I left only 2 comments
Hey @derberg @magicmatatjahu |
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.
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 <[email protected]>
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 |
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.
Last thing :)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
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 <[email protected]> Co-authored-by: Maciej Urbańczyk <[email protected]> * 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 <[email protected]> Co-authored-by: Lukasz Gornicki <[email protected]> Co-authored-by: Maciej Urbańczyk <[email protected]> Co-authored-by: asyncapi-bot <[email protected]> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Samriddhi <[email protected]> Co-authored-by: asyncapi-bot <[email protected]>
* docs: fix missing toc (asyncapi#230) * feat: add global specification watcher (asyncapi#220) Co-authored-by: Lukasz Gornicki <[email protected]> Co-authored-by: Maciej Urbańczyk <[email protected]> * 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 * Update test.yml Co-authored-by: Abir <[email protected]> Co-authored-by: Lukasz Gornicki <[email protected]> Co-authored-by: Maciej Urbańczyk <[email protected]> Co-authored-by: asyncapi-bot <[email protected]> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Samriddhi <[email protected]> Co-authored-by: asyncapi-bot <[email protected]>
Description
Related issue(s)
#73