Skip to content

Override restapi post to normalize the id#156

Open
daniele-andreotti wants to merge 3 commits into
masterfrom
override_restapi_post_to_normalize_id
Open

Override restapi post to normalize the id#156
daniele-andreotti wants to merge 3 commits into
masterfrom
override_restapi_post_to_normalize_id

Conversation

@daniele-andreotti
Copy link
Copy Markdown
Contributor

When creating a content via restapi is possible to set the short name with spaces or other invalid chars. This PR overrides restapi POST to normalize the content id before creation. A further check on existing alias is also made by using the method defined by redturtle.volto namechooser.

@daniele-andreotti daniele-andreotti requested a review from mamico May 26, 2026 13:06
@daniele-andreotti daniele-andreotti self-assigned this May 26, 2026
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 26453363361

Coverage increased (+0.3%) to 70.796%

Details

  • Coverage increased (+0.3%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (20 of 21 lines covered, 95.24%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
src/redturtle/volto/restapi/services/content/add.py 21 20 95.24%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2010
Covered Lines: 1423
Line Coverage: 70.8%
Coverage Strength: 1.42 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants