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

add keyFormat and format query params to the view message link for topics #278

Conversation

jorkzijlstra
Copy link
Contributor

@jorkzijlstra jorkzijlstra commented May 17, 2021

I noticed that the view message for topic did not have the keyFormat and format query params specified which causes the message to be de-serialized in the "DEFAULT" format instead of the message.format specified in the config.

Fix #239

Copy link
Collaborator

@davideicardi davideicardi left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

Do you think it is possible to write a simple unit test to verify this bug?

@jorkzijlstra
Copy link
Contributor Author

Not sure what / how to test this. It's controller logic and I don't see any other tests for them. Also not familiar with the test framework yet so I'll have to have a look later.

@davideicardi
Copy link
Collaborator

@jorkzijlstra ok for now I think it should be fine.

Can you just confirm that this change doesn't have any effect if --message.format=AVRO is not used? It works as before without problems?

@jorkzijlstra
Copy link
Contributor Author

jorkzijlstra commented Jan 31, 2022

@davideicardi I can confirm that since that is also what we are actually running. It will just revert to the DEFAULT

image

@davideicardi davideicardi merged commit d9243d8 into obsidiandynamics:master Jan 31, 2022
@jorkzijlstra jorkzijlstra deleted the feature/default-format-on-topic-links branch January 31, 2022 08:13
@@ -124,7 +124,7 @@
<tbody>
<#list topic.partitions as p>
<tr>
<td><a href="<@spring.url '/topic/${topic.name}/messages?partition=${p.id}&offset=${p.firstOffset}&count=100'/>">${p.id}</a></td>
<td><a href="<@spring.url '/topic/${topic.name}/messages?partition=${p.id}&offset=${p.firstOffset}&count=100&keyFormat${keyFormat}=&format=${format}'/>">${p.id}</a></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that sould be keyFormat=${keyFormat}&format=${format}

@fape fape mentioned this pull request Oct 4, 2022
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.

Messages not read in AVRO format when navigating directly to a partition
3 participants