SSWConsulting / SSWConsulting/SSW.Website

📄Migration Script - fix migration script saving files in different folders under root directory

Open
#2,472 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
14
Forks
10
Avg merge
13h 51m
Merged PRs (30d)
38

Description

@wicksipedia

CC: @Harry-Ross

Description

The migration script will overwrite files with the same name stored in different subdirectories because it saves most of the files to root. This issue seems to occur when the migration script attempts to save a file with a relative directory. The script doesn't seem to have enough context to understand that the file is contained within a different subdirectory (i.e. the current route on the server).

Tasks
  • Investigate
  • Update migration to save images in their respective directories rather than under root
Note

This issue seems to be exclusive to images with paths like <directory>/<subdirectory> rather than paths like ./<directory>/<subdirectory> or <domainname>/<directory>.

Screenshot

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the migration script and reproduce the behavior with image paths such as /, comparing them with .// and /. Trace how relative paths are resolved and saved; done means images with the same filename remain in their respective directories instead of being overwritten under root.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.