mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-17 11:21:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3021c36a5 | ||
|
|
54b450d69f | ||
|
|
371d6041fa | ||
|
|
0f063a0155 | ||
|
|
73834aa49f | ||
|
|
c3fa454ffa | ||
|
|
bfd0d7fe36 | ||
|
|
48c7a11195 | ||
|
|
9ba98d1cb3 | ||
|
|
de75249e51 | ||
|
|
28bb63824f | ||
|
|
64bf7f8457 | ||
|
|
c177c13acf |
No files matched your search
+7
-7
@@ -285,14 +285,14 @@ The API supports various bulk-editing operations which are executed asynchronous
|
|||||||
|
|
||||||
### Documents
|
### Documents
|
||||||
|
|
||||||
Document bulk operations return `{"result":"OK","task_id":"…"}` when queued.
|
Document bulk operations, including the dedicated document action endpoints, return
|
||||||
Check `/api/tasks/?task_id={uuid}` for the outcome, including any follow-up processing,
|
`{"result":"OK","task_id":"…"}` when queued. Use `/api/tasks/?task_id={uuid}`
|
||||||
deletion, or recovery. Failed operations may leave partial changes applied.
|
to check the task outcome. Actions that create or reprocess files may start further
|
||||||
|
consumption or reprocessing tasks and completion of the bulk task means those tasks
|
||||||
|
were scheduled, not that their file processing has finished.
|
||||||
|
|
||||||
For operations with child tasks, `result_data` includes `succeeded_count` and
|
For bulk operations on documents, use the endpoint `/api/documents/bulk_edit/` which accepts
|
||||||
`failed_count` (task counts). Merges report skipped inputs in `failed_document_ids`.
|
a json payload of the format:
|
||||||
|
|
||||||
The `/api/documents/bulk_edit/` endpoint accepts:
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,97 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## paperless-ngx 3.5.0
|
||||||
|
|
||||||
|
### Features / Enhancements
|
||||||
|
|
||||||
|
- Chorehancement: move all bulk operations to async hand-off [@shamoon](https://github.com/shamoon) ([#14773](https://github.com/paperless-ngx/paperless-ngx/pull/14773))
|
||||||
|
- Enhancement: render document notes as markdown [@zwif](https://github.com/zwif) ([#14626](https://github.com/paperless-ngx/paperless-ngx/pull/14626))
|
||||||
|
- Feature: manual workflow trigger [@shamoon](https://github.com/shamoon) ([#14704](https://github.com/paperless-ngx/paperless-ngx/pull/14704))
|
||||||
|
- Enhancement: make bulk metadata operations run async [@shamoon](https://github.com/shamoon) ([#14711](https://github.com/paperless-ngx/paperless-ngx/pull/14711))
|
||||||
|
- Fixhancement: add automatic clearing of sessions [@shamoon](https://github.com/shamoon) ([#14722](https://github.com/paperless-ngx/paperless-ngx/pull/14722))
|
||||||
|
- Tweak: chat reference tweaks [@shamoon](https://github.com/shamoon) ([#14723](https://github.com/paperless-ngx/paperless-ngx/pull/14723))
|
||||||
|
- Fixhancement: rework saved view widget queue processing to expected [@shamoon](https://github.com/shamoon) ([#14699](https://github.com/paperless-ngx/paperless-ngx/pull/14699))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fix: use a constant password mask and consolidate the no-change check [@stumpylog](https://github.com/stumpylog) ([#14784](https://github.com/paperless-ngx/paperless-ngx/pull/14784))
|
||||||
|
- Fix: use a PostgreSQL-compatible regex for scheduled workflow filename filters [@stumpylog](https://github.com/stumpylog) ([#14783](https://github.com/paperless-ngx/paperless-ngx/pull/14783))
|
||||||
|
- Fix: get users for saved view create dialog [@shamoon](https://github.com/shamoon) ([#14769](https://github.com/paperless-ngx/paperless-ngx/pull/14769))
|
||||||
|
- Fix: Allow AI chat filters over more than 32700 documents [@stumpylog](https://github.com/stumpylog) ([#14754](https://github.com/paperless-ngx/paperless-ngx/pull/14754))
|
||||||
|
- Fix: Enforce CRLF when writing an email message to the file [@stumpylog](https://github.com/stumpylog) ([#14745](https://github.com/paperless-ngx/paperless-ngx/pull/14745))
|
||||||
|
- Fix: restore image without archive version thumbnail generation [@shamoon](https://github.com/shamoon) ([#14741](https://github.com/paperless-ngx/paperless-ngx/pull/14741))
|
||||||
|
- Fix: Blacklist certain OCR user arguments that paperless itself uses [@stumpylog](https://github.com/stumpylog) ([#14734](https://github.com/paperless-ngx/paperless-ngx/pull/14734))
|
||||||
|
- Fix: remove redundant ui task text filters [@shamoon](https://github.com/shamoon) ([#14736](https://github.com/paperless-ngx/paperless-ngx/pull/14736))
|
||||||
|
- Fix: fix allowed\_hosts default [@shamoon](https://github.com/shamoon) ([#14735](https://github.com/paperless-ngx/paperless-ngx/pull/14735))
|
||||||
|
- Fixhancement: add automatic clearing of sessions [@shamoon](https://github.com/shamoon) ([#14722](https://github.com/paperless-ngx/paperless-ngx/pull/14722))
|
||||||
|
- Fix: two dropdown-related UI fixes [@shamoon](https://github.com/shamoon) ([#14717](https://github.com/paperless-ngx/paperless-ngx/pull/14717))
|
||||||
|
- Fix: use filtered documents for statistics ASN max [@shamoon](https://github.com/shamoon) ([#14710](https://github.com/paperless-ngx/paperless-ngx/pull/14710))
|
||||||
|
- Fix: make config view permissions consistent [@shamoon](https://github.com/shamoon) ([#14709](https://github.com/paperless-ngx/paperless-ngx/pull/14709))
|
||||||
|
- Fix: release the LLM index read lock before streaming the chat answer [@stumpylog](https://github.com/stumpylog) ([#14674](https://github.com/paperless-ngx/paperless-ngx/pull/14674))
|
||||||
|
- Fix: retrieve once per document chat question [@stumpylog](https://github.com/stumpylog) ([#14673](https://github.com/paperless-ngx/paperless-ngx/pull/14673))
|
||||||
|
- Fixhancement: rework saved view widget queue processing to expected [@shamoon](https://github.com/shamoon) ([#14699](https://github.com/paperless-ngx/paperless-ngx/pull/14699))
|
||||||
|
- Fix: apply PDF/A conversion once for mail archives [@shamoon](https://github.com/shamoon) ([#14698](https://github.com/paperless-ngx/paperless-ngx/pull/14698))
|
||||||
|
- Fix default MFA trusted AMR setting [@shamoon](https://github.com/shamoon) ([#14693](https://github.com/paperless-ngx/paperless-ngx/pull/14693))
|
||||||
|
- Fix: check descendant tag permissions on delete [@shamoon](https://github.com/shamoon) ([#14687](https://github.com/paperless-ngx/paperless-ngx/pull/14687))
|
||||||
|
- Fix: lock rows for first-user signup [@shamoon](https://github.com/shamoon) ([#14688](https://github.com/paperless-ngx/paperless-ngx/pull/14688))
|
||||||
|
- Fix: prevent ID badge wrapping under title on mobile [@shamoon](https://github.com/shamoon) ([#14682](https://github.com/paperless-ngx/paperless-ngx/pull/14682))
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
|
||||||
|
- Chore(deps): Bump the actions group across 1 directory with 17 updates @[dependabot[bot]](https://github.com/apps/dependabot) ([#14691](https://github.com/paperless-ngx/paperless-ngx/pull/14691))
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>4 changes</summary>
|
||||||
|
|
||||||
|
- Chore(deps): Bump the pre-commit-dependencies group with 4 updates @[dependabot[bot]](https://github.com/apps/dependabot) ([#14636](https://github.com/paperless-ngx/paperless-ngx/pull/14636))
|
||||||
|
- Chore(deps): Bump the actions group across 1 directory with 17 updates @[dependabot[bot]](https://github.com/apps/dependabot) ([#14691](https://github.com/paperless-ngx/paperless-ngx/pull/14691))
|
||||||
|
- docker(deps): bump astral-sh/uv from 0.13.5-python3.14-trixie-slim to 0.13.7-python3.14-trixie-slim @[dependabot[bot]](https://github.com/apps/dependabot) ([#14635](https://github.com/paperless-ngx/paperless-ngx/pull/14635))
|
||||||
|
- chore(deps): bump django-allauth to 65.21.1 [@stumpylog](https://github.com/stumpylog) ([#14672](https://github.com/paperless-ngx/paperless-ngx/pull/14672))
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### All App Changes
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>32 changes</summary>
|
||||||
|
|
||||||
|
- Chorehancement: move all bulk operations to async hand-off [@shamoon](https://github.com/shamoon) ([#14773](https://github.com/paperless-ngx/paperless-ngx/pull/14773))
|
||||||
|
- Fix: use a constant password mask and consolidate the no-change check [@stumpylog](https://github.com/stumpylog) ([#14784](https://github.com/paperless-ngx/paperless-ngx/pull/14784))
|
||||||
|
- Fix: use a PostgreSQL-compatible regex for scheduled workflow filename filters [@stumpylog](https://github.com/stumpylog) ([#14783](https://github.com/paperless-ngx/paperless-ngx/pull/14783))
|
||||||
|
- Fix: get users for saved view create dialog [@shamoon](https://github.com/shamoon) ([#14769](https://github.com/paperless-ngx/paperless-ngx/pull/14769))
|
||||||
|
- Enhancement: render document notes as markdown [@zwif](https://github.com/zwif) ([#14626](https://github.com/paperless-ngx/paperless-ngx/pull/14626))
|
||||||
|
- Feature: manual workflow trigger [@shamoon](https://github.com/shamoon) ([#14704](https://github.com/paperless-ngx/paperless-ngx/pull/14704))
|
||||||
|
- Fix: Allow AI chat filters over more than 32700 documents [@stumpylog](https://github.com/stumpylog) ([#14754](https://github.com/paperless-ngx/paperless-ngx/pull/14754))
|
||||||
|
- Fix: Enforce CRLF when writing an email message to the file [@stumpylog](https://github.com/stumpylog) ([#14745](https://github.com/paperless-ngx/paperless-ngx/pull/14745))
|
||||||
|
- Enhancement: make bulk metadata operations run async [@shamoon](https://github.com/shamoon) ([#14711](https://github.com/paperless-ngx/paperless-ngx/pull/14711))
|
||||||
|
- Performance: load a cached Hugging Face embedding model without contacting the Hub [@stumpylog](https://github.com/stumpylog) ([#14728](https://github.com/paperless-ngx/paperless-ngx/pull/14728))
|
||||||
|
- Fix: restore image without archive version thumbnail generation [@shamoon](https://github.com/shamoon) ([#14741](https://github.com/paperless-ngx/paperless-ngx/pull/14741))
|
||||||
|
- Fix: Blacklist certain OCR user arguments that paperless itself uses [@stumpylog](https://github.com/stumpylog) ([#14734](https://github.com/paperless-ngx/paperless-ngx/pull/14734))
|
||||||
|
- Fix: remove redundant ui task text filters [@shamoon](https://github.com/shamoon) ([#14736](https://github.com/paperless-ngx/paperless-ngx/pull/14736))
|
||||||
|
- Fix: fix allowed\_hosts default [@shamoon](https://github.com/shamoon) ([#14735](https://github.com/paperless-ngx/paperless-ngx/pull/14735))
|
||||||
|
- Fixhancement: add automatic clearing of sessions [@shamoon](https://github.com/shamoon) ([#14722](https://github.com/paperless-ngx/paperless-ngx/pull/14722))
|
||||||
|
- Tweak: chat reference tweaks [@shamoon](https://github.com/shamoon) ([#14723](https://github.com/paperless-ngx/paperless-ngx/pull/14723))
|
||||||
|
- Fix: two dropdown-related UI fixes [@shamoon](https://github.com/shamoon) ([#14717](https://github.com/paperless-ngx/paperless-ngx/pull/14717))
|
||||||
|
- Fix: use filtered documents for statistics ASN max [@shamoon](https://github.com/shamoon) ([#14710](https://github.com/paperless-ngx/paperless-ngx/pull/14710))
|
||||||
|
- Fix: make config view permissions consistent [@shamoon](https://github.com/shamoon) ([#14709](https://github.com/paperless-ngx/paperless-ngx/pull/14709))
|
||||||
|
- Performance: stop embedding every document ID in selection\_data queries [@stumpylog](https://github.com/stumpylog) ([#14597](https://github.com/paperless-ngx/paperless-ngx/pull/14597))
|
||||||
|
- Performance: replace django-treenode with adjacency-list tags [@shamoon](https://github.com/shamoon) ([#14612](https://github.com/paperless-ngx/paperless-ngx/pull/14612))
|
||||||
|
- Performance: use small vec0 chunks and larger pages for the LLM index [@stumpylog](https://github.com/stumpylog) ([#14678](https://github.com/paperless-ngx/paperless-ngx/pull/14678))
|
||||||
|
- Fix: release the LLM index read lock before streaming the chat answer [@stumpylog](https://github.com/stumpylog) ([#14674](https://github.com/paperless-ngx/paperless-ngx/pull/14674))
|
||||||
|
- Fix: retrieve once per document chat question [@stumpylog](https://github.com/stumpylog) ([#14673](https://github.com/paperless-ngx/paperless-ngx/pull/14673))
|
||||||
|
- Fixhancement: rework saved view widget queue processing to expected [@shamoon](https://github.com/shamoon) ([#14699](https://github.com/paperless-ngx/paperless-ngx/pull/14699))
|
||||||
|
- Fix: apply PDF/A conversion once for mail archives [@shamoon](https://github.com/shamoon) ([#14698](https://github.com/paperless-ngx/paperless-ngx/pull/14698))
|
||||||
|
- Fix default MFA trusted AMR setting [@shamoon](https://github.com/shamoon) ([#14693](https://github.com/paperless-ngx/paperless-ngx/pull/14693))
|
||||||
|
- Fix: check descendant tag permissions on delete [@shamoon](https://github.com/shamoon) ([#14687](https://github.com/paperless-ngx/paperless-ngx/pull/14687))
|
||||||
|
- Fix: lock rows for first-user signup [@shamoon](https://github.com/shamoon) ([#14688](https://github.com/paperless-ngx/paperless-ngx/pull/14688))
|
||||||
|
- Fix: prevent ID badge wrapping under title on mobile [@shamoon](https://github.com/shamoon) ([#14682](https://github.com/paperless-ngx/paperless-ngx/pull/14682))
|
||||||
|
- chore(deps): bump django-allauth to 65.21.1 [@stumpylog](https://github.com/stumpylog) ([#14672](https://github.com/paperless-ngx/paperless-ngx/pull/14672))
|
||||||
|
- chore(deps): bump dev tooling [@stumpylog](https://github.com/stumpylog) ([#14671](https://github.com/paperless-ngx/paperless-ngx/pull/14671))
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## paperless-ngx 3.4.2
|
## paperless-ngx 3.4.2
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "paperless-ngx"
|
name = "paperless-ngx"
|
||||||
version = "3.4.2"
|
version = "3.5.0"
|
||||||
description = """\
|
description = """\
|
||||||
A community-supported supercharged document management system: scan, index and archive all your physical documents\
|
A community-supported supercharged document management system: scan, index and archive all your physical documents\
|
||||||
"""
|
"""
|
||||||
|
|||||||
+490
-249
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paperless-ngx-ui",
|
"name": "paperless-ngx-ui",
|
||||||
"version": "3.4.2",
|
"version": "3.5.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
|
|||||||
@@ -186,7 +186,9 @@ export class AppFrameComponent
|
|||||||
)
|
)
|
||||||
.subscribe((result) => {
|
.subscribe((result) => {
|
||||||
this.documentList.reload(null, false)
|
this.documentList.reload(null, false)
|
||||||
this.documentList.reduceSelectionToFilter()
|
if (!this.documentList.allSelected) {
|
||||||
|
this.documentList.reduceSelectionToFilter()
|
||||||
|
}
|
||||||
// maybe someday we can optimize to only refresh affected documents
|
// maybe someday we can optimize to only refresh affected documents
|
||||||
this.openDocumentsService.getOpenDocuments().forEach((doc) => {
|
this.openDocumentsService.getOpenDocuments().forEach((doc) => {
|
||||||
this.openDocumentsService.refreshDocument(doc.id)
|
this.openDocumentsService.refreshDocument(doc.id)
|
||||||
|
|||||||
@@ -718,7 +718,6 @@ describe('BulkEditorComponent', () => {
|
|||||||
'Workflow will run on the selected documents in the background.'
|
'Workflow will run on the selected documents in the background.'
|
||||||
)
|
)
|
||||||
expect(toast.mock.calls.at(-1)[0].actionName).toBeUndefined()
|
expect(toast.mock.calls.at(-1)[0].actionName).toBeUndefined()
|
||||||
expect(documentListViewService.selected.size).toBe(0)
|
|
||||||
httpTestingController.match(
|
httpTestingController.match(
|
||||||
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true`
|
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true`
|
||||||
) // list reload
|
) // list reload
|
||||||
@@ -1283,6 +1282,7 @@ describe('BulkEditorComponent', () => {
|
|||||||
) // listAllFilteredIds
|
) // listAllFilteredIds
|
||||||
|
|
||||||
component.showConfirmationDialogs = false
|
component.showConfirmationDialogs = false
|
||||||
|
documentListViewService.collectionSize = 2
|
||||||
fixture.detectChanges()
|
fixture.detectChanges()
|
||||||
jest
|
jest
|
||||||
.spyOn(documentListViewService, 'allSelected', 'get')
|
.spyOn(documentListViewService, 'allSelected', 'get')
|
||||||
@@ -1293,7 +1293,7 @@ describe('BulkEditorComponent', () => {
|
|||||||
)
|
)
|
||||||
req.flush({ result: 'OK', task_id: 'delete-2' })
|
req.flush({ result: 'OK', task_id: 'delete-2' })
|
||||||
// ids aren't known when all matching documents are selected, so no undo
|
// ids aren't known when all matching documents are selected, so no undo
|
||||||
expect(trackSpy).toHaveBeenLastCalledWith('delete-2', 0, null)
|
expect(trackSpy).toHaveBeenLastCalledWith("delete-2", 2, null)
|
||||||
httpTestingController.match(
|
httpTestingController.match(
|
||||||
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true`
|
`${environment.apiBaseUrl}documents/?page=1&page_size=50&ordering=-created&truncate_content=true&include_selection_data=true`
|
||||||
) // list reload
|
) // list reload
|
||||||
@@ -1492,7 +1492,6 @@ describe('BulkEditorComponent', () => {
|
|||||||
httpTestingController.match(
|
httpTestingController.match(
|
||||||
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
||||||
) // listAllFilteredIds
|
) // listAllFilteredIds
|
||||||
expect(documentListViewService.selected.size).toEqual(0)
|
|
||||||
|
|
||||||
// Test with archiveFallback enabled
|
// Test with archiveFallback enabled
|
||||||
modal.componentInstance.deleteOriginals.set(false)
|
modal.componentInstance.deleteOriginals.set(false)
|
||||||
@@ -1514,7 +1513,6 @@ describe('BulkEditorComponent', () => {
|
|||||||
httpTestingController.match(
|
httpTestingController.match(
|
||||||
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
||||||
) // listAllFilteredIds
|
) // listAllFilteredIds
|
||||||
expect(documentListViewService.selected.size).toEqual(0)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should support merging documents as versions', () => {
|
it('should support merging documents as versions', () => {
|
||||||
@@ -1562,7 +1560,6 @@ describe('BulkEditorComponent', () => {
|
|||||||
httpTestingController.match(
|
httpTestingController.match(
|
||||||
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
`${environment.apiBaseUrl}documents/?page=1&page_size=100000&fields=id`
|
||||||
)
|
)
|
||||||
expect(documentListViewService.selected.size).toEqual(0)
|
|
||||||
jest.advanceTimersByTime(400)
|
jest.advanceTimersByTime(400)
|
||||||
expect(toastSpy).toHaveBeenCalledWith(
|
expect(toastSpy).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
@@ -1717,7 +1714,6 @@ describe('BulkEditorComponent', () => {
|
|||||||
expect(notification.actionName).toBeUndefined()
|
expect(notification.actionName).toBeUndefined()
|
||||||
}
|
}
|
||||||
expect(reload).not.toHaveBeenCalled()
|
expect(reload).not.toHaveBeenCalled()
|
||||||
expect(documentListViewService.selected.size).toBe(0)
|
|
||||||
expect(documentListViewService.allSelected).toBe(false)
|
expect(documentListViewService.allSelected).toBe(false)
|
||||||
TestBed.inject(TaskNotificationService).complete({
|
TestBed.inject(TaskNotificationService).complete({
|
||||||
task_id: 'queued-operation',
|
task_id: 'queued-operation',
|
||||||
|
|||||||
@@ -329,7 +329,6 @@ export class BulkEditorComponent
|
|||||||
.subscribe({
|
.subscribe({
|
||||||
next: () => {
|
next: () => {
|
||||||
modal.close()
|
modal.close()
|
||||||
this.list.selectNone()
|
|
||||||
this.toastService.showInfo(
|
this.toastService.showInfo(
|
||||||
$localize`Workflow will run on the selected documents in the background.`
|
$localize`Workflow will run on the selected documents in the background.`
|
||||||
)
|
)
|
||||||
@@ -366,7 +365,6 @@ export class BulkEditorComponent
|
|||||||
) {
|
) {
|
||||||
const bulk = this.getSelectionSize() > 1
|
const bulk = this.getSelectionSize() > 1
|
||||||
modal?.close()
|
modal?.close()
|
||||||
this.list.selectNone()
|
|
||||||
if (onQueued) {
|
if (onQueued) {
|
||||||
onQueued(taskId)
|
onQueued(taskId)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export const environment = {
|
|||||||
apiVersion: '10', // match src/paperless/settings.py
|
apiVersion: '10', // match src/paperless/settings.py
|
||||||
appTitle: DEFAULT_APP_TITLE,
|
appTitle: DEFAULT_APP_TITLE,
|
||||||
tag: 'prod',
|
tag: 'prod',
|
||||||
version: '3.4.2',
|
version: '3.5.0',
|
||||||
webSocketHost: window.location.host,
|
webSocketHost: window.location.host,
|
||||||
webSocketProtocol: window.location.protocol == 'https:' ? 'wss:' : 'ws:',
|
webSocketProtocol: window.location.protocol == 'https:' ? 'wss:' : 'ws:',
|
||||||
webSocketBaseUrl: base_url.pathname + 'ws/',
|
webSocketBaseUrl: base_url.pathname + 'ws/',
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+69
-126
@@ -39,8 +39,6 @@ from documents.models import Tag
|
|||||||
from documents.permissions import PermissionsSpec
|
from documents.permissions import PermissionsSpec
|
||||||
from documents.permissions import set_permissions_for_objects
|
from documents.permissions import set_permissions_for_objects
|
||||||
from documents.plugins.helpers import DocumentsStatusManager
|
from documents.plugins.helpers import DocumentsStatusManager
|
||||||
from documents.task_tracking import queue_consumption
|
|
||||||
from documents.task_tracking import queue_processing_tasks
|
|
||||||
from documents.tasks import bulk_update_documents
|
from documents.tasks import bulk_update_documents
|
||||||
from documents.tasks import consume_file
|
from documents.tasks import consume_file
|
||||||
from documents.tasks import remove_document_from_index
|
from documents.tasks import remove_document_from_index
|
||||||
@@ -434,12 +432,7 @@ def delete(doc_ids: list[int]) -> Literal["OK"]:
|
|||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
|
||||||
def reprocess(
|
def reprocess(doc_ids: list[int], *, remote_ocr: bool = False) -> Literal["OK"]:
|
||||||
doc_ids: list[int],
|
|
||||||
*,
|
|
||||||
remote_ocr: bool = False,
|
|
||||||
parent_task_id: str | None = None,
|
|
||||||
) -> Literal["OK"]:
|
|
||||||
"""
|
"""
|
||||||
Re-run parsing for the given documents.
|
Re-run parsing for the given documents.
|
||||||
|
|
||||||
@@ -464,16 +457,6 @@ def reprocess(
|
|||||||
.values_list("source_id", flat=True)
|
.values_list("source_id", flat=True)
|
||||||
.distinct()
|
.distinct()
|
||||||
)
|
)
|
||||||
if parent_task_id is not None:
|
|
||||||
from documents.task_tracking import queue_reprocessing_tasks
|
|
||||||
|
|
||||||
queue_reprocessing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
list(source_ids),
|
|
||||||
remote_ocr=remote_ocr,
|
|
||||||
)
|
|
||||||
return "OK"
|
|
||||||
|
|
||||||
for source_id in source_ids:
|
for source_id in source_ids:
|
||||||
update_document_content_maybe_archive_file.apply_async(
|
update_document_content_maybe_archive_file.apply_async(
|
||||||
kwargs={"document_id": source_id, "remote_ocr": remote_ocr},
|
kwargs={"document_id": source_id, "remote_ocr": remote_ocr},
|
||||||
@@ -538,7 +521,6 @@ def rotate(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
|
||||||
) -> Literal["OK"]:
|
) -> Literal["OK"]:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Attempting to rotate {len(doc_ids)} documents by {degrees} degrees.",
|
f"Attempting to rotate {len(doc_ids)} documents by {degrees} degrees.",
|
||||||
@@ -557,6 +539,7 @@ def rotate(
|
|||||||
pair = _resolve_root_and_source_doc(doc, source_mode=source_mode)
|
pair = _resolve_root_and_source_doc(doc, source_mode=source_mode)
|
||||||
docs_by_root_id.setdefault(pair.root_doc.id, pair)
|
docs_by_root_id.setdefault(pair.root_doc.id, pair)
|
||||||
|
|
||||||
|
failed_ids = []
|
||||||
for pair in docs_by_root_id.values():
|
for pair in docs_by_root_id.values():
|
||||||
if pair.source_doc.mime_type != "application/pdf":
|
if pair.source_doc.mime_type != "application/pdf":
|
||||||
logger.warning(
|
logger.warning(
|
||||||
@@ -576,22 +559,28 @@ def rotate(
|
|||||||
if user is not None:
|
if user is not None:
|
||||||
overrides.actor_id = user.id
|
overrides.actor_id = user.id
|
||||||
|
|
||||||
queue_consumption(
|
consume_file.apply_async(
|
||||||
input_doc=ConsumableDocument(
|
kwargs={
|
||||||
source=DocumentSource.ConsumeFolder,
|
"input_doc": ConsumableDocument(
|
||||||
original_file=filepath,
|
source=DocumentSource.ConsumeFolder,
|
||||||
root_document_id=pair.root_doc.id,
|
original_file=filepath,
|
||||||
),
|
root_document_id=pair.root_doc.id,
|
||||||
overrides=overrides,
|
),
|
||||||
trigger_source=trigger_source,
|
"overrides": overrides,
|
||||||
parent_task_id=parent_task_id,
|
},
|
||||||
|
headers={"trigger_source": trigger_source},
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Queued new rotated version for document {pair.root_doc.id} by {degrees} degrees",
|
f"Queued new rotated version for document {pair.root_doc.id} by {degrees} degrees",
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
failed_ids.append(pair.root_doc.id)
|
||||||
logger.exception(f"Error rotating document {pair.root_doc.id}: {e}")
|
logger.exception(f"Error rotating document {pair.root_doc.id}: {e}")
|
||||||
raise
|
|
||||||
|
if failed_ids:
|
||||||
|
raise RuntimeError(
|
||||||
|
f"Rotation failed for document(s): {failed_ids}. Check logs for details.",
|
||||||
|
)
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
@@ -605,15 +594,13 @@ def merge(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
) -> Literal["OK"]:
|
||||||
) -> Literal["OK"] | dict:
|
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Attempting to merge {len(doc_ids)} documents into a single document.",
|
f"Attempting to merge {len(doc_ids)} documents into a single document.",
|
||||||
)
|
)
|
||||||
qs = Document.objects.select_related("root_document").filter(id__in=doc_ids)
|
qs = Document.objects.select_related("root_document").filter(id__in=doc_ids)
|
||||||
docs_by_id = {doc.id: doc for doc in qs}
|
docs_by_id = {doc.id: doc for doc in qs}
|
||||||
affected_docs: list[int] = []
|
affected_docs: list[int] = []
|
||||||
failed_ids: list[int] = []
|
|
||||||
handoff_asn: int | None = None
|
handoff_asn: int | None = None
|
||||||
with pdf_ops.PdfMerger() as merger:
|
with pdf_ops.PdfMerger() as merger:
|
||||||
# use doc_ids to preserve order
|
# use doc_ids to preserve order
|
||||||
@@ -639,14 +626,11 @@ def merge(
|
|||||||
if handoff_asn is None and doc.archive_serial_number is not None:
|
if handoff_asn is None and doc.archive_serial_number is not None:
|
||||||
handoff_asn = doc.archive_serial_number
|
handoff_asn = doc.archive_serial_number
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
failed_ids.append(doc.id)
|
|
||||||
logger.exception(
|
logger.exception(
|
||||||
f"Error merging document {doc.id}, it will not be included in the merge: {e}",
|
f"Error merging document {doc.id}, it will not be included in the merge: {e}",
|
||||||
)
|
)
|
||||||
if len(affected_docs) == 0:
|
if len(affected_docs) == 0:
|
||||||
logger.warning("No documents were merged")
|
logger.warning("No documents were merged")
|
||||||
if parent_task_id is not None:
|
|
||||||
raise ValueError("None of the selected documents could be merged.")
|
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
filepath = (
|
filepath = (
|
||||||
@@ -689,23 +673,6 @@ def merge(
|
|||||||
overrides=overrides,
|
overrides=overrides,
|
||||||
).set(headers={"trigger_source": trigger_source})
|
).set(headers={"trigger_source": trigger_source})
|
||||||
|
|
||||||
if parent_task_id is not None:
|
|
||||||
backup = (
|
|
||||||
release_archive_serial_numbers(affected_docs) if delete_originals else {}
|
|
||||||
)
|
|
||||||
queue_processing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
[consume_task],
|
|
||||||
delete_ids=affected_docs if delete_originals else None,
|
|
||||||
asn_backup=backup,
|
|
||||||
)
|
|
||||||
if failed_ids:
|
|
||||||
return {
|
|
||||||
"failed_document_ids": failed_ids,
|
|
||||||
"error_message": f"Documents {failed_ids} were excluded from the merge.",
|
|
||||||
}
|
|
||||||
return "OK"
|
|
||||||
|
|
||||||
if delete_originals:
|
if delete_originals:
|
||||||
backup = release_archive_serial_numbers(affected_docs)
|
backup = release_archive_serial_numbers(affected_docs)
|
||||||
logger.info(
|
logger.info(
|
||||||
@@ -725,6 +692,22 @@ def merge(
|
|||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
|
||||||
|
def validate_merge_as_versions_state(
|
||||||
|
documents: list[Document],
|
||||||
|
root_document_id: int,
|
||||||
|
) -> None:
|
||||||
|
if any(document.root_document_id is not None for document in documents):
|
||||||
|
raise ValueError("Only top-level documents can be merged as versions.")
|
||||||
|
|
||||||
|
source_ids = [
|
||||||
|
document.pk for document in documents if document.pk != root_document_id
|
||||||
|
]
|
||||||
|
if Document.global_objects.filter(root_document_id__in=source_ids).exists():
|
||||||
|
raise ValueError(
|
||||||
|
"Documents with existing versions cannot be merged into another document.",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def merge_as_versions(
|
def merge_as_versions(
|
||||||
doc_ids: list[int],
|
doc_ids: list[int],
|
||||||
*,
|
*,
|
||||||
@@ -742,15 +725,8 @@ def merge_as_versions(
|
|||||||
)
|
)
|
||||||
documents_by_id = {document.id: document for document in documents}
|
documents_by_id = {document.id: document for document in documents}
|
||||||
|
|
||||||
if any(document.root_document_id is not None for document in documents):
|
validate_merge_as_versions_state(documents, root_document_id)
|
||||||
raise ValueError("Only top-level documents can be merged as versions.")
|
|
||||||
|
|
||||||
source_ids = [doc_id for doc_id in doc_ids if doc_id != root_document_id]
|
source_ids = [doc_id for doc_id in doc_ids if doc_id != root_document_id]
|
||||||
if Document.global_objects.filter(root_document_id__in=source_ids).exists():
|
|
||||||
raise ValueError(
|
|
||||||
"Documents with existing versions cannot be merged into another document.",
|
|
||||||
)
|
|
||||||
|
|
||||||
root_document = documents_by_id[root_document_id]
|
root_document = documents_by_id[root_document_id]
|
||||||
next_version_index = (
|
next_version_index = (
|
||||||
Document.global_objects.filter(
|
Document.global_objects.filter(
|
||||||
@@ -850,7 +826,6 @@ def split(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
|
||||||
) -> Literal["OK"]:
|
) -> Literal["OK"]:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Attempting to split document {doc_ids[0]} into {len(pages)} documents",
|
f"Attempting to split document {doc_ids[0]} into {len(pages)} documents",
|
||||||
@@ -894,17 +869,7 @@ def split(
|
|||||||
).set(headers={"trigger_source": trigger_source}),
|
).set(headers={"trigger_source": trigger_source}),
|
||||||
)
|
)
|
||||||
|
|
||||||
if parent_task_id is not None:
|
if delete_originals:
|
||||||
backup = (
|
|
||||||
release_archive_serial_numbers([doc.id]) if delete_originals else {}
|
|
||||||
)
|
|
||||||
queue_processing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
consume_tasks,
|
|
||||||
delete_ids=[doc.id] if delete_originals else None,
|
|
||||||
asn_backup=backup,
|
|
||||||
)
|
|
||||||
elif delete_originals:
|
|
||||||
backup = release_archive_serial_numbers([doc.id])
|
backup = release_archive_serial_numbers([doc.id])
|
||||||
logger.info(
|
logger.info(
|
||||||
"Queueing removal of original document after consumption of the split documents",
|
"Queueing removal of original document after consumption of the split documents",
|
||||||
@@ -936,7 +901,6 @@ def delete_pages(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
|
||||||
) -> Literal["OK"]:
|
) -> Literal["OK"]:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Attempting to delete pages {pages} from {len(doc_ids)} documents",
|
f"Attempting to delete pages {pages} from {len(doc_ids)} documents",
|
||||||
@@ -955,15 +919,16 @@ def delete_pages(
|
|||||||
overrides = DocumentMetadataOverrides().from_document(pair.root_doc)
|
overrides = DocumentMetadataOverrides().from_document(pair.root_doc)
|
||||||
if user is not None:
|
if user is not None:
|
||||||
overrides.actor_id = user.id
|
overrides.actor_id = user.id
|
||||||
queue_consumption(
|
consume_file.apply_async(
|
||||||
input_doc=ConsumableDocument(
|
kwargs={
|
||||||
source=DocumentSource.ConsumeFolder,
|
"input_doc": ConsumableDocument(
|
||||||
original_file=filepath,
|
source=DocumentSource.ConsumeFolder,
|
||||||
root_document_id=pair.root_doc.id,
|
original_file=filepath,
|
||||||
),
|
root_document_id=pair.root_doc.id,
|
||||||
overrides=overrides,
|
),
|
||||||
trigger_source=trigger_source,
|
"overrides": overrides,
|
||||||
parent_task_id=parent_task_id,
|
},
|
||||||
|
headers={"trigger_source": trigger_source},
|
||||||
)
|
)
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Queued new version for document {pair.root_doc.id} after deleting pages {pages}",
|
f"Queued new version for document {pair.root_doc.id} after deleting pages {pages}",
|
||||||
@@ -985,7 +950,6 @@ def edit_pdf(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
|
||||||
) -> Literal["OK"]:
|
) -> Literal["OK"]:
|
||||||
"""
|
"""
|
||||||
Operations is a list of dictionaries describing the final PDF pages.
|
Operations is a list of dictionaries describing the final PDF pages.
|
||||||
@@ -1030,15 +994,16 @@ def edit_pdf(
|
|||||||
if user is not None:
|
if user is not None:
|
||||||
overrides.owner_id = user.id
|
overrides.owner_id = user.id
|
||||||
overrides.actor_id = user.id
|
overrides.actor_id = user.id
|
||||||
queue_consumption(
|
consume_file.apply_async(
|
||||||
input_doc=ConsumableDocument(
|
kwargs={
|
||||||
source=DocumentSource.ConsumeFolder,
|
"input_doc": ConsumableDocument(
|
||||||
original_file=filepath,
|
source=DocumentSource.ConsumeFolder,
|
||||||
root_document_id=pair.root_doc.id,
|
original_file=filepath,
|
||||||
),
|
root_document_id=pair.root_doc.id,
|
||||||
overrides=overrides,
|
),
|
||||||
trigger_source=trigger_source,
|
"overrides": overrides,
|
||||||
parent_task_id=parent_task_id,
|
},
|
||||||
|
headers={"trigger_source": trigger_source},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
version_filepaths = pdf_ops.build_pdfs(
|
version_filepaths = pdf_ops.build_pdfs(
|
||||||
@@ -1078,17 +1043,7 @@ def edit_pdf(
|
|||||||
).set(headers={"trigger_source": trigger_source}),
|
).set(headers={"trigger_source": trigger_source}),
|
||||||
)
|
)
|
||||||
|
|
||||||
if parent_task_id is not None:
|
if delete_original:
|
||||||
backup = (
|
|
||||||
release_archive_serial_numbers([doc.id]) if delete_original else {}
|
|
||||||
)
|
|
||||||
queue_processing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
consume_tasks,
|
|
||||||
delete_ids=[doc.id] if delete_original else None,
|
|
||||||
asn_backup=backup,
|
|
||||||
)
|
|
||||||
elif delete_original:
|
|
||||||
backup = release_archive_serial_numbers([doc.id])
|
backup = release_archive_serial_numbers([doc.id])
|
||||||
try:
|
try:
|
||||||
chord(
|
chord(
|
||||||
@@ -1122,7 +1077,6 @@ def remove_password(
|
|||||||
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,
|
||||||
user: User | None = None,
|
user: User | None = None,
|
||||||
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,
|
||||||
parent_task_id: str | None = None,
|
|
||||||
source_paths_by_id: Mapping[int, Path] | None = None,
|
source_paths_by_id: Mapping[int, Path] | None = None,
|
||||||
) -> Literal["OK"]:
|
) -> Literal["OK"]:
|
||||||
"""
|
"""
|
||||||
@@ -1165,15 +1119,16 @@ def remove_password(
|
|||||||
if user is not None:
|
if user is not None:
|
||||||
overrides.owner_id = user.id
|
overrides.owner_id = user.id
|
||||||
overrides.actor_id = user.id
|
overrides.actor_id = user.id
|
||||||
queue_consumption(
|
consume_file.apply_async(
|
||||||
input_doc=ConsumableDocument(
|
kwargs={
|
||||||
source=DocumentSource.ConsumeFolder,
|
"input_doc": ConsumableDocument(
|
||||||
original_file=filepath,
|
source=DocumentSource.ConsumeFolder,
|
||||||
root_document_id=pair.root_doc.id,
|
original_file=filepath,
|
||||||
),
|
root_document_id=pair.root_doc.id,
|
||||||
overrides=overrides,
|
),
|
||||||
trigger_source=trigger_source,
|
"overrides": overrides,
|
||||||
parent_task_id=parent_task_id,
|
},
|
||||||
|
headers={"trigger_source": trigger_source},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
consume_tasks = []
|
consume_tasks = []
|
||||||
@@ -1196,19 +1151,7 @@ def remove_password(
|
|||||||
).set(headers={"trigger_source": trigger_source}),
|
).set(headers={"trigger_source": trigger_source}),
|
||||||
)
|
)
|
||||||
|
|
||||||
if parent_task_id is not None:
|
if delete_original:
|
||||||
backup = (
|
|
||||||
release_archive_serial_numbers([doc.id])
|
|
||||||
if delete_original
|
|
||||||
else {}
|
|
||||||
)
|
|
||||||
queue_processing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
consume_tasks,
|
|
||||||
delete_ids=[doc.id] if delete_original else None,
|
|
||||||
asn_backup=backup,
|
|
||||||
)
|
|
||||||
elif delete_original:
|
|
||||||
chord(
|
chord(
|
||||||
header=consume_tasks,
|
header=consume_tasks,
|
||||||
body=delete.si([doc.id]),
|
body=delete.si([doc.id]),
|
||||||
|
|||||||
@@ -89,9 +89,8 @@ def snapshot_field(doc_ids: list[int], field: str) -> dict[int, Any]:
|
|||||||
return values
|
return values
|
||||||
|
|
||||||
|
|
||||||
@shared_task(bind=True)
|
@shared_task
|
||||||
def execute_bulk_operation(
|
def execute_bulk_operation(
|
||||||
self,
|
|
||||||
operation: str,
|
operation: str,
|
||||||
document_ids: list[int],
|
document_ids: list[int],
|
||||||
parameters: dict,
|
parameters: dict,
|
||||||
@@ -115,11 +114,6 @@ def execute_bulk_operation(
|
|||||||
|
|
||||||
if operation not in MODIFIED_FIELDS:
|
if operation not in MODIFIED_FIELDS:
|
||||||
execution_parameters = parameters.copy()
|
execution_parameters = parameters.copy()
|
||||||
if (
|
|
||||||
operation in TRIGGER_SOURCE_OPERATIONS | {"reprocess"}
|
|
||||||
and self.request.id is not None
|
|
||||||
):
|
|
||||||
execution_parameters["parent_task_id"] = self.request.id
|
|
||||||
if operation in USER_OPERATIONS:
|
if operation in USER_OPERATIONS:
|
||||||
execution_parameters["user"] = user
|
execution_parameters["user"] = user
|
||||||
if operation in TRIGGER_SOURCE_OPERATIONS:
|
if operation in TRIGGER_SOURCE_OPERATIONS:
|
||||||
@@ -131,7 +125,7 @@ def execute_bulk_operation(
|
|||||||
if settings.AUDIT_LOG_ENABLED and modified_field
|
if settings.AUDIT_LOG_ENABLED and modified_field
|
||||||
else {}
|
else {}
|
||||||
)
|
)
|
||||||
result = method(document_ids, **execution_parameters)
|
method(document_ids, **execution_parameters)
|
||||||
if settings.AUDIT_LOG_ENABLED and modified_field:
|
if settings.AUDIT_LOG_ENABLED and modified_field:
|
||||||
from auditlog.models import LogEntry
|
from auditlog.models import LogEntry
|
||||||
|
|
||||||
@@ -146,11 +140,7 @@ def execute_bulk_operation(
|
|||||||
actor=user,
|
actor=user,
|
||||||
additional_data={"reason": f"Bulk edit: {operation}"},
|
additional_data={"reason": f"Bulk edit: {operation}"},
|
||||||
)
|
)
|
||||||
return {
|
return {"operation": operation, "document_count": len(document_ids)}
|
||||||
"operation": operation,
|
|
||||||
"document_count": len(document_ids),
|
|
||||||
**(result if isinstance(result, dict) else {}),
|
|
||||||
}
|
|
||||||
|
|
||||||
affected_ids: list[int] = []
|
affected_ids: list[int] = []
|
||||||
modified_field = MODIFIED_FIELDS[operation]
|
modified_field = MODIFIED_FIELDS[operation]
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from __future__ import annotations
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from fnmatch import fnmatch
|
from fnmatch import fnmatch
|
||||||
from fnmatch import translate as fnmatch_translate
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
@@ -548,6 +547,48 @@ def existing_document_matches_workflow(
|
|||||||
return (True, None)
|
return (True, None)
|
||||||
|
|
||||||
|
|
||||||
|
def _glob_to_portable_regex(pattern: str) -> str:
|
||||||
|
"""
|
||||||
|
Translate an fnmatch-style glob into an anchored regex which is accepted by
|
||||||
|
Python, PostgreSQL (ARE), and MariaDB (PCRE).
|
||||||
|
|
||||||
|
fnmatch.translate() can't be used, as its output (`(?s:...)\\Z`) uses syntax
|
||||||
|
PostgreSQL rejects. Supports `*`, `?`, `[seq]` and `[!seq]`.
|
||||||
|
"""
|
||||||
|
out: list[str] = []
|
||||||
|
i = 0
|
||||||
|
n = len(pattern)
|
||||||
|
while i < n:
|
||||||
|
c = pattern[i]
|
||||||
|
i += 1
|
||||||
|
if c == "*":
|
||||||
|
out.append(".*")
|
||||||
|
elif c == "?":
|
||||||
|
out.append(".")
|
||||||
|
elif c == "[":
|
||||||
|
j = i
|
||||||
|
if j < n and pattern[j] == "!":
|
||||||
|
j += 1
|
||||||
|
if j < n and pattern[j] == "]":
|
||||||
|
j += 1
|
||||||
|
while j < n and pattern[j] != "]":
|
||||||
|
j += 1
|
||||||
|
if j >= n:
|
||||||
|
# No closing bracket, treat as a literal
|
||||||
|
out.append(r"\[")
|
||||||
|
else:
|
||||||
|
body = pattern[i:j]
|
||||||
|
i = j + 1
|
||||||
|
negate = body.startswith("!")
|
||||||
|
if negate:
|
||||||
|
body = body[1:]
|
||||||
|
body = "".join(f"\\{ch}" if ch in "\\[^" else ch for ch in body)
|
||||||
|
out.append(f"[{'^' if negate else ''}{body}]")
|
||||||
|
else:
|
||||||
|
out.append(re.escape(c))
|
||||||
|
return f"^{''.join(out)}$"
|
||||||
|
|
||||||
|
|
||||||
def prefilter_documents_by_workflowtrigger(
|
def prefilter_documents_by_workflowtrigger(
|
||||||
documents: QuerySet[Document],
|
documents: QuerySet[Document],
|
||||||
trigger: WorkflowTrigger,
|
trigger: WorkflowTrigger,
|
||||||
@@ -628,8 +669,9 @@ def prefilter_documents_by_workflowtrigger(
|
|||||||
documents = documents.annotate(**annotations).filter(custom_field_q)
|
documents = documents.annotate(**annotations).filter(custom_field_q)
|
||||||
|
|
||||||
if trigger.filter_filename:
|
if trigger.filter_filename:
|
||||||
regex = fnmatch_translate(trigger.filter_filename).lstrip("^").rstrip("$")
|
documents = documents.filter(
|
||||||
documents = documents.filter(original_filename__iregex=regex)
|
original_filename__iregex=_glob_to_portable_regex(trigger.filter_filename),
|
||||||
|
)
|
||||||
|
|
||||||
return documents
|
return documents
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
# Generated by Django 5.2.18 on 2026-11-14 19:59
|
|
||||||
|
|
||||||
import django.db.models.deletion
|
|
||||||
from django.db import migrations
|
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
dependencies = [
|
|
||||||
("documents", "0030_note_format"),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name="paperlesstask",
|
|
||||||
name="dispatched",
|
|
||||||
field=models.BooleanField(default=False),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name="paperlesstask",
|
|
||||||
name="parent",
|
|
||||||
field=models.ForeignKey(
|
|
||||||
blank=True,
|
|
||||||
null=True,
|
|
||||||
on_delete=django.db.models.deletion.SET_NULL,
|
|
||||||
related_name="children",
|
|
||||||
to="documents.paperlesstask",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
|
||||||
@@ -970,16 +970,6 @@ class PaperlessTask(ModelWithOwner):
|
|||||||
help_text=_("Structured result data from task execution"),
|
help_text=_("Structured result data from task execution"),
|
||||||
)
|
)
|
||||||
|
|
||||||
parent = models.ForeignKey(
|
|
||||||
"self",
|
|
||||||
null=True,
|
|
||||||
blank=True,
|
|
||||||
on_delete=models.SET_NULL,
|
|
||||||
related_name="children",
|
|
||||||
)
|
|
||||||
|
|
||||||
dispatched = models.BooleanField(default=False)
|
|
||||||
|
|
||||||
# Acknowledgment
|
# Acknowledgment
|
||||||
acknowledged = models.BooleanField(
|
acknowledged = models.BooleanField(
|
||||||
default=False,
|
default=False,
|
||||||
|
|||||||
@@ -1717,8 +1717,17 @@ class MergeDocumentsAsVersionsSerializer(DocumentListSerializer):
|
|||||||
"root_document_id must be one of the selected documents.",
|
"root_document_id must be one of the selected documents.",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Version state checks (e.g., whether a document is already part of a version chain)
|
# Rechecked under row locks during execution in case document state changes.
|
||||||
# moved to merge_as_versions() under row locks, since it could change between queueing and execution
|
selected_documents = list(
|
||||||
|
Document.objects.filter(id__in=documents).only("id", "root_document"),
|
||||||
|
)
|
||||||
|
try:
|
||||||
|
bulk_edit.validate_merge_as_versions_state(
|
||||||
|
selected_documents,
|
||||||
|
attrs["root_document_id"],
|
||||||
|
)
|
||||||
|
except ValueError as error:
|
||||||
|
raise serializers.ValidationError(str(error)) from error
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ from documents.models import WorkflowRun
|
|||||||
from documents.models import WorkflowTrigger
|
from documents.models import WorkflowTrigger
|
||||||
from documents.permissions import restrict_queryset_to_visible
|
from documents.permissions import restrict_queryset_to_visible
|
||||||
from documents.plugins.helpers import DocumentsStatusManager
|
from documents.plugins.helpers import DocumentsStatusManager
|
||||||
from documents.task_tracking import finish_dispatch
|
|
||||||
from documents.task_tracking import update_parent
|
|
||||||
from documents.templating.utils import convert_format_str_to_template_format
|
from documents.templating.utils import convert_format_str_to_template_format
|
||||||
from documents.utils import compute_checksum
|
from documents.utils import compute_checksum
|
||||||
from documents.utils import copy_file_with_basic_stats
|
from documents.utils import copy_file_with_basic_stats
|
||||||
@@ -1079,7 +1077,6 @@ TRACKED_TASKS: dict[str, PaperlessTask.TaskType] = {
|
|||||||
"documents.tasks.update_document_content_maybe_archive_file": PaperlessTask.TaskType.REPROCESS_DOCUMENT,
|
"documents.tasks.update_document_content_maybe_archive_file": PaperlessTask.TaskType.REPROCESS_DOCUMENT,
|
||||||
"documents.tasks.build_share_link_bundle": PaperlessTask.TaskType.BUILD_SHARE_LINK,
|
"documents.tasks.build_share_link_bundle": PaperlessTask.TaskType.BUILD_SHARE_LINK,
|
||||||
"documents.bulk_edit.delete": PaperlessTask.TaskType.BULK_DELETE,
|
"documents.bulk_edit.delete": PaperlessTask.TaskType.BULK_DELETE,
|
||||||
"documents.task_tracking.finish_file_operation": PaperlessTask.TaskType.BULK_DELETE,
|
|
||||||
"documents.tasks.apply_ai_suggestions": PaperlessTask.TaskType.APPLY_AI_SUGGESTIONS,
|
"documents.tasks.apply_ai_suggestions": PaperlessTask.TaskType.APPLY_AI_SUGGESTIONS,
|
||||||
BULK_OPERATION_TASK_NAME: PaperlessTask.TaskType.BULK_UPDATE,
|
BULK_OPERATION_TASK_NAME: PaperlessTask.TaskType.BULK_UPDATE,
|
||||||
}
|
}
|
||||||
@@ -1128,8 +1125,6 @@ def _extract_input_data(
|
|||||||
data["overrides"] = override_dict
|
data["overrides"] = override_dict
|
||||||
return data
|
return data
|
||||||
|
|
||||||
if task_type == PaperlessTask.TaskType.REPROCESS_DOCUMENT:
|
|
||||||
return {"document_id": task_kwargs["document_id"]}
|
|
||||||
if task_type == PaperlessTask.TaskType.MAIL_FETCH:
|
if task_type == PaperlessTask.TaskType.MAIL_FETCH:
|
||||||
account_ids = task_kwargs.get("account_ids")
|
account_ids = task_kwargs.get("account_ids")
|
||||||
if account_ids is not None:
|
if account_ids is not None:
|
||||||
@@ -1217,19 +1212,6 @@ def before_task_publish_handler(
|
|||||||
input_data = _extract_input_data(task_type, task_kwargs)
|
input_data = _extract_input_data(task_type, task_kwargs)
|
||||||
owner_id = _extract_owner_id(task_type, task_kwargs)
|
owner_id = _extract_owner_id(task_type, task_kwargs)
|
||||||
trigger_source = _determine_trigger_source(headers)
|
trigger_source = _determine_trigger_source(headers)
|
||||||
# Consumption can fan out again (e.g. barcode splitting). Keep those
|
|
||||||
# descendants attached so their caller cannot finish before them.
|
|
||||||
parent = None
|
|
||||||
if task_type == PaperlessTask.TaskType.CONSUME_FILE and headers.get(
|
|
||||||
"parent_id",
|
|
||||||
):
|
|
||||||
parent = PaperlessTask.objects.filter(
|
|
||||||
task_id=headers["parent_id"],
|
|
||||||
parent__isnull=False,
|
|
||||||
).first()
|
|
||||||
if parent is not None:
|
|
||||||
owner_id = parent.owner_id
|
|
||||||
trigger_source = parent.trigger_source
|
|
||||||
|
|
||||||
# A retried task is republished with the same task_id, so this fires
|
# A retried task is republished with the same task_id, so this fires
|
||||||
# again for it; get_or_create keeps the original PENDING record
|
# again for it; get_or_create keeps the original PENDING record
|
||||||
@@ -1242,7 +1224,6 @@ def before_task_publish_handler(
|
|||||||
"status": PaperlessTask.Status.PENDING,
|
"status": PaperlessTask.Status.PENDING,
|
||||||
"input_data": input_data,
|
"input_data": input_data,
|
||||||
"owner_id": owner_id,
|
"owner_id": owner_id,
|
||||||
"parent": parent,
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except Exception: # pragma: no cover
|
except Exception: # pragma: no cover
|
||||||
@@ -1328,10 +1309,6 @@ def task_postrun_handler(
|
|||||||
except PaperlessTask.DoesNotExist:
|
except PaperlessTask.DoesNotExist:
|
||||||
return
|
return
|
||||||
|
|
||||||
if task_instance.children.exists():
|
|
||||||
finish_dispatch(task_instance, retval if isinstance(retval, dict) else {})
|
|
||||||
return
|
|
||||||
|
|
||||||
task_instance.status = new_status
|
task_instance.status = new_status
|
||||||
task_instance.date_done = now
|
task_instance.date_done = now
|
||||||
changed_fields = ["status", "date_done"]
|
changed_fields = ["status", "date_done"]
|
||||||
@@ -1354,21 +1331,7 @@ def task_postrun_handler(
|
|||||||
task_instance.status = PaperlessTask.Status.FAILURE
|
task_instance.status = PaperlessTask.Status.FAILURE
|
||||||
changed_fields.append("status")
|
changed_fields.append("status")
|
||||||
|
|
||||||
if (
|
|
||||||
task_instance.parent_id is not None
|
|
||||||
and task_instance.task_type == PaperlessTask.TaskType.CONSUME_FILE
|
|
||||||
and (not isinstance(retval, dict) or "document_id" not in retval)
|
|
||||||
and not (isinstance(retval, dict) and "duplicate_of" in retval)
|
|
||||||
):
|
|
||||||
task_instance.status = PaperlessTask.Status.FAILURE
|
|
||||||
task_instance.result_data = {
|
|
||||||
**(retval if isinstance(retval, dict) else {}),
|
|
||||||
"error_message": "Consumption stopped without creating a document.",
|
|
||||||
}
|
|
||||||
changed_fields.extend(["status", "result_data"])
|
|
||||||
|
|
||||||
task_instance.save(update_fields=changed_fields)
|
task_instance.save(update_fields=changed_fields)
|
||||||
update_parent(task_instance)
|
|
||||||
if task and task.name == BULK_OPERATION_TASK_NAME:
|
if task and task.name == BULK_OPERATION_TASK_NAME:
|
||||||
_send_bulk_operation_status(task_instance)
|
_send_bulk_operation_status(task_instance)
|
||||||
except Exception: # pragma: no cover
|
except Exception: # pragma: no cover
|
||||||
@@ -1425,10 +1388,6 @@ def task_failure_handler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
task_qs = PaperlessTask.objects.filter(task_id=task_id)
|
task_qs = PaperlessTask.objects.filter(task_id=task_id)
|
||||||
parent = task_qs.first()
|
|
||||||
if parent is not None and parent.children.exists():
|
|
||||||
finish_dispatch(parent, result_data)
|
|
||||||
return
|
|
||||||
task_instance = task_qs.values("date_started", "date_created").first()
|
task_instance = task_qs.values("date_started", "date_created").first()
|
||||||
if task_instance:
|
if task_instance:
|
||||||
date_started = task_instance["date_started"]
|
date_started = task_instance["date_started"]
|
||||||
@@ -1440,7 +1399,6 @@ def task_failure_handler(
|
|||||||
date_started - date_created
|
date_started - date_created
|
||||||
).total_seconds()
|
).total_seconds()
|
||||||
task_qs.update(**update_fields)
|
task_qs.update(**update_fields)
|
||||||
update_parent(task_qs.get())
|
|
||||||
if sender and sender.name == BULK_OPERATION_TASK_NAME:
|
if sender and sender.name == BULK_OPERATION_TASK_NAME:
|
||||||
_send_bulk_operation_status(task_qs.first())
|
_send_bulk_operation_status(task_qs.first())
|
||||||
except Exception: # pragma: no cover
|
except Exception: # pragma: no cover
|
||||||
@@ -1487,8 +1445,6 @@ def task_revoked_handler(
|
|||||||
"reason": (reason + " Check worker logs for details."),
|
"reason": (reason + " Check worker logs for details."),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if task_instance := task_qs.first():
|
|
||||||
update_parent(task_instance)
|
|
||||||
if sender and sender.name == BULK_OPERATION_TASK_NAME:
|
if sender and sender.name == BULK_OPERATION_TASK_NAME:
|
||||||
_send_bulk_operation_status(task_qs.first())
|
_send_bulk_operation_status(task_qs.first())
|
||||||
except Exception: # pragma: no cover
|
except Exception: # pragma: no cover
|
||||||
|
|||||||
@@ -1,242 +0,0 @@
|
|||||||
"""Completion tracking for operations which dispatch document processing tasks."""
|
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import uuid
|
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
|
|
||||||
from celery import shared_task
|
|
||||||
from django.db import transaction
|
|
||||||
from django.utils import timezone
|
|
||||||
|
|
||||||
from documents.models import PaperlessTask
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from celery.canvas import Signature
|
|
||||||
|
|
||||||
from documents.data_models import ConsumableDocument
|
|
||||||
from documents.data_models import DocumentMetadataOverrides
|
|
||||||
|
|
||||||
|
|
||||||
def queue_consumption(
|
|
||||||
*,
|
|
||||||
input_doc: ConsumableDocument,
|
|
||||||
overrides: DocumentMetadataOverrides,
|
|
||||||
trigger_source: str,
|
|
||||||
parent_task_id: str | None,
|
|
||||||
) -> None:
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
kwargs = {"input_doc": input_doc, "overrides": overrides}
|
|
||||||
if parent_task_id is None:
|
|
||||||
consume_file.apply_async(
|
|
||||||
kwargs=kwargs,
|
|
||||||
headers={"trigger_source": trigger_source},
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
queue_processing_tasks(parent_task_id, [consume_file.s(**kwargs)])
|
|
||||||
|
|
||||||
|
|
||||||
def queue_reprocessing_tasks(
|
|
||||||
parent_task_id: str,
|
|
||||||
document_ids: list[int],
|
|
||||||
*,
|
|
||||||
remote_ocr: bool,
|
|
||||||
) -> None:
|
|
||||||
from documents.tasks import update_document_content_maybe_archive_file
|
|
||||||
|
|
||||||
queue_processing_tasks(
|
|
||||||
parent_task_id,
|
|
||||||
[
|
|
||||||
update_document_content_maybe_archive_file.s(
|
|
||||||
document_id=document_id,
|
|
||||||
remote_ocr=remote_ocr,
|
|
||||||
)
|
|
||||||
for document_id in document_ids
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def queue_processing_tasks(
|
|
||||||
parent_task_id: str,
|
|
||||||
signatures: list[Signature],
|
|
||||||
*,
|
|
||||||
delete_ids: list[int] | None = None,
|
|
||||||
asn_backup: dict | None = None,
|
|
||||||
) -> None:
|
|
||||||
from documents.signals.handlers import TRACKED_TASKS
|
|
||||||
from documents.signals.handlers import _extract_input_data
|
|
||||||
|
|
||||||
parent = PaperlessTask.objects.get(task_id=parent_task_id)
|
|
||||||
children = [
|
|
||||||
PaperlessTask(
|
|
||||||
task_id=str(uuid.uuid4()),
|
|
||||||
task_type=TRACKED_TASKS[signature.task],
|
|
||||||
trigger_source=parent.trigger_source,
|
|
||||||
owner_id=parent.owner_id,
|
|
||||||
parent=parent,
|
|
||||||
input_data=_extract_input_data(
|
|
||||||
TRACKED_TASKS[signature.task],
|
|
||||||
signature.kwargs,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
for signature in signatures
|
|
||||||
]
|
|
||||||
# Dependencies and their final step must be registered together.
|
|
||||||
with transaction.atomic():
|
|
||||||
PaperlessTask.objects.bulk_create(children)
|
|
||||||
if delete_ids:
|
|
||||||
PaperlessTask.objects.create(
|
|
||||||
task_id=str(uuid.uuid4()),
|
|
||||||
task_type=PaperlessTask.TaskType.BULK_DELETE,
|
|
||||||
owner_id=parent.owner_id,
|
|
||||||
trigger_source=parent.trigger_source,
|
|
||||||
parent=parent,
|
|
||||||
input_data={
|
|
||||||
"dependencies": [child.pk for child in children],
|
|
||||||
"delete_ids": delete_ids,
|
|
||||||
"asn_backup": asn_backup or {},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
for index, (signature, child) in enumerate(zip(signatures, children, strict=True)):
|
|
||||||
try:
|
|
||||||
signature.apply_async(
|
|
||||||
task_id=child.task_id,
|
|
||||||
headers={"trigger_source": parent.trigger_source},
|
|
||||||
)
|
|
||||||
except Exception:
|
|
||||||
PaperlessTask.objects.filter(
|
|
||||||
pk__in=[task.pk for task in children[index:]],
|
|
||||||
).update(
|
|
||||||
status=PaperlessTask.Status.FAILURE,
|
|
||||||
date_done=timezone.now(),
|
|
||||||
result_data={"error_message": "Could not publish processing task."},
|
|
||||||
)
|
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
@shared_task
|
|
||||||
def finish_file_operation(
|
|
||||||
dependencies: list[int],
|
|
||||||
delete_ids: list[int],
|
|
||||||
asn_backup: dict,
|
|
||||||
) -> dict[str, str]:
|
|
||||||
from documents.bulk_edit import delete
|
|
||||||
from documents.bulk_edit import restore_archive_serial_numbers
|
|
||||||
|
|
||||||
statuses = list(
|
|
||||||
PaperlessTask.objects.filter(pk__in=dependencies).values_list(
|
|
||||||
"status",
|
|
||||||
flat=True,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
if len(statuses) != len(dependencies):
|
|
||||||
raise ValueError(
|
|
||||||
"Processing task records are missing; originals were preserved.",
|
|
||||||
)
|
|
||||||
if any(status != PaperlessTask.Status.SUCCESS for status in statuses):
|
|
||||||
restore_archive_serial_numbers(asn_backup)
|
|
||||||
return {"reason": "Originals preserved; archive serial numbers restored."}
|
|
||||||
delete(delete_ids)
|
|
||||||
return {"reason": "Originals moved to trash."}
|
|
||||||
|
|
||||||
|
|
||||||
def _publish_finalizer(task: PaperlessTask) -> None:
|
|
||||||
try:
|
|
||||||
finish_file_operation.apply_async(
|
|
||||||
task_id=task.task_id,
|
|
||||||
kwargs=task.input_data,
|
|
||||||
headers={"trigger_source": task.trigger_source},
|
|
||||||
)
|
|
||||||
except Exception as error:
|
|
||||||
from documents.signals.handlers import task_failure_handler
|
|
||||||
|
|
||||||
task_failure_handler(
|
|
||||||
sender=finish_file_operation,
|
|
||||||
task_id=task.task_id,
|
|
||||||
exception=error,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _schedule_finalizers(parent: PaperlessTask) -> None:
|
|
||||||
for task in parent.children.filter(
|
|
||||||
task_type=PaperlessTask.TaskType.BULK_DELETE,
|
|
||||||
status=PaperlessTask.Status.PENDING,
|
|
||||||
):
|
|
||||||
dependencies = task.input_data.get("dependencies")
|
|
||||||
if dependencies is None or task.result_data:
|
|
||||||
continue
|
|
||||||
if (
|
|
||||||
PaperlessTask.objects.filter(pk__in=dependencies)
|
|
||||||
.exclude(
|
|
||||||
status__in=PaperlessTask.COMPLETE_STATUSES,
|
|
||||||
)
|
|
||||||
.exists()
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
task.result_data = {"scheduled": True}
|
|
||||||
task.save(update_fields=["result_data"])
|
|
||||||
transaction.on_commit(lambda task=task: _publish_finalizer(task))
|
|
||||||
|
|
||||||
|
|
||||||
def finish_dispatch(task: PaperlessTask, result_data: dict) -> None:
|
|
||||||
"""Record the scheduling outcome without completing an active parent."""
|
|
||||||
with transaction.atomic():
|
|
||||||
parent = PaperlessTask.objects.select_for_update().get(pk=task.pk)
|
|
||||||
if parent.is_complete:
|
|
||||||
return
|
|
||||||
parent.dispatched = True
|
|
||||||
parent.result_data = result_data
|
|
||||||
parent.save(update_fields=["dispatched", "result_data"])
|
|
||||||
_finalize_parent(parent)
|
|
||||||
|
|
||||||
|
|
||||||
def update_parent(task: PaperlessTask) -> None:
|
|
||||||
if task.parent_id is None:
|
|
||||||
return
|
|
||||||
with transaction.atomic():
|
|
||||||
parent = PaperlessTask.objects.select_for_update().get(pk=task.parent_id)
|
|
||||||
_finalize_parent(parent)
|
|
||||||
|
|
||||||
|
|
||||||
def _finalize_parent(parent: PaperlessTask) -> None:
|
|
||||||
if parent.is_complete or not parent.dispatched:
|
|
||||||
return
|
|
||||||
_schedule_finalizers(parent)
|
|
||||||
statuses = list(parent.children.values_list("status", flat=True))
|
|
||||||
if any(status not in PaperlessTask.COMPLETE_STATUSES for status in statuses):
|
|
||||||
return
|
|
||||||
|
|
||||||
succeeded = statuses.count(PaperlessTask.Status.SUCCESS)
|
|
||||||
failed = len(statuses) - succeeded
|
|
||||||
result_data = parent.result_data or {}
|
|
||||||
if failed and not result_data.get("error_message"):
|
|
||||||
result_data["error_message"] = (
|
|
||||||
f"{succeeded} child task(s) succeeded; {failed} failed or were revoked. "
|
|
||||||
"See child tasks for details."
|
|
||||||
)
|
|
||||||
parent.status = (
|
|
||||||
PaperlessTask.Status.FAILURE
|
|
||||||
if result_data.get("error_message")
|
|
||||||
else PaperlessTask.Status.SUCCESS
|
|
||||||
)
|
|
||||||
parent.result_data = {
|
|
||||||
**parent.input_data,
|
|
||||||
**result_data,
|
|
||||||
"succeeded_count": succeeded,
|
|
||||||
"failed_count": failed,
|
|
||||||
}
|
|
||||||
parent.date_done = timezone.now()
|
|
||||||
if parent.date_started:
|
|
||||||
parent.duration_seconds = (
|
|
||||||
parent.date_done - parent.date_started
|
|
||||||
).total_seconds()
|
|
||||||
parent.wait_time_seconds = (
|
|
||||||
parent.date_started - parent.date_created
|
|
||||||
).total_seconds()
|
|
||||||
parent.save()
|
|
||||||
from documents.signals.handlers import _send_bulk_operation_status
|
|
||||||
|
|
||||||
if "operation" in parent.input_data:
|
|
||||||
transaction.on_commit(lambda: _send_bulk_operation_status(parent))
|
|
||||||
update_parent(parent)
|
|
||||||
@@ -394,10 +394,11 @@ def update_document_content_maybe_archive_file(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not parser_class:
|
if not parser_class:
|
||||||
raise ValueError(
|
logger.error(
|
||||||
f"No parser found for mime type {mime_type}, cannot "
|
f"No parser found for mime type {mime_type}, cannot "
|
||||||
f"reprocess document {document} (ID: {document_id})",
|
f"archive document {document} (ID: {document_id})",
|
||||||
)
|
)
|
||||||
|
return
|
||||||
|
|
||||||
with parser_class() as parser:
|
with parser_class() as parser:
|
||||||
parser.configure(ParserContext())
|
parser.configure(ParserContext())
|
||||||
@@ -511,7 +512,6 @@ def update_document_content_maybe_archive_file(
|
|||||||
logger.exception(
|
logger.exception(
|
||||||
f"Error while parsing document {document} (ID: {document_id})",
|
f"Error while parsing document {document} (ID: {document_id})",
|
||||||
)
|
)
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
@shared_task
|
@shared_task
|
||||||
|
|||||||
@@ -1243,13 +1243,68 @@ class TestPDFActions(DirectoriesMixin, TestCase):
|
|||||||
doc_ids = [self.doc2.id, self.doc3.id]
|
doc_ids = [self.doc2.id, self.doc3.id]
|
||||||
|
|
||||||
with self.assertLogs("paperless.bulk_edit", level="ERROR") as cm:
|
with self.assertLogs("paperless.bulk_edit", level="ERROR") as cm:
|
||||||
with self.assertRaisesMessage(Exception, "Error rotating PDF"):
|
with self.assertRaisesMessage(
|
||||||
|
RuntimeError,
|
||||||
|
f"Rotation failed for document(s): {doc_ids}",
|
||||||
|
):
|
||||||
bulk_edit.rotate(doc_ids, 90)
|
bulk_edit.rotate(doc_ids, 90)
|
||||||
error_str = cm.output[0]
|
error_str = cm.output[0]
|
||||||
expected_str = "Error rotating document"
|
expected_str = "Error rotating document"
|
||||||
self.assertIn(expected_str, error_str)
|
self.assertIn(expected_str, error_str)
|
||||||
|
self.assertEqual(mock_rotate_pdf.call_count, 2)
|
||||||
mock_consume_delay.assert_not_called()
|
mock_consume_delay.assert_not_called()
|
||||||
|
|
||||||
|
@mock.patch("documents.tasks.consume_file.apply_async")
|
||||||
|
@mock.patch("documents.pdf_ops.rotate_pdf")
|
||||||
|
def test_rotate_continues_after_preparation_failure(
|
||||||
|
self,
|
||||||
|
mock_rotate_pdf,
|
||||||
|
mock_consume,
|
||||||
|
) -> None:
|
||||||
|
def rotate(source, destination, degrees):
|
||||||
|
if source == self.doc2.source_path:
|
||||||
|
raise RuntimeError("Invalid PDF")
|
||||||
|
shutil.copy(source, destination)
|
||||||
|
|
||||||
|
mock_rotate_pdf.side_effect = rotate
|
||||||
|
with self.assertRaisesMessage(
|
||||||
|
RuntimeError,
|
||||||
|
f"Rotation failed for document(s): [{self.doc2.id}]",
|
||||||
|
):
|
||||||
|
bulk_edit.rotate([self.doc2.id, self.doc3.id], 90)
|
||||||
|
|
||||||
|
self.assertEqual(mock_rotate_pdf.call_count, 2)
|
||||||
|
mock_consume.assert_called_once()
|
||||||
|
self.assertEqual(
|
||||||
|
mock_consume.call_args.kwargs["kwargs"]["input_doc"].root_document_id,
|
||||||
|
self.doc3.id,
|
||||||
|
)
|
||||||
|
|
||||||
|
@mock.patch("documents.tasks.consume_file.apply_async")
|
||||||
|
@mock.patch("documents.pdf_ops.rotate_pdf")
|
||||||
|
def test_rotate_continues_after_queue_failure(
|
||||||
|
self,
|
||||||
|
mock_rotate_pdf,
|
||||||
|
mock_consume,
|
||||||
|
) -> None:
|
||||||
|
mock_rotate_pdf.side_effect = lambda source, destination, degrees: shutil.copy(
|
||||||
|
source,
|
||||||
|
destination,
|
||||||
|
)
|
||||||
|
mock_consume.side_effect = [RuntimeError("Broker unavailable"), None]
|
||||||
|
with self.assertRaisesMessage(
|
||||||
|
RuntimeError,
|
||||||
|
f"Rotation failed for document(s): [{self.doc2.id}]",
|
||||||
|
):
|
||||||
|
bulk_edit.rotate([self.doc2.id, self.doc3.id], 90)
|
||||||
|
|
||||||
|
self.assertEqual(mock_rotate_pdf.call_count, 2)
|
||||||
|
self.assertEqual(mock_consume.call_count, 2)
|
||||||
|
self.assertEqual(
|
||||||
|
mock_consume.call_args.kwargs["kwargs"]["input_doc"].root_document_id,
|
||||||
|
self.doc3.id,
|
||||||
|
)
|
||||||
|
|
||||||
@mock.patch("documents.tasks.consume_file.apply_async")
|
@mock.patch("documents.tasks.consume_file.apply_async")
|
||||||
def test_rotate_non_pdf(
|
def test_rotate_non_pdf(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@@ -209,7 +209,10 @@ def test_preparation_failure_propagates_from_worker(
|
|||||||
),
|
),
|
||||||
mock.patch("documents.bulk_edit.consume_file.apply_async") as consume,
|
mock.patch("documents.bulk_edit.consume_file.apply_async") as consume,
|
||||||
mock.patch("documents.bulk_edit.consume_file.s") as consume_signature,
|
mock.patch("documents.bulk_edit.consume_file.s") as consume_signature,
|
||||||
pytest.raises(RuntimeError, match="preparation failed"),
|
pytest.raises(
|
||||||
|
RuntimeError,
|
||||||
|
match="Rotation failed" if operation == "rotate" else "preparation failed",
|
||||||
|
),
|
||||||
):
|
):
|
||||||
execute_bulk_operation(operation, [doc.pk], parameters, user.pk)
|
execute_bulk_operation(operation, [doc.pk], parameters, user.pk)
|
||||||
consume.assert_not_called()
|
consume.assert_not_called()
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import fnmatch
|
||||||
|
import re
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
from documents.matching import _glob_to_portable_regex
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
("pattern", "expected"),
|
||||||
|
[
|
||||||
|
pytest.param("", r"^$", id="empty"),
|
||||||
|
pytest.param("abc", r"^abc$", id="literal"),
|
||||||
|
pytest.param("*", r"^.*$", id="star"),
|
||||||
|
pytest.param("?", r"^.$", id="question"),
|
||||||
|
pytest.param("*.pdf", r"^.*\.pdf$", id="star-escapes-dot"),
|
||||||
|
pytest.param("[abc]", r"^[abc]$", id="class"),
|
||||||
|
pytest.param("[a-z]", r"^[a-z]$", id="class-range"),
|
||||||
|
pytest.param("[!abc]", r"^[^abc]$", id="negated-class"),
|
||||||
|
pytest.param("[]a]", r"^[]a]$", id="leading-close-bracket-is-member"),
|
||||||
|
pytest.param("[!]a]", r"^[^]a]$", id="negated-leading-close-bracket"),
|
||||||
|
pytest.param("[a^b]", r"^[a\^b]$", id="caret-escaped-in-class"),
|
||||||
|
pytest.param("[a[b]", r"^[a\[b]$", id="open-bracket-escaped-in-class"),
|
||||||
|
pytest.param("[a\\b]", r"^[a\\b]$", id="backslash-escaped-in-class"),
|
||||||
|
pytest.param("[abc", r"^\[abc$", id="unclosed-class-literal"),
|
||||||
|
pytest.param("[", r"^\[$", id="lone-open-bracket"),
|
||||||
|
pytest.param("[!", r"^\[!$", id="unclosed-negation-literal"),
|
||||||
|
pytest.param("[]", r"^\[\]$", id="unclosed-with-only-close-bracket"),
|
||||||
|
pytest.param("a[0-9]?*", r"^a[0-9]..*$", id="mixed"),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
def test_translation(pattern: str, expected: str) -> None:
|
||||||
|
"""
|
||||||
|
GIVEN:
|
||||||
|
- A glob pattern
|
||||||
|
WHEN:
|
||||||
|
- It is translated to a portable regex
|
||||||
|
THEN:
|
||||||
|
- The exact anchored regex is produced
|
||||||
|
"""
|
||||||
|
assert _glob_to_portable_regex(pattern) == expected
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
"pattern",
|
||||||
|
["*", "?", "*.pdf", "a?c", "[abc]x", "[!abc]x", "[]a]", "[!]a]", "[a-c]*", "[a"],
|
||||||
|
)
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
"name",
|
||||||
|
["", "a", "abc", "x", "]", "]x", "file.pdf", "ax", "bx", "dx", "[a"],
|
||||||
|
)
|
||||||
|
def test_agrees_with_fnmatch(pattern: str, name: str) -> None:
|
||||||
|
"""
|
||||||
|
GIVEN:
|
||||||
|
- A glob pattern and a name
|
||||||
|
WHEN:
|
||||||
|
- Matched via the portable regex and via stdlib fnmatch
|
||||||
|
THEN:
|
||||||
|
- Both agree
|
||||||
|
"""
|
||||||
|
regex = _glob_to_portable_regex(pattern)
|
||||||
|
assert bool(re.search(regex, name)) == fnmatch.fnmatchcase(name, pattern)
|
||||||
@@ -69,8 +69,7 @@ class TestArchiver(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
|
|||||||
doc.save()
|
doc.save()
|
||||||
shutil.copy(sample_file, doc.source_path)
|
shutil.copy(sample_file, doc.source_path)
|
||||||
|
|
||||||
with self.assertRaisesMessage(ValueError, "No parser found"):
|
update_document_content_maybe_archive_file(doc.pk)
|
||||||
update_document_content_maybe_archive_file(doc.pk)
|
|
||||||
|
|
||||||
doc = Document.objects.get(id=doc.id)
|
doc = Document.objects.get(id=doc.id)
|
||||||
|
|
||||||
|
|||||||
@@ -105,6 +105,24 @@ class TestMergeDocumentsAsVersionsSerializer(TestCase):
|
|||||||
self.assertFalse(serializer.is_valid())
|
self.assertFalse(serializer.is_valid())
|
||||||
self.assertIn("documents", serializer.errors)
|
self.assertIn("documents", serializer.errors)
|
||||||
|
|
||||||
|
def test_rejects_selected_version(self) -> None:
|
||||||
|
version = Document.objects.create(
|
||||||
|
checksum="D",
|
||||||
|
root_document=self.doc1,
|
||||||
|
version_index=1,
|
||||||
|
)
|
||||||
|
serializer = MergeDocumentsAsVersionsSerializer(
|
||||||
|
data={
|
||||||
|
"documents": [version.id, self.doc2.id],
|
||||||
|
"root_document_id": self.doc2.id,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
self.assertFalse(serializer.is_valid())
|
||||||
|
self.assertEqual(
|
||||||
|
serializer.errors["non_field_errors"][0],
|
||||||
|
"Only top-level documents can be merged as versions.",
|
||||||
|
)
|
||||||
|
|
||||||
def test_allows_root_document_with_versions(self) -> None:
|
def test_allows_root_document_with_versions(self) -> None:
|
||||||
Document.objects.create(
|
Document.objects.create(
|
||||||
checksum="D",
|
checksum="D",
|
||||||
@@ -485,28 +503,35 @@ class TestMergeDocumentsAsVersionsAPI(APITestCase):
|
|||||||
merge_mock.assert_not_called()
|
merge_mock.assert_not_called()
|
||||||
|
|
||||||
@mock.patch("documents.views.execute_bulk_operation.apply_async")
|
@mock.patch("documents.views.execute_bulk_operation.apply_async")
|
||||||
def test_queues_source_document_with_versions(self, enqueue_mock) -> None:
|
def test_rejects_source_document_with_versions_before_queueing(
|
||||||
enqueue_mock.return_value.id = "queued-merge"
|
self,
|
||||||
Document.objects.create(
|
enqueue_mock,
|
||||||
|
) -> None:
|
||||||
|
version = Document.objects.create(
|
||||||
checksum="C",
|
checksum="C",
|
||||||
title="C",
|
title="C",
|
||||||
root_document=self.doc1,
|
root_document=self.doc1,
|
||||||
version_index=1,
|
version_index=1,
|
||||||
owner=self.user,
|
owner=self.user,
|
||||||
)
|
)
|
||||||
|
for trashed in (False, True):
|
||||||
response = self.client.post(
|
with self.subTest(trashed=trashed):
|
||||||
"/api/documents/merge_as_versions/",
|
if trashed:
|
||||||
{
|
version.delete()
|
||||||
"documents": [self.doc1.id, self.doc2.id],
|
response = self.client.post(
|
||||||
"root_document_id": self.doc2.id,
|
"/api/documents/merge_as_versions/",
|
||||||
},
|
{
|
||||||
format="json",
|
"documents": [self.doc1.id, self.doc2.id],
|
||||||
)
|
"root_document_id": self.doc2.id,
|
||||||
|
},
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
format="json",
|
||||||
enqueue_mock.assert_called_once()
|
)
|
||||||
self.assertEqual(response.data["task_id"], "queued-merge")
|
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
|
||||||
|
self.assertEqual(
|
||||||
|
response.data["non_field_errors"][0],
|
||||||
|
"Documents with existing versions cannot be merged into another document.",
|
||||||
|
)
|
||||||
|
enqueue_mock.assert_not_called()
|
||||||
self.doc1.refresh_from_db()
|
self.doc1.refresh_from_db()
|
||||||
self.assertIsNone(self.doc1.root_document_id)
|
self.assertIsNone(self.doc1.root_document_id)
|
||||||
|
|
||||||
|
|||||||
@@ -1,543 +0,0 @@
|
|||||||
import shutil
|
|
||||||
import uuid
|
|
||||||
from unittest import mock
|
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from documents.bulk_operations import execute_bulk_operation
|
|
||||||
from documents.models import PaperlessTask
|
|
||||||
from documents.signals.handlers import task_failure_handler
|
|
||||||
from documents.signals.handlers import task_postrun_handler
|
|
||||||
from documents.signals.handlers import task_revoked_handler
|
|
||||||
from documents.tasks import update_document_content_maybe_archive_file
|
|
||||||
from paperless_testing.factories import DocumentFactory
|
|
||||||
from paperless_testing.factories import UserFactory
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def operation(paperless_dirs):
|
|
||||||
user = UserFactory(superuser=True)
|
|
||||||
documents = DocumentFactory.create_batch(3)
|
|
||||||
parent = PaperlessTask.objects.create(
|
|
||||||
task_id=str(uuid.uuid4()),
|
|
||||||
task_type=PaperlessTask.TaskType.BULK_UPDATE,
|
|
||||||
owner=user,
|
|
||||||
trigger_source=PaperlessTask.TriggerSource.WEB_UI,
|
|
||||||
input_data={"operation": "reprocess", "document_count": 3},
|
|
||||||
)
|
|
||||||
kwargs = {
|
|
||||||
"operation": "reprocess",
|
|
||||||
"document_ids": [document.pk for document in documents],
|
|
||||||
"parameters": {"remote_ocr": True},
|
|
||||||
"user_id": user.pk,
|
|
||||||
}
|
|
||||||
return parent, kwargs
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def pdf_documents(paperless_dirs, tmp_path):
|
|
||||||
from documents.models import Document
|
|
||||||
from paperless_testing.samples import SIMPLE_DIGITAL_PDF
|
|
||||||
|
|
||||||
documents = DocumentFactory.create_batch(2, mime_type="application/pdf")
|
|
||||||
for document in documents:
|
|
||||||
source = tmp_path / f"{document.pk}.pdf"
|
|
||||||
shutil.copy(SIMPLE_DIGITAL_PDF, source)
|
|
||||||
Document.objects.filter(pk=document.pk).update(filename=str(source))
|
|
||||||
document.refresh_from_db()
|
|
||||||
return documents
|
|
||||||
|
|
||||||
|
|
||||||
def complete(child, status="SUCCESS"):
|
|
||||||
if status == "FAILURE":
|
|
||||||
task_failure_handler(
|
|
||||||
sender=update_document_content_maybe_archive_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
exception=RuntimeError("Parser failed"),
|
|
||||||
)
|
|
||||||
elif status == "REVOKED":
|
|
||||||
task_revoked_handler(
|
|
||||||
sender=update_document_content_maybe_archive_file,
|
|
||||||
request=mock.Mock(id=child.task_id),
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
task_postrun_handler(
|
|
||||||
task=update_document_content_maybe_archive_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
state=status,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize("outcome", ["SUCCESS", "FAILURE", "REVOKED"])
|
|
||||||
def test_parent_waits_for_all_children(operation, outcome):
|
|
||||||
parent, kwargs = operation
|
|
||||||
with (
|
|
||||||
mock.patch(
|
|
||||||
"documents.tasks.update_document_content_maybe_archive_file.apply_async",
|
|
||||||
) as publish,
|
|
||||||
mock.patch("documents.signals.handlers._send_bulk_operation_status") as notify,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
assert parent.date_done is None
|
|
||||||
children = list(parent.children.order_by("pk"))
|
|
||||||
assert len(children) == 3
|
|
||||||
assert publish.call_count == 3
|
|
||||||
assert all(child.owner_id == parent.owner_id for child in children)
|
|
||||||
assert all(child.trigger_source == parent.trigger_source for child in children)
|
|
||||||
assert all(call.args[1]["remote_ocr"] for call in publish.call_args_list)
|
|
||||||
complete(children[0], outcome)
|
|
||||||
complete(children[1])
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
notify.assert_not_called()
|
|
||||||
complete(children[2])
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == ("success" if outcome == "SUCCESS" else "failure")
|
|
||||||
assert parent.result_data["succeeded_count"] == (
|
|
||||||
3 if outcome == "SUCCESS" else 2
|
|
||||||
)
|
|
||||||
assert parent.result_data["failed_count"] == (0 if outcome == "SUCCESS" else 1)
|
|
||||||
assert parent.date_done is not None
|
|
||||||
assert parent.duration_seconds >= 0
|
|
||||||
notify.assert_called_once()
|
|
||||||
complete(children[2])
|
|
||||||
notify.assert_called_once()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize("outcome", ["SUCCESS", "FAILURE"])
|
|
||||||
def test_fast_children_wait_for_dispatch_to_finish(operation, outcome):
|
|
||||||
parent, kwargs = operation
|
|
||||||
|
|
||||||
def publish(*args, task_id, **kwargs):
|
|
||||||
# Every child is registered before the first publication.
|
|
||||||
assert parent.children.count() == 3
|
|
||||||
complete(PaperlessTask.objects.get(task_id=task_id), outcome)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
assert not parent.dispatched
|
|
||||||
|
|
||||||
with (
|
|
||||||
mock.patch(
|
|
||||||
"documents.tasks.update_document_content_maybe_archive_file.apply_async",
|
|
||||||
side_effect=publish,
|
|
||||||
),
|
|
||||||
mock.patch("documents.signals.handlers._send_bulk_operation_status") as notify,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == ("success" if outcome == "SUCCESS" else "failure")
|
|
||||||
notify.assert_called_once()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize("published_count", [0, 1])
|
|
||||||
def test_publish_failure_waits_for_published_children(operation, published_count):
|
|
||||||
parent, kwargs = operation
|
|
||||||
with (
|
|
||||||
mock.patch(
|
|
||||||
"documents.tasks.update_document_content_maybe_archive_file.apply_async",
|
|
||||||
side_effect=[None] * published_count + [RuntimeError("Broker unavailable")],
|
|
||||||
),
|
|
||||||
mock.patch("documents.signals.handlers._send_bulk_operation_status") as notify,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=False)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
if published_count:
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
notify.assert_not_called()
|
|
||||||
complete(parent.children.get(status=PaperlessTask.Status.PENDING))
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.FAILURE
|
|
||||||
assert parent.result_data["error_message"] == "Broker unavailable"
|
|
||||||
assert parent.result_data["succeeded_count"] == published_count
|
|
||||||
assert parent.result_data["failed_count"] == 3 - published_count
|
|
||||||
notify.assert_called_once()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
def test_empty_selection_completes_without_children(operation):
|
|
||||||
parent, kwargs = operation
|
|
||||||
kwargs["document_ids"] = []
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.SUCCESS
|
|
||||||
assert not parent.children.exists()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
|
||||||
def test_client_cannot_supply_parent_task_id(operation):
|
|
||||||
from rest_framework.test import APIClient
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
client = APIClient()
|
|
||||||
client.force_authenticate(parent.owner)
|
|
||||||
with mock.patch("documents.views.execute_bulk_operation.apply_async") as publish:
|
|
||||||
response = client.post(
|
|
||||||
"/api/documents/bulk_edit/",
|
|
||||||
{
|
|
||||||
"documents": kwargs["document_ids"],
|
|
||||||
"method": "set_correspondent",
|
|
||||||
"parameters": {"correspondent": None, "parent_task_id": parent.task_id},
|
|
||||||
},
|
|
||||||
format="json",
|
|
||||||
)
|
|
||||||
assert response.status_code == 400
|
|
||||||
publish.assert_not_called()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize(
|
|
||||||
"name,parameters",
|
|
||||||
[
|
|
||||||
("rotate", {"degrees": 90}),
|
|
||||||
("merge", {}),
|
|
||||||
("split", {"pages": [[1]]}),
|
|
||||||
("delete_pages", {"pages": [1]}),
|
|
||||||
("edit_pdf", {"operations": [{"page": 1}], "update_document": True}),
|
|
||||||
("edit_pdf", {"operations": [{"page": 1}]}),
|
|
||||||
("remove_password", {"password": "secret", "update_document": True}),
|
|
||||||
("remove_password", {"password": "secret"}),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
def test_file_operations_wait_for_consumption(
|
|
||||||
operation,
|
|
||||||
pdf_documents,
|
|
||||||
name,
|
|
||||||
parameters,
|
|
||||||
):
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
documents = pdf_documents
|
|
||||||
kwargs.update(
|
|
||||||
operation=name,
|
|
||||||
document_ids=[doc.pk for doc in documents]
|
|
||||||
if name == "merge"
|
|
||||||
else [documents[0].pk],
|
|
||||||
parameters=parameters,
|
|
||||||
)
|
|
||||||
parent.input_data = {
|
|
||||||
"operation": name,
|
|
||||||
"document_count": len(kwargs["document_ids"]),
|
|
||||||
}
|
|
||||||
parent.save()
|
|
||||||
with (
|
|
||||||
mock.patch("documents.tasks.consume_file.apply_async") as publish,
|
|
||||||
mock.patch("documents.bulk_edit.pdf_ops.needs_decrypt", return_value=True),
|
|
||||||
mock.patch(
|
|
||||||
"documents.bulk_edit.pdf_ops.decrypt_pdf",
|
|
||||||
return_value=documents[0].source_path,
|
|
||||||
),
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
child = parent.children.get()
|
|
||||||
assert child.task_type == PaperlessTask.TaskType.CONSUME_FILE
|
|
||||||
publish.assert_called_once()
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"document_id": 100},
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.SUCCESS
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize(
|
|
||||||
"outcome",
|
|
||||||
["success", "failure", "duplicate", "stopped", "revoked"],
|
|
||||||
)
|
|
||||||
def test_replacement_waits_for_deletion_or_recovery(operation, pdf_documents, outcome):
|
|
||||||
from documents.models import Document
|
|
||||||
from documents.task_tracking import finish_file_operation
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
doc = pdf_documents[0]
|
|
||||||
doc.archive_serial_number = 123
|
|
||||||
Document.objects.filter(pk=doc.pk).update(archive_serial_number=123)
|
|
||||||
kwargs.update(
|
|
||||||
operation="edit_pdf",
|
|
||||||
document_ids=[doc.pk],
|
|
||||||
parameters={"operations": [{"page": 1}], "delete_original": True},
|
|
||||||
)
|
|
||||||
parent.input_data = {"operation": "edit_pdf", "document_count": 1}
|
|
||||||
parent.save()
|
|
||||||
with (
|
|
||||||
mock.patch("documents.tasks.consume_file.apply_async"),
|
|
||||||
mock.patch(
|
|
||||||
"documents.task_tracking.finish_file_operation.apply_async",
|
|
||||||
) as finalize,
|
|
||||||
mock.patch("documents.signals.handlers._send_bulk_operation_status") as notify,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
consume = parent.children.get(task_type=PaperlessTask.TaskType.CONSUME_FILE)
|
|
||||||
finalizer = parent.children.get(task_type=PaperlessTask.TaskType.BULK_DELETE)
|
|
||||||
finalize.assert_not_called()
|
|
||||||
if outcome == "failure":
|
|
||||||
complete(consume, "FAILURE")
|
|
||||||
elif outcome == "revoked":
|
|
||||||
complete(consume, "REVOKED")
|
|
||||||
else:
|
|
||||||
retval = (
|
|
||||||
{"document_id": 100}
|
|
||||||
if outcome == "success"
|
|
||||||
else (
|
|
||||||
{"duplicate_of": 100}
|
|
||||||
if outcome == "duplicate"
|
|
||||||
else {"reason": "Stopped"}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=consume.task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval=retval,
|
|
||||||
)
|
|
||||||
finalize.assert_called_once()
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
assert Document.objects.filter(pk=doc.pk).exists()
|
|
||||||
notify.assert_not_called()
|
|
||||||
finish_file_operation.apply(
|
|
||||||
kwargs=finalizer.input_data,
|
|
||||||
task_id=finalizer.task_id,
|
|
||||||
throw=True,
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == ("success" if outcome == "success" else "failure")
|
|
||||||
notify.assert_called_once()
|
|
||||||
if outcome == "success":
|
|
||||||
assert not Document.objects.filter(pk=doc.pk).exists()
|
|
||||||
else:
|
|
||||||
doc.refresh_from_db()
|
|
||||||
assert not doc.is_deleted
|
|
||||||
assert doc.archive_serial_number == 123
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
def test_consumption_descendants_keep_operation_active(operation):
|
|
||||||
from documents.data_models import ConsumableDocument
|
|
||||||
from documents.data_models import DocumentSource
|
|
||||||
from documents.signals.handlers import before_task_publish_handler
|
|
||||||
from documents.task_tracking import finish_dispatch
|
|
||||||
from documents.task_tracking import queue_processing_tasks
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
from paperless_testing.samples import SIMPLE_DIGITAL_PDF
|
|
||||||
|
|
||||||
parent, _ = operation
|
|
||||||
parent.status = PaperlessTask.Status.STARTED
|
|
||||||
parent.save()
|
|
||||||
input_doc = ConsumableDocument(
|
|
||||||
source=DocumentSource.ConsumeFolder,
|
|
||||||
original_file=SIMPLE_DIGITAL_PDF,
|
|
||||||
)
|
|
||||||
with mock.patch("documents.tasks.consume_file.apply_async"):
|
|
||||||
queue_processing_tasks(parent.task_id, [consume_file.s(input_doc=input_doc)])
|
|
||||||
child = parent.children.get()
|
|
||||||
finish_dispatch(parent, {})
|
|
||||||
descendant_id = str(uuid.uuid4())
|
|
||||||
before_task_publish_handler(
|
|
||||||
headers={
|
|
||||||
"task": consume_file.name,
|
|
||||||
"id": descendant_id,
|
|
||||||
"parent_id": child.task_id,
|
|
||||||
},
|
|
||||||
body=((), {"input_doc": input_doc}, {}),
|
|
||||||
)
|
|
||||||
descendant = PaperlessTask.objects.get(task_id=descendant_id)
|
|
||||||
assert descendant.parent_id == child.pk
|
|
||||||
assert descendant.owner_id == parent.owner_id
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"reason": "Barcode splitting complete"},
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=descendant_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"document_id": 100},
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.SUCCESS
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
@pytest.mark.parametrize("failure", ["delete", "restore", "publish"])
|
|
||||||
def test_final_step_failures_reach_parent(operation, pdf_documents, failure):
|
|
||||||
from documents.task_tracking import finish_file_operation
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
doc = pdf_documents[0]
|
|
||||||
kwargs.update(
|
|
||||||
operation="edit_pdf",
|
|
||||||
document_ids=[doc.pk],
|
|
||||||
parameters={"operations": [{"page": 1}], "delete_original": True},
|
|
||||||
)
|
|
||||||
with (
|
|
||||||
mock.patch("documents.tasks.consume_file.apply_async"),
|
|
||||||
mock.patch(
|
|
||||||
"documents.task_tracking.finish_file_operation.apply_async",
|
|
||||||
side_effect=RuntimeError("Publish failed")
|
|
||||||
if failure == "publish"
|
|
||||||
else None,
|
|
||||||
),
|
|
||||||
mock.patch("documents.signals.handlers._send_bulk_operation_status") as notify,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
child = parent.children.get(task_type=PaperlessTask.TaskType.CONSUME_FILE)
|
|
||||||
if failure == "restore":
|
|
||||||
complete(child, "FAILURE")
|
|
||||||
else:
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"document_id": 100},
|
|
||||||
)
|
|
||||||
finalizer = parent.children.get(task_type=PaperlessTask.TaskType.BULK_DELETE)
|
|
||||||
if failure != "publish":
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
notify.assert_not_called()
|
|
||||||
target = (
|
|
||||||
"documents.bulk_edit.delete"
|
|
||||||
if failure == "delete"
|
|
||||||
else "documents.bulk_edit.restore_archive_serial_numbers"
|
|
||||||
)
|
|
||||||
with mock.patch(target, side_effect=RuntimeError("Final step failed")):
|
|
||||||
finish_file_operation.apply(
|
|
||||||
kwargs=finalizer.input_data,
|
|
||||||
task_id=finalizer.task_id,
|
|
||||||
throw=False,
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
finalizer.refresh_from_db()
|
|
||||||
assert finalizer.status == PaperlessTask.Status.FAILURE
|
|
||||||
assert parent.status == PaperlessTask.Status.FAILURE
|
|
||||||
notify.assert_called_once()
|
|
||||||
doc.refresh_from_db()
|
|
||||||
assert not doc.is_deleted
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
def test_partial_merge_preserves_skipped_original_and_reports_it(
|
|
||||||
operation,
|
|
||||||
pdf_documents,
|
|
||||||
):
|
|
||||||
from documents.models import Document
|
|
||||||
from documents.task_tracking import finish_file_operation
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
included, excluded = pdf_documents
|
|
||||||
excluded.source_path.unlink()
|
|
||||||
kwargs.update(
|
|
||||||
operation="merge",
|
|
||||||
document_ids=[included.pk, excluded.pk],
|
|
||||||
parameters={"delete_originals": True},
|
|
||||||
)
|
|
||||||
parent.input_data = {"operation": "merge", "document_count": 2}
|
|
||||||
parent.save()
|
|
||||||
with (
|
|
||||||
mock.patch("documents.tasks.consume_file.apply_async") as consume,
|
|
||||||
mock.patch("documents.task_tracking.finish_file_operation.apply_async"),
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
consume.assert_called_once()
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
assert parent.result_data["failed_document_ids"] == [excluded.pk]
|
|
||||||
child = parent.children.get(task_type=PaperlessTask.TaskType.CONSUME_FILE)
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=child.task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"document_id": 100},
|
|
||||||
)
|
|
||||||
finalizer = parent.children.get(task_type=PaperlessTask.TaskType.BULK_DELETE)
|
|
||||||
assert finalizer.input_data["delete_ids"] == [included.pk]
|
|
||||||
finish_file_operation.apply(
|
|
||||||
kwargs=finalizer.input_data,
|
|
||||||
task_id=finalizer.task_id,
|
|
||||||
throw=True,
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.FAILURE
|
|
||||||
assert parent.result_data["failed_document_ids"] == [excluded.pk]
|
|
||||||
assert not Document.objects.filter(pk=included.pk).exists()
|
|
||||||
assert Document.objects.filter(pk=excluded.pk).exists()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
def test_merge_with_no_valid_inputs_fails(operation, pdf_documents):
|
|
||||||
parent, kwargs = operation
|
|
||||||
for doc in pdf_documents:
|
|
||||||
doc.source_path.unlink()
|
|
||||||
kwargs.update(
|
|
||||||
operation="merge",
|
|
||||||
document_ids=[doc.pk for doc in pdf_documents],
|
|
||||||
parameters={},
|
|
||||||
)
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=False)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.FAILURE
|
|
||||||
assert not parent.children.exists()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db(transaction=True)
|
|
||||||
def test_split_waits_for_every_output_before_recovery(operation, pdf_documents):
|
|
||||||
from documents.task_tracking import finish_file_operation
|
|
||||||
from documents.tasks import consume_file
|
|
||||||
|
|
||||||
parent, kwargs = operation
|
|
||||||
doc = pdf_documents[0]
|
|
||||||
kwargs.update(
|
|
||||||
operation="split",
|
|
||||||
document_ids=[doc.pk],
|
|
||||||
parameters={"pages": [[1], [1]], "delete_originals": True},
|
|
||||||
)
|
|
||||||
with (
|
|
||||||
mock.patch("documents.tasks.consume_file.apply_async"),
|
|
||||||
mock.patch(
|
|
||||||
"documents.task_tracking.finish_file_operation.apply_async",
|
|
||||||
) as finalize,
|
|
||||||
):
|
|
||||||
execute_bulk_operation.apply(kwargs=kwargs, task_id=parent.task_id, throw=True)
|
|
||||||
children = list(
|
|
||||||
parent.children.filter(task_type=PaperlessTask.TaskType.CONSUME_FILE),
|
|
||||||
)
|
|
||||||
assert len(children) == 2
|
|
||||||
complete(children[0], "FAILURE")
|
|
||||||
finalize.assert_not_called()
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.STARTED
|
|
||||||
task_postrun_handler(
|
|
||||||
task=consume_file,
|
|
||||||
task_id=children[1].task_id,
|
|
||||||
state="SUCCESS",
|
|
||||||
retval={"document_id": 100},
|
|
||||||
)
|
|
||||||
finalize.assert_called_once()
|
|
||||||
finalizer = parent.children.get(task_type=PaperlessTask.TaskType.BULK_DELETE)
|
|
||||||
finish_file_operation.apply(
|
|
||||||
kwargs=finalizer.input_data,
|
|
||||||
task_id=finalizer.task_id,
|
|
||||||
throw=True,
|
|
||||||
)
|
|
||||||
parent.refresh_from_db()
|
|
||||||
assert parent.status == PaperlessTask.Status.FAILURE
|
|
||||||
doc.refresh_from_db()
|
|
||||||
assert not doc.is_deleted
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
import shutil
|
import shutil
|
||||||
import uuid
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
@@ -17,7 +16,6 @@ from documents import tasks
|
|||||||
from documents.models import Correspondent
|
from documents.models import Correspondent
|
||||||
from documents.models import Document
|
from documents.models import Document
|
||||||
from documents.models import DocumentType
|
from documents.models import DocumentType
|
||||||
from documents.models import PaperlessTask
|
|
||||||
from documents.models import Tag
|
from documents.models import Tag
|
||||||
from documents.models import WorkflowAction
|
from documents.models import WorkflowAction
|
||||||
from documents.sanity_checker import SanityCheckFailedException
|
from documents.sanity_checker import SanityCheckFailedException
|
||||||
@@ -282,60 +280,6 @@ class TestUpdateContent(DirectoriesMixin, TestCase):
|
|||||||
tasks.update_document_content_maybe_archive_file(doc.pk)
|
tasks.update_document_content_maybe_archive_file(doc.pk)
|
||||||
self.assertNotEqual(Document.objects.get(pk=doc.pk).content, "test")
|
self.assertNotEqual(Document.objects.get(pk=doc.pk).content, "test")
|
||||||
|
|
||||||
@mock.patch("documents.tasks.get_parser_registry")
|
|
||||||
def test_missing_parser_records_failure(self, registry) -> None:
|
|
||||||
doc = DocumentFactory(content="Original content", mime_type="application/pdf")
|
|
||||||
registry.return_value.get_parser_for_file.return_value = None
|
|
||||||
task = PaperlessTask.objects.create(
|
|
||||||
task_id=str(uuid.uuid4()),
|
|
||||||
task_type=PaperlessTask.TaskType.REPROCESS_DOCUMENT,
|
|
||||||
)
|
|
||||||
|
|
||||||
result = tasks.update_document_content_maybe_archive_file.apply(
|
|
||||||
args=[doc.pk],
|
|
||||||
task_id=task.task_id,
|
|
||||||
throw=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
self.assertTrue(result.failed())
|
|
||||||
task.refresh_from_db()
|
|
||||||
self.assertEqual(task.status, PaperlessTask.Status.FAILURE)
|
|
||||||
self.assertIn("No parser found", task.result_data["error_message"])
|
|
||||||
doc.refresh_from_db()
|
|
||||||
self.assertEqual(doc.content, "Original content")
|
|
||||||
|
|
||||||
@mock.patch("documents.tasks.should_produce_archive", return_value=False)
|
|
||||||
@mock.patch("documents.tasks.get_parser_registry")
|
|
||||||
def test_parser_failure_records_failure(self, registry, _produce_archive) -> None:
|
|
||||||
for method in ("parse", "get_thumbnail"):
|
|
||||||
with self.subTest(method=method):
|
|
||||||
doc = DocumentFactory(
|
|
||||||
content="Original content",
|
|
||||||
mime_type="application/pdf",
|
|
||||||
)
|
|
||||||
parser = mock.MagicMock()
|
|
||||||
getattr(parser, method).side_effect = RuntimeError("Processing failed")
|
|
||||||
parser_class = mock.MagicMock()
|
|
||||||
parser_class.return_value.__enter__.return_value = parser
|
|
||||||
registry.return_value.get_parser_for_file.return_value = parser_class
|
|
||||||
task = PaperlessTask.objects.create(
|
|
||||||
task_id=str(uuid.uuid4()),
|
|
||||||
task_type=PaperlessTask.TaskType.REPROCESS_DOCUMENT,
|
|
||||||
)
|
|
||||||
|
|
||||||
result = tasks.update_document_content_maybe_archive_file.apply(
|
|
||||||
args=[doc.pk],
|
|
||||||
task_id=task.task_id,
|
|
||||||
throw=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
self.assertTrue(result.failed())
|
|
||||||
task.refresh_from_db()
|
|
||||||
self.assertEqual(task.status, PaperlessTask.Status.FAILURE)
|
|
||||||
self.assertEqual(task.result_data["error_message"], "Processing failed")
|
|
||||||
doc.refresh_from_db()
|
|
||||||
self.assertEqual(doc.content, "Original content")
|
|
||||||
|
|
||||||
def _create_root_with_version(self) -> tuple[Document, Document]:
|
def _create_root_with_version(self) -> tuple[Document, Document]:
|
||||||
sample1 = self.dirs.scratch_dir / "sample.pdf"
|
sample1 = self.dirs.scratch_dir / "sample.pdf"
|
||||||
shutil.copy(SIMPLE_DIGITAL_PDF, sample1)
|
shutil.copy(SIMPLE_DIGITAL_PDF, sample1)
|
||||||
@@ -426,8 +370,7 @@ class TestUpdateContentRemoteOCR(DirectoriesMixin, TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _allow_remote(self, **kwargs) -> bool:
|
def _allow_remote(self, **kwargs) -> bool:
|
||||||
with self.assertRaisesMessage(ValueError, "No parser found"):
|
tasks.update_document_content_maybe_archive_file(self.doc.pk, **kwargs)
|
||||||
tasks.update_document_content_maybe_archive_file(self.doc.pk, **kwargs)
|
|
||||||
_, call_kwargs = self.mock_registry.return_value.get_parser_for_file.call_args
|
_, call_kwargs = self.mock_registry.return_value.get_parser_for_file.call_args
|
||||||
return call_kwargs["allow_remote"]
|
return call_kwargs["allow_remote"]
|
||||||
|
|
||||||
|
|||||||
@@ -2976,9 +2976,8 @@ class DocumentOperationPermissionMixin(PassUserMixin, DocumentSelectionMixin):
|
|||||||
parser_classes = (parsers.JSONParser,)
|
parser_classes = (parsers.JSONParser,)
|
||||||
|
|
||||||
def _queue_bulk_operation(self, method, documents, parameters, from_webui):
|
def _queue_bulk_operation(self, method, documents, parameters, from_webui):
|
||||||
for parameter in ("update_callback", "parent_task_id"):
|
if "update_callback" in parameters:
|
||||||
if parameter in parameters:
|
raise ValueError("Unsupported bulk operation parameter: update_callback")
|
||||||
raise ValueError(f"Unsupported bulk operation parameter: {parameter}")
|
|
||||||
trigger_source = (
|
trigger_source = (
|
||||||
PaperlessTask.TriggerSource.WEB_UI
|
PaperlessTask.TriggerSource.WEB_UI
|
||||||
if from_webui
|
if from_webui
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Afrikaans\n"
|
"Language-Team: Afrikaans\n"
|
||||||
"Language: af_ZA\n"
|
"Language: af_ZA\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Ongeldige veranderlike bespeur."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Amharic\n"
|
"Language-Team: Amharic\n"
|
||||||
"Language: am_ET\n"
|
"Language: am_ET\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr ""
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Arabic\n"
|
"Language-Team: Arabic\n"
|
||||||
"Language: ar_SA\n"
|
"Language: ar_SA\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "اكتشاف متغير خاطئ."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Belarusian\n"
|
"Language-Team: Belarusian\n"
|
||||||
"Language: be_BY\n"
|
"Language: be_BY\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Выяўлена няправільная зменная."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Bulgarian\n"
|
"Language-Team: Bulgarian\n"
|
||||||
"Language: bg_BG\n"
|
"Language: bg_BG\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "стартиране на работните процеси"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Засечена е невалидна променлива."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Catalan\n"
|
"Language-Team: Catalan\n"
|
||||||
"Language: ca_ES\n"
|
"Language: ca_ES\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "flux corrents"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Permisos insuficients."
|
msgstr "Permisos insuficients."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Variable detectada invàlida."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Duplicat d'identificadors de documents no permès."
|
msgstr "Duplicat d'identificadors de documents no permès."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Documents no trobats: %(ids)s"
|
msgstr "Documents no trobats: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Permisos insuficients per compartir document %(id)s."
|
msgstr "Permisos insuficients per compartir document %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Paquet ja s'està processant."
|
msgstr "Paquet ja s'està processant."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "El paquet de link encarà s'està preparant. Prova de nou més tard."
|
msgstr "El paquet de link encarà s'està preparant. Prova de nou més tard."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "El paquet d'enllaç no està disponible."
|
msgstr "El paquet d'enllaç no està disponible."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Czech\n"
|
"Language-Team: Czech\n"
|
||||||
"Language: cs_CZ\n"
|
"Language: cs_CZ\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "spuštění pracovních postupů"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Nedostatečná oprávnění."
|
msgstr "Nedostatečná oprávnění."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Zjištěna neplatná proměnná."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Nedostatečná oprávnění ke sdílení dokumentu %(id)s."
|
msgstr "Nedostatečná oprávnění ke sdílení dokumentu %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Danish\n"
|
"Language-Team: Danish\n"
|
||||||
"Language: da_DK\n"
|
"Language: da_DK\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "workflow-kørsler"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Ugyldig variabel fundet."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: German, Switzerland\n"
|
"Language-Team: German, Switzerland\n"
|
||||||
"Language: de_CH\n"
|
"Language: de_CH\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "Arbeitsablauf wird ausgeführt"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Unzureichende Berechtigungen."
|
msgstr "Unzureichende Berechtigungen."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Ungültige Variable erkannt."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Doppelte Dokumentbezeichner sind nicht erlaubt."
|
msgstr "Doppelte Dokumentbezeichner sind nicht erlaubt."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Dokumente nicht gefunden: %(ids)s"
|
msgstr "Dokumente nicht gefunden: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Unzureichende Berechtigungen, um Dokument %(id)s zu teilen."
|
msgstr "Unzureichende Berechtigungen, um Dokument %(id)s zu teilen."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Paket wird bereits verarbeitet."
|
msgstr "Paket wird bereits verarbeitet."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Das Freigabelink-Paket wird noch vorbereitet. Bitte versuchen Sie es später erneut."
|
msgstr "Das Freigabelink-Paket wird noch vorbereitet. Bitte versuchen Sie es später erneut."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Das Freigabelink-Paket ist nicht verfügbar."
|
msgstr "Das Freigabelink-Paket ist nicht verfügbar."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: German\n"
|
"Language-Team: German\n"
|
||||||
"Language: de_DE\n"
|
"Language: de_DE\n"
|
||||||
@@ -998,11 +998,11 @@ msgstr "Aufgaben"
|
|||||||
|
|
||||||
#: documents/models.py:1010
|
#: documents/models.py:1010
|
||||||
msgid "Plain"
|
msgid "Plain"
|
||||||
msgstr ""
|
msgstr "Einfach"
|
||||||
|
|
||||||
#: documents/models.py:1011
|
#: documents/models.py:1011
|
||||||
msgid "Markdown"
|
msgid "Markdown"
|
||||||
msgstr ""
|
msgstr "Markdown"
|
||||||
|
|
||||||
#: documents/models.py:1016
|
#: documents/models.py:1016
|
||||||
msgid "Note for the document"
|
msgid "Note for the document"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "Arbeitsablauf wird ausgeführt"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Unzureichende Berechtigungen."
|
msgstr "Unzureichende Berechtigungen."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Ungültige Variable erkannt."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Doppelte Dokumentbezeichner sind nicht erlaubt."
|
msgstr "Doppelte Dokumentbezeichner sind nicht erlaubt."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Dokumente nicht gefunden: %(ids)s"
|
msgstr "Dokumente nicht gefunden: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr "Zeitüberschreitung bei der KI-Backendanfrage."
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr "Das KI-Backend hat die Anfrage abgelehnt. Details in den Protokollen."
|
msgstr "Das KI-Backend hat die Anfrage abgelehnt. Details in den Protokollen."
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Unzureichende Berechtigungen, um Dokument %(id)s zu teilen."
|
msgstr "Unzureichende Berechtigungen, um Dokument %(id)s zu teilen."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Paket wird bereits verarbeitet."
|
msgstr "Paket wird bereits verarbeitet."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Das Freigabelink-Paket wird noch vorbereitet. Bitte versuchen Sie es später erneut."
|
msgstr "Das Freigabelink-Paket wird noch vorbereitet. Bitte versuchen Sie es später erneut."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Das Freigabelink-Paket ist nicht verfügbar."
|
msgstr "Das Freigabelink-Paket ist nicht verfügbar."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Greek\n"
|
"Language-Team: Greek\n"
|
||||||
"Language: el_GR\n"
|
"Language: el_GR\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "εκτελέσεις ροής εργασίας"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Εντοπίστηκε μη έγκυρη μεταβλητή."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2022-02-17 04:17\n"
|
"PO-Revision-Date: 2022-02-17 04:17\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: English\n"
|
"Language-Team: English\n"
|
||||||
@@ -1670,7 +1670,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1710,7 +1710,7 @@ msgstr ""
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1981,20 +1981,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Spanish\n"
|
"Language-Team: Spanish\n"
|
||||||
"Language: es_ES\n"
|
"Language: es_ES\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "ejecuciones de flujo de trabajo"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Permisos insuficientes."
|
msgstr "Permisos insuficientes."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Variable inválida."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "No se permiten identificadores de documento duplicados."
|
msgstr "No se permiten identificadores de documento duplicados."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Documentos no encontrados: %(ids)s"
|
msgstr "Documentos no encontrados: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Permisos insuficientes para compartir el documento %(id)s."
|
msgstr "Permisos insuficientes para compartir el documento %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "El paquete ya está siendo procesado."
|
msgstr "El paquete ya está siendo procesado."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "El paquete de enlace compartido aún está siendo preparado. Por favor, inténtalo de nuevo más tarde."
|
msgstr "El paquete de enlace compartido aún está siendo preparado. Por favor, inténtalo de nuevo más tarde."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "El paquete de enlace compartido no está disponible."
|
msgstr "El paquete de enlace compartido no está disponible."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Estonian\n"
|
"Language-Team: Estonian\n"
|
||||||
"Language: et_EE\n"
|
"Language: et_EE\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr ""
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Persian\n"
|
"Language-Team: Persian\n"
|
||||||
"Language: fa_IR\n"
|
"Language: fa_IR\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "گردش کار اجرا می شود"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "متغیر نامعتبر شناسایی شده است."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Finnish\n"
|
"Language-Team: Finnish\n"
|
||||||
"Language: fi_FI\n"
|
"Language: fi_FI\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Virheellinen muuttuja havaittu."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
"Language: fr_FR\n"
|
"Language: fr_FR\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "le flux de travail s'exécute"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Droits insuffisants."
|
msgstr "Droits insuffisants."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Variable invalide détectée."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Les identificateurs de document en double ne sont pas autorisés."
|
msgstr "Les identificateurs de document en double ne sont pas autorisés."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Documents introuvables : %(ids)s"
|
msgstr "Documents introuvables : %(ids)s"
|
||||||
@@ -1952,20 +1952,20 @@ msgstr "La requête d'arrière-plan IA a expiré."
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Droits d'accès insuffisant pour partager %(id)s document."
|
msgstr "Droits d'accès insuffisant pour partager %(id)s document."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Le paquet est déjà en cours de traitement."
|
msgstr "Le paquet est déjà en cours de traitement."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Le lot de liens de partage est en cours de préparation. Veuillez réessayer plus tard."
|
msgstr "Le lot de liens de partage est en cours de préparation. Veuillez réessayer plus tard."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Le lot de liens de partage n'est pas disponible."
|
msgstr "Le lot de liens de partage n'est pas disponible."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Hebrew\n"
|
"Language-Team: Hebrew\n"
|
||||||
"Language: he_IL\n"
|
"Language: he_IL\n"
|
||||||
@@ -1654,7 +1654,7 @@ msgstr "הרצות זרימת עבודה"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "הרשאות אינן מספיקות."
|
msgstr "הרשאות אינן מספיקות."
|
||||||
|
|
||||||
@@ -1693,7 +1693,7 @@ msgstr "משתנה לא חוקי זוהה."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "מזהי מסמכים כפולים אינם מורשים."
|
msgstr "מזהי מסמכים כפולים אינם מורשים."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "מסמכים לא נמצאו: %(ids)s"
|
msgstr "מסמכים לא נמצאו: %(ids)s"
|
||||||
@@ -1954,20 +1954,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "הרשאות לא מספיקות לשיתוף מסמך %(id)s."
|
msgstr "הרשאות לא מספיקות לשיתוף מסמך %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "החבילה (Bundle) כבר נמצאת בתהליך עיבוד."
|
msgstr "החבילה (Bundle) כבר נמצאת בתהליך עיבוד."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "חבילת קישור השיתוף עדיין בהכנה. נא לנסות שוב מאוחר יותר."
|
msgstr "חבילת קישור השיתוף עדיין בהכנה. נא לנסות שוב מאוחר יותר."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "חבילת קישור השיתוף אינה זמינה."
|
msgstr "חבילת קישור השיתוף אינה זמינה."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Hindi\n"
|
"Language-Team: Hindi\n"
|
||||||
"Language: hi_IN\n"
|
"Language: hi_IN\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr ""
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Croatian\n"
|
"Language-Team: Croatian\n"
|
||||||
"Language: hr_HR\n"
|
"Language: hr_HR\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "tijek rada pokrenut"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Nedovoljne ovlasti."
|
msgstr "Nedovoljne ovlasti."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Otkrivena je nevaljana vrsta datoteke."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Duplicirani identifikatori dokumenata nisu dopušteni."
|
msgstr "Duplicirani identifikatori dokumenata nisu dopušteni."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Dokumenti nisu pronađeni: %(ids)s"
|
msgstr "Dokumenti nisu pronađeni: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr "Zahtjev prema AI pozadinskom sustavu je istekao."
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr "AI pozadinski sustav je odbio zahtjev. Provjerite zapise (logs) za više detalja."
|
msgstr "AI pozadinski sustav je odbio zahtjev. Provjerite zapise (logs) za više detalja."
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Nedovoljne ovlasti za dijeljenje dokumenta %(id)s."
|
msgstr "Nedovoljne ovlasti za dijeljenje dokumenta %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Paket se već obrađuje."
|
msgstr "Paket se već obrađuje."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Paket linka za dijeljenje se još priprema. Pokušajte ponovo kasnije."
|
msgstr "Paket linka za dijeljenje se još priprema. Pokušajte ponovo kasnije."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Paket linka za dijeljenje nije dostupan."
|
msgstr "Paket linka za dijeljenje nije dostupan."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Hungarian\n"
|
"Language-Team: Hungarian\n"
|
||||||
"Language: hu_HU\n"
|
"Language: hu_HU\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "munkafolyamat futtatások"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Nincs jogosúltsága."
|
msgstr "Nincs jogosúltsága."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Érvénytelen változó észlelve."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "A dokumentumazonosítók duplikálása nem megengedett."
|
msgstr "A dokumentumazonosítók duplikálása nem megengedett."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Dokumentumok nem találhatók: %(ids)s"
|
msgstr "Dokumentumok nem találhatók: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Nincs megfelelő jogosultság a %(id)s dokumentum megosztásához."
|
msgstr "Nincs megfelelő jogosultság a %(id)s dokumentum megosztásához."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "A csomag feldolgozása már folyamatban van."
|
msgstr "A csomag feldolgozása már folyamatban van."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "A megosztási linkcsomag készítése folyamatban. Kérjük, próbálja meg később."
|
msgstr "A megosztási linkcsomag készítése folyamatban. Kérjük, próbálja meg később."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "A megosztási linkcsomag nem elérhető."
|
msgstr "A megosztási linkcsomag nem elérhető."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Indonesian\n"
|
"Language-Team: Indonesian\n"
|
||||||
"Language: id_ID\n"
|
"Language: id_ID\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "daftar jalankan alur kerja"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Izin tidak mencukupi"
|
msgstr "Izin tidak mencukupi"
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Variabel ilegal terdeteksi."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Penggunaan pengenal dokumen ganda tidak diperbolehkan."
|
msgstr "Penggunaan pengenal dokumen ganda tidak diperbolehkan."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Dokumen tidak ditemukan: %(ids)s"
|
msgstr "Dokumen tidak ditemukan: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Izin tidak mencukupi untuk berbagi dokumen %(id)s"
|
msgstr "Izin tidak mencukupi untuk berbagi dokumen %(id)s"
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Paket sedang diproses."
|
msgstr "Paket sedang diproses."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Bundel tautan berbagi masih dalam proses persiapan. Silakan coba lagi nanti."
|
msgstr "Bundel tautan berbagi masih dalam proses persiapan. Silakan coba lagi nanti."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Bundel tautan berbagi tidak tersedia."
|
msgstr "Bundel tautan berbagi tidak tersedia."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Italian\n"
|
"Language-Team: Italian\n"
|
||||||
"Language: it_IT\n"
|
"Language: it_IT\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "esecuzioni del flusso di lavoro"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr "Autorizzazioni insufficienti."
|
msgstr "Autorizzazioni insufficienti."
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Variabile non valida rilevata."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr "Non sono consentiti identificatori di documenti duplicati."
|
msgstr "Non sono consentiti identificatori di documenti duplicati."
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr "Documenti non trovati: %(ids)s"
|
msgstr "Documenti non trovati: %(ids)s"
|
||||||
@@ -1953,20 +1953,20 @@ msgstr "Richiesta di backend AI scaduta."
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr "Il backend IA ha rifiutato la richiesta. Controlla i log per i dettagli."
|
msgstr "Il backend IA ha rifiutato la richiesta. Controlla i log per i dettagli."
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Autorizzazioni insufficienti per condividere il documento %(id)s."
|
msgstr "Autorizzazioni insufficienti per condividere il documento %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Il pacchetto è già in fase di elaborazione."
|
msgstr "Il pacchetto è già in fase di elaborazione."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Il pacchetto di link di condivisione è ancora in fase di preparazione. Riprova più tardi."
|
msgstr "Il pacchetto di link di condivisione è ancora in fase di preparazione. Riprova più tardi."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Il pacchetto di link di condivisione non è disponibile."
|
msgstr "Il pacchetto di link di condivisione non è disponibile."
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Japanese\n"
|
"Language-Team: Japanese\n"
|
||||||
"Language: ja_JP\n"
|
"Language: ja_JP\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "ワークフローの実行"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "無効な変数を検出しました"
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Korean\n"
|
"Language-Team: Korean\n"
|
||||||
"Language: ko_KR\n"
|
"Language: ko_KR\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr "워크플로우 실행"
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "잘못된 변수가 감지되었습니다."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1953,20 +1953,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Luxembourgish\n"
|
"Language-Team: Luxembourgish\n"
|
||||||
"Language: lb_LU\n"
|
"Language: lb_LU\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr "Ongëlteg Zeechen detektéiert."
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: paperless-ngx\n"
|
"Project-Id-Version: paperless-ngx\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-11-13 17:09+0000\n"
|
"POT-Creation-Date: 2026-11-17 00:24+0000\n"
|
||||||
"PO-Revision-Date: 2026-11-13 17:12\n"
|
"PO-Revision-Date: 2026-11-17 00:26\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Lithuanian\n"
|
"Language-Team: Lithuanian\n"
|
||||||
"Language: lt_LT\n"
|
"Language: lt_LT\n"
|
||||||
@@ -1653,7 +1653,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: documents/serialisers.py:483 documents/serialisers.py:844
|
#: documents/serialisers.py:483 documents/serialisers.py:844
|
||||||
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
#: documents/serialisers.py:2893 documents/views.py:356 documents/views.py:622
|
||||||
#: documents/views.py:2761 paperless_mail/serialisers.py:156
|
#: documents/views.py:2761 paperless_mail/serialisers.py:145
|
||||||
msgid "Insufficient permissions."
|
msgid "Insufficient permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1692,7 +1692,7 @@ msgstr ""
|
|||||||
msgid "Duplicate document identifiers are not allowed."
|
msgid "Duplicate document identifiers are not allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/serialisers.py:2979 documents/views.py:4794
|
#: documents/serialisers.py:2979 documents/views.py:4748
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Documents not found: %(ids)s"
|
msgid "Documents not found: %(ids)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -1952,20 +1952,20 @@ msgstr ""
|
|||||||
msgid "AI backend rejected the request. Check logs for details."
|
msgid "AI backend rejected the request. Check logs for details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: documents/views.py:4810
|
#: documents/views.py:4764
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Insufficient permissions to share document %(id)s."
|
msgid "Insufficient permissions to share document %(id)s."
|
||||||
msgstr "Nepakanka leidimų bendrinti dokumentą %(id)s."
|
msgstr "Nepakanka leidimų bendrinti dokumentą %(id)s."
|
||||||
|
|
||||||
#: documents/views.py:4857
|
#: documents/views.py:4811
|
||||||
msgid "Bundle is already being processed."
|
msgid "Bundle is already being processed."
|
||||||
msgstr "Rinkinys jau apdorojamas."
|
msgstr "Rinkinys jau apdorojamas."
|
||||||
|
|
||||||
#: documents/views.py:4923
|
#: documents/views.py:4877
|
||||||
msgid "The share link bundle is still being prepared. Please try again later."
|
msgid "The share link bundle is still being prepared. Please try again later."
|
||||||
msgstr "Bendrinimo nuorodų rinkinys vis dar ruošiamas. Bandykite dar kartą vėliau."
|
msgstr "Bendrinimo nuorodų rinkinys vis dar ruošiamas. Bandykite dar kartą vėliau."
|
||||||
|
|
||||||
#: documents/views.py:4937
|
#: documents/views.py:4891
|
||||||
msgid "The share link bundle is unavailable."
|
msgid "The share link bundle is unavailable."
|
||||||
msgstr "Dalinimos nuorodų rinkinys yra nepasiekiamas."
|
msgstr "Dalinimos nuorodų rinkinys yra nepasiekiamas."
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 129 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user