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

Change temporary file creation api #169

Merged
merged 17 commits into from
Feb 4, 2024
Merged

Conversation

jbrichau
Copy link
Member

@jbrichau jbrichau commented Feb 4, 2024

We make the temporary file creation api on GRPlatform consistent with other file handling methods in Grease: they work with path strings rather than file references.

This makes it easier to port uses of it to other platforms, such as porting zinc request streaming to GemStone.

At the same time, we add some missing file manipulation methods to the Squeak platform...

…raryFile` which returns a pathString consistent with other Grease file-handling methods
Copy link

codecov bot commented Feb 4, 2024

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (933bc73) 84.98% compared to head (5ae43f8) 85.15%.

Files Patch % Lines
...atform.class/instance/newTemporaryFileReference.st 0.00% 3 Missing ⚠️
....class/instance/newTemporaryFileReferenceNamed..st 0.00% 3 Missing ⚠️
...atform.class/instance/newTemporaryFileReference.st 0.00% 3 Missing ⚠️
....class/instance/newTemporaryFileReferenceNamed..st 0.00% 3 Missing ⚠️
...atform.class/instance/newTemporaryFileReference.st 0.00% 3 Missing ⚠️
....class/instance/newTemporaryFileReferenceNamed..st 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
+ Coverage   84.98%   85.15%   +0.16%     
==========================================
  Files        2039     2051      +12     
  Lines       13997    14115     +118     
==========================================
+ Hits        11895    12019     +124     
+ Misses       2102     2096       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jbrichau
Copy link
Member Author

jbrichau commented Feb 4, 2024

@theseion
The idea is to change the temporary file handling to make the streaming file uploads portable to GemStone as well.
See change in SeasideSt/Seaside@cf0d512 which should work once this PR is merged in Grease

@jbrichau
Copy link
Member Author

jbrichau commented Feb 4, 2024

@theseion Thanks for the feedback!

@jbrichau jbrichau merged commit 1a66633 into master Feb 4, 2024
24 checks passed
@jbrichau jbrichau deleted the temporaryfiles-gemstone branch February 4, 2024 14:20
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.

2 participants