You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add functionality for editing organizations via admin (#18414)
* Add functionality for editing organizations via admin
- Add admin-specific OrganizationForm for editing organization details
- Update organization_detail view to handle GET/POST requests
- Implement inline editing in organization detail template
- Add proper permission controls (AdminOrganizationsWrite)
- Add comprehensive test coverage for form validation and view behavior
- Support staff and superusers can edit; moderators have read-only access
Co-authored-by: Claude <noreply@anthropic.com>
* Add tests for organization editing functionality
- Add tests for POST handling in organization_detail view
- Test successful organization updates
- Test validation errors on invalid form data
- Update existing tests to include form in response
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix POST method not allowed error for organization edit form
- Add require_methods=False to view_config decorators
- This follows the same pattern as other admin views like banner edit
- Allows the same view function to handle both GET and POST requests
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add Stripe customer updates to admin organization edit form
- Add IBillingService import and integration to organization_detail view
- Update Stripe customer when organization details are changed
- Add tests for Stripe customer synchronization
- Update existing tests to include billing service
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Use OrganizationType enum for orgtype field choices
- Replace hardcoded choices with dynamic enum values
- Follows pattern used in other forms (e.g., OrganizationMembershipSize)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add clickable link button next to organization URL input
- Wrap URL input in Bootstrap input-group with attached button
- Button opens organization URL in new tab with security attributes
- Preserves ability to edit URL while providing quick access to visit it
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Update warehouse/admin/templates/admin/organizations/detail.html
Co-authored-by: Mike Fiedler <miketheman@gmail.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Mike Fiedler <miketheman@gmail.com>
0 commit comments