confluentinc / vscode

Confluent for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=confluentinc.vscode-confluent
Apache License 2.0
13 stars 3 forks source link

Implement flow for re-producing a consumed message from Message Viewer #595

Open rohitsanj opened 3 days ago

rohitsanj commented 3 days ago
  1. User double-clicks a consumed message in the Topic Message Viewer
  2. User clicks “Re-produce this message” (surfaced as CodeLens action or file editor action? unsure)
  3. A new file {topic-name}-{random_string}.confluent.kafka.json is saved and opened in the workspace with the consumed message contents transformed to conform to the message file schema.
    1. Transformation logic: partition_id, offset and timestamp is dropped. A new field produce_config is added containing cluster_id and topic_name.
  4. User may choose to further edit the message and perform any validations (by clicking “Validate message” CodeLens action)
  5. User clicks “Produce message”