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

Produce button disabled after copying message on AKHQ version 0.25.1 #1971

Open
rzala opened this issue Oct 8, 2024 · 3 comments · May be fixed by #2019
Open

Produce button disabled after copying message on AKHQ version 0.25.1 #1971

rzala opened this issue Oct 8, 2024 · 3 comments · May be fixed by #2019

Comments

@rzala
Copy link

rzala commented Oct 8, 2024

Description:
After upgrading from version 0.24.0 to 0.25.1, I've encountered an issue where the Produce button becomes disabled when trying to copy a message for production in KafkaHQ.

Steps to reproduce:

  1. Upgrade AKHQ to version 0.25.1.
  2. Copy a message in KafkaHQ to produce it.
  3. Notice that the Produce button is disabled when the Value schema is populated.

Observations:

  • No logs are displayed on the console indicating why the button is disabled.
  • After adding some logging to the code for debugging, I observed the following error message: valueSchema is not allowed.
x(this, "validate", () => {
    const { error: t } = H.validate(this.state.formData, this.schema);
    if (!t)
        return null;
    console.log("log: " + t); // added the logging here
    const s = {};
    for (let a of t.details)
        s[a.path[0]] = a.message;
    return s;
});
  • When hovering over the Value schema field, it appears to be stuck in a loading state with a constant loading pointer.
  • The issue only occurs when using the Copy button on a message. However, if I directly click the Produce to topic button on a topic, everything works fine.

Expected behavior:

The Produce button should be enabled after copying a message, similar to when directly producing to a topic.

Environment:

  • AKHQ Version: 0.25.1
  • Previous Version: 0.24.0

image
image

@tooptoop4
Copy link
Contributor

try latest version

@rzala rzala changed the title Produce button disabled after copying message on AKHQ version 0.15.1 Produce button disabled after copying message on AKHQ version 0.25.1 Oct 22, 2024
@rzala
Copy link
Author

rzala commented Oct 22, 2024

try latest version

I apologize for the confusion. I mistakenly quoted the wrong version. I'm currently using the latest version, 0.25.1. I've updated the issue to reflect the correct versions. Thank you!

@AlexisSouquiere
Copy link
Collaborator

I found the issue. There were extra values in the form data (key / value schema) that prevented the form validation to be true.

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

Successfully merging a pull request may close this issue.

3 participants