Skip to content

Use standalone generate_user_id/generate_login_name#2001

Merged
davisagli merged 6 commits intomainfrom
plip-4292-fix-user-creation
Mar 23, 2026
Merged

Use standalone generate_user_id/generate_login_name#2001
davisagli merged 6 commits intomainfrom
plip-4292-fix-user-creation

Conversation

@jensens
Copy link
Copy Markdown
Member

@jensens jensens commented Mar 17, 2026

Part of PLIP 4292.

  • Use standalone functions from plone.app.users.utils instead of instantiating register form view
  • BBB fallback for older plone.app.users versions (Plone < 6.2)

Depends on: plone/plone.app.users#147


📚 Documentation preview 📚: https://plonerestapi--2001.org.readthedocs.build/

Replace register form view instantiation with direct calls to
standalone functions from plone.app.users.utils.
Includes BBB fallback for older plone.app.users versions.

Part of PLIP 4292.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mister-roboto
Copy link
Copy Markdown

@jensens thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

Comment thread news/4292.internal Outdated
Copy link
Copy Markdown
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run make format to fix the isort QA error

@jensens
Copy link
Copy Markdown
Member Author

jensens commented Mar 23, 2026

@jenkins-plone-org please run jobs

Comment thread src/plone/restapi/services/users/add.py Outdated
jensens and others added 2 commits March 23, 2026 17:06
Co-authored-by: Maurits van Rees <maurits@vanrees.org>
Lines 257-258 were missing indentation, causing syntax errors
that broke QA (pyupgrade, black, flake8) and coverage CI jobs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jensens
Copy link
Copy Markdown
Member Author

jensens commented Mar 23, 2026

@jenkins-plone-org please run jobs

@davisagli davisagli merged commit a7af396 into main Mar 23, 2026
17 checks passed
@davisagli davisagli deleted the plip-4292-fix-user-creation branch March 23, 2026 20:58
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.

4 participants