-
-
Notifications
You must be signed in to change notification settings - Fork 59
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: list all messages in sidebar #31
Conversation
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
just please remember that we no longer create branches in the upstream and everyone should contribute through forks -> https://github.com/asyncapi/.github/blob/master/git-workflow.md
I'm using this script to setup master in fork to be in sync with master from upstream, so experience of working in fork is same awesome like working directly in the upstream.
@WaleedAshraf and we also use conventional commits to drive releases automation https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md#conventional-commits |
I'm wondering if this is not something that should be behind a parameter so users can decide if they want it or not, but yeah, let us add it by default and see what community has to say on it |
@WaleedAshraf one more question, you are aware that one message can be used in multiple channels and as a result, like in the example, link like |
@bpedro you are right. There can be multiple links for one message, and this fix will only take you to the first link. Using filters can also be useful for tags. i.e, we list all the tags, and clicking on one tag will filter all messages which have that tag. etc. The way you showed above will also work. For that first, we need to
|
@WaleedAshraf this filter functionality if pretty sophisticated, do you plan to work on it? with this PR schema doesn't have to be collapsable, and you would only have to render messages (servers or schemas are not part of this PR) below operations, and link to messages there only where you do not have duplicates, instead of a message in a given operation. |
Ok, I'll work on rending messages in below Operation and linking it there. 👍 Work on Filter: it's just an idea. maybe there are better ways to do it. |
@@ -5,3 +5,4 @@ | |||
{% if asyncapi.hasChannels() %} | |||
{% include "./operations.html" %} | |||
{% endif %} | |||
{% include "./messages.html" %} |
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.
It would be good to have .hasMessages()
check here. But it doesn't exist yet.
We can add that in the future.
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 create an issue in parser to add it so we don't forget
@WaleedAshraf lgtm, just create an issue for |
🎉 This PR is included in version 0.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
oh boy :) In our case, having these entries in the sidebar offers no added value, even if they were all named, there's simply way too much of them to have any use. |
@rv0 thanks for sharing, we have use case, makes sense to do it. Please create a separate issue. Adding param is easy, we just need to agree on how to name it and what is the default. btw do you know that you can lock for a specific |
@derberg will create issue eventually, I'm aware of the version targeting, it's great how fast this project and it's subprojects are advancing |
@rv0 please keep in mind that this template is not yet on 1.0 release hence the approach is more relaxed here. It would be great though to work together on some design document that outlines what features should be parametrized and what not, or maybe really all. |
closes #29
Updated view: