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

feat(remix-node): add getFilePath& remove methods to NodeOnDiskFile #3034

Closed
wants to merge 2 commits into from
Closed

Conversation

cstrnt
Copy link

@cstrnt cstrnt commented Apr 30, 2022

Closes: #3021

  • Docs
  • Tests

Testing Strategy:

  • Added a test script in the remix-node package (remix-node tests never ran before)
  • Added a simple unit test for the createFileUploadHandler function

@cstrnt
Copy link
Author

cstrnt commented Jul 6, 2022

@kentcdodds @ryanflorence @mjackson any chance you could take a look at this at some time?

@machour
Copy link
Collaborator

machour commented Jul 6, 2022

@cstrnt can you fix conflicts? That would help for the review

@cstrnt
Copy link
Author

cstrnt commented Jul 6, 2022

@machour sure thing, PR sat around for some time lol

@MichaelDeBoey MichaelDeBoey changed the title feat(node): add remove() and getFilePath() methods to NodeOnDiskFile feat(remix-node): add getFilePath& remove methods to NodeOnDiskFile Jul 6, 2022
@MichaelDeBoey MichaelDeBoey added runtime:node needs-response We need a response from the original author about this issue/PR labels Jul 6, 2022
packages/remix-node/package.json Outdated Show resolved Hide resolved
@remix-cla-bot
Copy link
Contributor

remix-cla-bot bot commented Jul 7, 2022

Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳

@MichaelDeBoey
Copy link
Member

MichaelDeBoey commented Jul 7, 2022

@cstrnt It seems like something went wrong when rebasing, could you please have a look?

@cstrnt
Copy link
Author

cstrnt commented Jul 7, 2022

@MichaelDeBoey I'm lost in rebase hell lol

@cstrnt cstrnt closed this Jul 7, 2022
@cstrnt cstrnt reopened this Jul 7, 2022
@cstrnt cstrnt closed this Jul 7, 2022
@cstrnt cstrnt reopened this Jul 7, 2022
@cstrnt cstrnt requested a review from MichaelDeBoey July 7, 2022 11:36
@cstrnt
Copy link
Author

cstrnt commented Jul 8, 2022

The one failing test doesn't correlate to my code at all. Is it known to be a flaky one?

@kentcdodds
Copy link
Member

Can you help me understand what the use case for this change is?

@machour
Copy link
Collaborator

machour commented Jul 8, 2022

@kentcdodds from the related discussion #3021

I'm currently fiddling around with Remix and while using unstable_createFileUploadHandler I've noticed that the filePath property on a NodeOnDiskFile is private. I don't think that this is really useful because I want to do some cleanup after using the file.

If it's better to keep the filePath property private, I think it would be nice to add a function called remove or cleanup that unlinks the file in the filesystem.

@kentcdodds
Copy link
Member

Got it. I'll put this on @mjackson's plate 👍

@cstrnt
Copy link
Author

cstrnt commented Aug 4, 2022

@kentcdodds @mjackson small reminder 🤔

@changeset-bot
Copy link

changeset-bot bot commented Aug 4, 2022

⚠️ No Changeset found

Latest commit: 5efef9a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kentcdodds
Copy link
Member

Sorry, we've been very busy with other priorities. We'll get to this eventually. Thank you for your patience.

@MichaelDeBoey MichaelDeBoey removed the needs-response We need a response from the original author about this issue/PR label Aug 5, 2022
@cstrnt
Copy link
Author

cstrnt commented Aug 10, 2022

I’m deeply sorry, but I don’t feel like supporting a project led by such toxic lead maintainers

@cstrnt cstrnt closed this Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants