Skip to content

Refactor PipelineDataHeader ⇄ PipelineData mapping - #12248

Merged
WindSoilder merged 1 commit into
nushell:mainfrom
devyn:refactor-pipeline_data_header-mapping
Mar 20, 2024
Merged

WindSoilder merged 1 commit into
nushell:mainfrom
devyn:refactor-pipeline_data_header-mapping

Conversation

@devyn

@devyn devyn commented Mar 20, 2024

Copy link
Copy Markdown
Contributor

Description

It was a bit ugly that when new EngineCalls or response types were added, they needed to be added to multiple places with redundant code just to change the types, even if they didn't have any stream content.

This fixes that and locates all of that logic in one place.

User-Facing Changes

None

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

It was a bit ugly that when new `EngineCall`s or response types were
added, they needed to be added to multiple places with redundant code
just to change the types, even if they didn't have any stream content.

This fixes that and locates all of that logic in one place.

@WindSoilder WindSoilder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure! I think it's good to make them in one place :-D

@WindSoilder
WindSoilder merged commit dcf2e8c into nushell:main Mar 20, 2024
@hustcer hustcer added this to the v0.92.0 milestone Mar 20, 2024
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