Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Document: a component cannot be placed inside its own subtree (422)

Open Beginner friendly
#259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Domain
documentation

Research direction

Start with the API component positions and component groups pages under content/4.api/, then check how those pages describe writes and validation errors. Document the listed 422 cases, including draft and published components, allowed sharing, and existing cycles; done when the pages explain each behavior and its stated scope.

Written by the indexing model from the issue text.

Description

The API bundle now refuses any write that would place a component inside its own subtree (components-web-app/api-components-bundle#503, fixes components-web-app/api-components-bundle#502).

Please document under the API component positions and component groups pages (content/4.api/):

  • A ComponentPosition whose component contains the target componentGroup, at any depth, is a 422 with a violation on component: "The component cannot be placed in the component group <reference>: the group is inside the component." This applies to POST /_/component_positions, a PATCH of a position's component or componentGroup, and positions embedded in a component write (componentPositions[i].component).
  • Giving a ComponentGroup an owner (components) from inside that group's own subtree is a 422 on components: "The component group <reference> cannot be owned by a component inside it."
  • A published component and its draft count as one component, so placing a container's draft inside the published container (or the reverse) is refused too.
  • Sharing one component in several places (for example, two sibling containers) is still allowed. Only a path back to itself is refused.
  • Existing positions are not re-checked when unrelated fields change, so content already holding a cycle (from fixtures or SQL) can still be read and edited. Reads (security voter, manifest) terminate on it.

The module side (disabling the option with a reason before sending) is cwa-nuxt-module#157.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
1h 20m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from components-web-app/docs

All issues in components-web-app/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.