Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F File Repository
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • File Repository
  • Merge requests
  • !55

Renaming folders

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Matija Obreza requested to merge renaming-folders into main Nov 03, 2021
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Added test to ensure folder renames work properly.

I got this exception when trying to rename a folder:

Cannot delete or update a parent row: a foreign key constraint fails
  (`genesys202108`.`repository_gallery`, CONSTRAINT `FK_trk7cw1r3dsxgu8jlia1ecrgk` FOREIGN KEY (`folder_id`) REFERENCES `repository_folder` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION)
  1. It should not try to remove the existing gallery.
  2. Gallery paths need to be updated.
  3. I'm sure you can come up with additional tests.
Edited Nov 03, 2021 by Matija Obreza
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: renaming-folders