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

Artifacts content is now written as expected #52

Merged
merged 1 commit into from
May 24, 2023
Merged

Conversation

kreneskyp
Copy link
Owner

Description

A last minute change for SaveArtifacts chain broke file writes. Files were displayed correctly in the UX but as a JSON object
in the filesystem

Changes

  • SaveArtifact now only serializes content when content is not already a string
  • Coder v1 now sets SaveArtifact.content_path to properly map content to file
  • Updated ArtifactContent to expect a message.data to be a str instead of json.

How Tested

  • manual tests
  • added a new unittests:
    • to test SaveArtifact.content_path
    • to test non-json file write

TODOs

[List any outstanding TODOs or known issues that still need to be addressed.]

@kreneskyp kreneskyp merged commit d83fb0b into master May 24, 2023
@kreneskyp kreneskyp deleted the fix_file_write branch May 24, 2023 18:15
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.

1 participant