Skip to content
Snippets Groups Projects

Ensure renaming deletes old indexed file

Merged Dylan Griffith requested to merge 33255-handle-renames-correctly into master
All threads resolved!

As per gitlab#33255 (closed)

This MR makes 2 changes:

  1. Minor refactoring to use put,del instead of ins,mod,del since mod wasn't doing anything different to ins and since I think the name put is a clearer indication of the fact that it will overwrite an existing file unlike ins which may make it seem like it will alway create something new
  2. Fixes the bug where renames weren't correctly deleting the old file

It's also worth noting that this will ensure new renames are handled properly there will still be orphaned files from previous renames that won't get cleaned up by this. We may wish to handle that properly too but probably in a separate MR or migration as it's quite tricky. If anyone was really concerned they can always reindex from scratch too.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @DylanGriffith and unassigned @nick.thomas

  • Nick Thomas mentioned in merge request !39 (merged)

    mentioned in merge request !39 (merged)

  • Dylan Griffith added 2 commits

    added 2 commits

    Compare with previous version

  • Dylan Griffith added 1 commit

    added 1 commit

    • a2c6b632 - Refactor EachFileChange remove duplication

    Compare with previous version

  • @nick.thomas would you mind giving this another look.

  • Dylan Griffith changed milestone to %12.4

    changed milestone to %12.4

  • Nick Thomas
  • Nick Thomas resolved all threads

    resolved all threads

  • merged

  • Nick Thomas mentioned in commit 9848f5a3

    mentioned in commit 9848f5a3

  • mentioned in issue #39 (closed)

  • Dylan Griffith changed title from Handle renames correctly to Ensure renaming deletes old indexed file

    changed title from Handle renames correctly to Ensure renaming deletes old indexed file

  • 🤖 GitLab Bot 🤖 changed the description

    changed the description

  • added devopsdata stores label and removed devopssystems label

  • Please register or sign in to reply
    Loading