-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
IR-2012 Update file system operation to promise API (Partial) #10189
base: dev
Are you sure you want to change the base?
Conversation
Thank you for your pull request and welcome to the Ethereal Engine developer community! We require contributors to sign our Copyright Assignment Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the agreement at https://forms.gle/15ENsSAJGKf2ozvB7 The agreement has not been signed by users: @jonathan-casarrubias. After signing the agreement, you can ask me to recheck this PR by posting |
1a8dc1e
to
95f64ee
Compare
Thank you for your pull request and welcome to the Ethereal Engine developer community! We require contributors to sign our Copyright Assignment Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the agreement at https://forms.gle/15ENsSAJGKf2ozvB7 The agreement has not been signed by users: @jonathan-casarrubias. After signing the agreement, you can ask me to recheck this PR by posting |
@cla-bot check |
Checking that all contributors to this PR are verified. |
0b4dc12
to
c13be94
Compare
f0c2db2
to
1351815
Compare
cb4fb1e
to
c0eda70
Compare
6c6e914
to
b4dbfaa
Compare
b4dbfaa
to
3a6688b
Compare
4eb3542
to
6232086
Compare
…e non blocking - Introduced writeFileAsync - Introduced cpAsync - Introduced existsAsync - Updated getFilesRecursive - Removed any sync helper - Replaced custom deleteRecursive call in favour of fpd.rm
6232086
to
3df0fef
Compare
Looking good now, I would like this QA'd on a deployment to make sure the builder and project installer works correctly |
Seemed to all work fine on QAT. |
converted to a draft just while it doesnt have checks passing |
Summary
Due the extensive use of file system operations I decided to approach this story by sending portions of each fs api migration with the objective of avoiding extensive and overwhelming code reviews as well as to reduce risk.
For this pull request I introduced writeFileAsync, existsAsync and deprecated deleteFolderRecursive.
I have completely replaced any writeFileSyncRecursive call for the new writeFileAsync.
I have completely replaced any deleteFolderRecursive call for the native node.js api fps.rmdir(path, { recursive: true })
I have partially replaced some fs.existsSync calls for the new existsAsync function, will continue replacing these calls in subsequent PRs
Subtasks Checklist
[x] Implement non-blocking writeFileAsync helper
[x] Implement non-blocking existsAsync helper
[x] Implement non-blocking cpAsync helper
[x] Replace deleteFolderRecursive helper in favour of native non-blocking fps.rmdir function
Breaking Changes
N/A
References
JIRA Ticket IR-2012
QA Steps
Already modified tests using new non-blocking APIs should still pass
npm run test