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(GGs): implement moving and renaming of files and directories #896

Conversation

dcshzj
Copy link
Contributor

@dcshzj dcshzj commented Aug 14, 2023

⚠️ Note: This PR will only be rebased after #892 and #894 are merged ⚠️

Problem

Closes IS-402.

Solution

Breaking Changes

  • Yes - this PR contains breaking changes
  • No - this PR is backwards compatible

Features:

  • The moving and renaming of files and directories functionality has been implemented as renameSinglePath or moveFiles.
  • The existing functionality for moving files by deleting then creating has been retained temporarily. The refactoring can be left for later.

Tests

  1. Unit tests

Deploy Notes

None

@dcshzj dcshzj requested a review from a team August 14, 2023 07:08
src/routes/v2/authenticatedSites/index.js Show resolved Hide resolved
src/services/db/GitFileSystemService.ts Show resolved Hide resolved
src/services/db/GitFileSystemService.ts Show resolved Hide resolved
src/services/db/GitFileSystemService.ts Show resolved Hide resolved
src/services/db/GitFileSystemService.ts Outdated Show resolved Hide resolved
const c = logFields as DefaultLogFields
return (
!!logFields &&
typeof logFields === "object" &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit & non-blocking: we should use c in line 43 & 44 instead of logFields since it was already casted to c in line 41

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do separately in a hotfix PR

Copy link
Contributor

@QiluXie QiluXie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dcshzj dcshzj force-pushed the IS-402-write-extend-repo-service-to-support-update-tree-and-update-repo-state-for-renames-and-moves branch from 2f88ef3 to 93abaf0 Compare August 15, 2023 10:22
@dcshzj dcshzj merged commit 031cb24 into develop Aug 15, 2023
@mergify mergify bot deleted the IS-402-write-extend-repo-service-to-support-update-tree-and-update-repo-state-for-renames-and-moves branch August 15, 2023 11:12
@kishore03109 kishore03109 mentioned this pull request Aug 16, 2023
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.

4 participants