Shopify / Shopify/theme-tools

Renaming a section group should update references to that section group

Open
#548 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:language-server enhancement
Dominant language
TypeScript
Stars
234
Forks
92
Avg merge
1d 3h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
Follow up of #412, when a sections/*.json file is renamed, we should update references to it.

Describe the solution you'd like
When a sections/*.json file is renamed,

  • Update {% sections 'oldName' %} to {% sections 'newName' %}
  • Update the parent field of contextualized section group files.
  • ???

Additional context
https://shopify.dev/docs/storefronts/themes/architecture/section-groups

Contributor guide

Open the contributing guide

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 tracing how renaming a sections/*.json file is handled and how {% sections 'oldName' %} references and contextualized section group parent fields are represented. Review the section-groups architecture documentation linked in the issue, then identify the remaining reference forms covered by the requested “???”. Done means all affected references are updated consistently after a rename.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.