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

Fix: handle updating of files in root directory #761

Merged
merged 1 commit into from
May 9, 2023

Conversation

alexanderleegs
Copy link
Contributor

This PR fixes a bug in our update behaviour - we were previously checking that the directory a file was in exists before making any update call, but this was failing for our root directory. This PR skips the check if the file belongs to our root directory. Note that Create does not need to have this same behaviour - we never create files inside our root folder.

@alexanderleegs alexanderleegs merged commit a2fec7b into develop May 9, 2023
@mergify mergify bot deleted the fix/handle-update-in-root-directory branch May 9, 2023 01:59
@alexanderleegs alexanderleegs mentioned this pull request May 9, 2023
alexanderleegs added a commit that referenced this pull request May 9, 2023
* fix: close pull request (#751)

* Fix: publish button delay (#752)

* Fix: publish button delay

* Fix: tests

* Fix: move review request status check into router

* feat: return sites from db for email login (#754)

* feat: return sites from db for email login

* fix: tests

* fix: use lodash function for type guard

* fix(githhub service): get call to github to prevent race condition (#756)

* fix(githhub service): get call to github to prevent race condition

* fix(github service): throw error if directory name not defined

* style(github service): add comments for clarity

* fix: tests

---------

Co-authored-by: Alexander Lee <alexander@open.gov.sg>

* Fix: handle updating of files in root directory (#761)

* fix: create .keep first when rename subfolder (#762)

* 0.26.0

---------

Co-authored-by: seaerchin <44049504+seaerchin@users.noreply.github.com>
Co-authored-by: Alexander Lee <alexander@open.gov.sg>
Co-authored-by: Harish <harish@open.gov.sg>
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