paperless-ngx/docs
copilot-swe-agent[bot] e9d64e6aac refactor: Apply code review improvements to AI suggestions API
- Remove unused imports (Document from serializers, override_settings from tests)
- Add explanatory comments to all empty except clauses
- Create SUGGESTION_TYPE_CHOICES constant and SuggestionSerializerMixin for DRY
- Implement type-specific validation (value_id for ID types, value_text for text types)
- Remove redundant Document.DoesNotExist handler (already handled by DRF)
- Optimize ai_suggestion_stats query (21 queries → 3 queries using aggregation)
- Update documentation to clarify unsupported custom_field/workflow in apply endpoint

Addresses all 14 code review comments from Copilot PR reviewer.

Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com>
2025-11-13 08:22:57 +00:00
..
assets Documentation: fix docs index page on mobile (#8035) 2024-10-26 11:36:40 -07:00
administration.md Documentation: fix cache invalidation command in documentation (#10665) 2025-08-23 04:00:02 -07:00
advanced_usage.md Enhancement: jinja template support for workflow title assignment (#10700) 2025-09-11 06:56:16 -07:00
api.md Enhancement: support custom field values on post document (#10859) 2025-09-17 22:42:06 +00:00
API_AI_SUGGESTIONS.md refactor: Apply code review improvements to AI suggestions API 2025-11-13 08:22:57 +00:00
changelog.md Changelog v2.19.5 - GHA (#11305) 2025-11-06 13:01:52 -08:00
configuration.md Documentation: correct info re PAPERLESS_THREADS_PER_WORKER (#11031) 2025-10-18 23:01:28 +00:00
development.md Development: devcontainer fixes for Windows (#10843) 2025-09-17 16:16:58 +00:00
faq.md Update faq 2025-04-10 20:25:16 -07:00
index.md Documentation: copy-edits (#10417) 2025-07-20 17:27:04 +00:00
setup.md Documentation: copy-edits (#10417) 2025-07-20 17:27:04 +00:00
troubleshooting.md Documentation: fix typo in troubleshooting docs (#10643) 2025-08-20 13:25:42 -07:00
usage.md Feature: Advanced Workflow Trigger Filters (#11029) 2025-10-13 22:23:56 +00:00