Skip to content
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

[#5538] message type was missing from TopicConfigInfo in rocketmq-das… #158

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Abhijeetmishr
Copy link
Contributor

What is the purpose of the change

#5538 - issue reported for examine Topic Config Query not returning message.type in query result.

@Abhijeetmishr
Copy link
Contributor Author

@Oliverwqcwrw Please review this when available

Copy link
Member

@Oliverwqcwrw Oliverwqcwrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The page also needs to add messageType

By the way, it's better to test locally if messageType is displayed successfully, and it would be nice to add a screenshot of messageType displayed successfully

@Abhijeetmishr
Copy link
Contributor Author

The page also needs to add messageType

By the way, it's better to test locally if messageType is displayed successfully, and it would be nice to add a screenshot of messageType displayed successfully

Hi @Oliverwqcwrw sorry for delaying this.
I will appreciate if you explain 1st and 2nd point a bit.
And for testing this thing locally I need some guidance.

@Oliverwqcwrw
Copy link
Member

The page also needs to add messageType
By the way, it's better to test locally if messageType is displayed successfully, and it would be nice to add a screenshot of messageType displayed successfully

Hi @Oliverwqcwrw sorry for delaying this. I will appreciate if you explain 1st and 2nd point a bit. And for testing this thing locally I need some guidance.

  1. This page can view message type

image

  1. If you provide screenshots of messageType successfully, maintainers will review your pr more quickly

@Abhijeetmishr
Copy link
Contributor Author

Abhijeetmishr commented Apr 16, 2023

@Oliverwqcwrw from where I have to add message type in frontend ?
Where can I see this page ?
image

@Abhijeetmishr
Copy link
Contributor Author

src/main/java/org/apache/rocketmq/dashboard/model/request/TopicConfigInfo.java

@Koudinka I have already added mesageType in TopicConfigInfo. I don't understand Oliver's first point The page also needs to add messageType
image

@Oliverwqcwrw
Copy link
Member

@Oliverwqcwrw from where I have to add message type in frontend ? Where can I see this page ? image

The page is here
https://github.com/apache/rocketmq-dashboard/blob/master/src/main/resources/static/view/pages/topic.html

@Abhijeetmishr
Copy link
Contributor Author

@Oliverwqcwrw sorry for delaying this.
Please check this
image

}

public void setMessageType(TopicConfig topicConfig) {
this.messageType = topicConfig.getAttributes().getOrDefault("message.type", "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to set NORMAL when the message type is empty,
WDYT

Copy link
Contributor Author

@Abhijeetmishr Abhijeetmishr May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes right that will be more verbose.
@Oliverwqcwrw done please check.

Copy link
Member

@Oliverwqcwrw Oliverwqcwrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two small problems outside of the presentation

  1. It doesn't take effect when creating a topic with a message type; for example, it still remains as NORMAL when I create a FIFO topic.
  2. It would be more user-friendly to let the user choose from a message type drop-down box when creating a topic.

@echooymxq
Copy link

There should update TopicConfig attributes when create or update topic .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants