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

Consider avoiding adding suffixes to files in MemoryStorageClient #2710

Open
janbuchar opened this issue Oct 14, 2024 · 9 comments
Open

Consider avoiding adding suffixes to files in MemoryStorageClient #2710

janbuchar opened this issue Oct 14, 2024 · 9 comments
Labels
debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team.
Milestone

Comments

@janbuchar
Copy link
Contributor

There is currently an automagic mechanism that stores binary files with a ".bin" extension and text files with a ".txt" extension. Is the comfort for Windows users worth the complexity?

@janbuchar janbuchar added the debt Code quality improvement or decrease of technical debt. label Oct 14, 2024
@janbuchar janbuchar added this to the 4.0 milestone Oct 14, 2024
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 14, 2024
@janbuchar
Copy link
Contributor Author

This surprised us in apify/crawlee-python#572

@vladfrangu
Copy link
Member

If memory serves me right I did this to make it similar to what the API does. That said my memory is rusty so take with a pinch of salt

@B4nan
Copy link
Member

B4nan commented Oct 14, 2024

I also believe this is about behaving the same as the platform/API, and we surely want this to behave the same as the apify client.

@janbuchar
Copy link
Contributor Author

Could you elaborate what the API does? 🙂 I tried adding a key with no content type and it got stored just like that, no extension out of nowhere

@vladfrangu
Copy link
Member

Can you check what the platform does when downloading such a file?

@janbuchar
Copy link
Contributor Author

If you mean this,
image

it downloads the file with no suffix

@vladfrangu
Copy link
Member

hmm, then it might've just been a port from old-but-still-alive local storage 😓

@B4nan
Copy link
Member

B4nan commented Oct 14, 2024

Better to open this on slack, i am not opposed to changing this, but it would be great to first understand why it was like that (and I doubt anyone from our team will know).

@vladfrangu
Copy link
Member

4 years ago 🥲
Google Chrome Beta - 2024-10-14 at 16 21 36@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Code quality improvement or decrease of technical debt. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

3 participants