mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix: support multiple inbox tags from stats widget (#7281)
This commit is contained in:
		| @@ -9,7 +9,7 @@ test('dashboard inbox link', async ({ page }) => { | ||||
|   await page.routeFromHAR(REQUESTS_HAR1, { notFound: 'fallback' }) | ||||
|   await page.goto('/dashboard') | ||||
|   await page.getByRole('link', { name: 'Documents in inbox' }).click() | ||||
|   await expect(page).toHaveURL(/tags__id__all=9/) | ||||
|   await expect(page).toHaveURL(/tags__id__in=9/) | ||||
|   await expect(page.locator('pngx-document-list')).toHaveText(/8 documents/) | ||||
| }) | ||||
|  | ||||
|   | ||||
| @@ -236,7 +236,7 @@ | ||||
|           "content": { | ||||
|             "size": -1, | ||||
|             "mimeType": "application/json", | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tag\":9,\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tags\":[9],\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|           }, | ||||
|           "headersSize": -1, | ||||
|           "bodySize": -1, | ||||
| @@ -250,7 +250,7 @@ | ||||
|         "time": 0.609, | ||||
|         "request": { | ||||
|           "method": "GET", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=10&ordering=-created&truncate_content=true&tags__id__all=9", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=10&ordering=-created&truncate_content=true&tags__id__in=9", | ||||
|           "httpVersion": "HTTP/1.1", | ||||
|           "cookies": [], | ||||
|           "headers": [ | ||||
| @@ -284,7 +284,7 @@ | ||||
|               "value": "true" | ||||
|             }, | ||||
|             { | ||||
|               "name": "tags__id__all", | ||||
|               "name": "tags__id__in", | ||||
|               "value": "9" | ||||
|             } | ||||
|           ], | ||||
| @@ -468,7 +468,7 @@ | ||||
|         "time": 0.951, | ||||
|         "request": { | ||||
|           "method": "GET", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=50&ordering=-created&truncate_content=true&tags__id__all=9", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=50&ordering=-created&truncate_content=true&tags__id__in=9", | ||||
|           "httpVersion": "HTTP/1.1", | ||||
|           "cookies": [], | ||||
|           "headers": [ | ||||
| @@ -502,7 +502,7 @@ | ||||
|               "value": "true" | ||||
|             }, | ||||
|             { | ||||
|               "name": "tags__id__all", | ||||
|               "name": "tags__id__in", | ||||
|               "value": "9" | ||||
|             } | ||||
|           ], | ||||
|   | ||||
| @@ -236,7 +236,7 @@ | ||||
|           "content": { | ||||
|             "size": -1, | ||||
|             "mimeType": "application/json", | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tag\":9,\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tags\":[9],\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|           }, | ||||
|           "headersSize": -1, | ||||
|           "bodySize": -1, | ||||
| @@ -250,7 +250,7 @@ | ||||
|         "time": 0.622, | ||||
|         "request": { | ||||
|           "method": "GET", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=10&ordering=-created&truncate_content=true&tags__id__all=9", | ||||
|           "url": "http://localhost:8000/api/documents/?page=1&page_size=10&ordering=-created&truncate_content=true&tags__id__in=9", | ||||
|           "httpVersion": "HTTP/1.1", | ||||
|           "cookies": [], | ||||
|           "headers": [ | ||||
| @@ -284,7 +284,7 @@ | ||||
|               "value": "true" | ||||
|             }, | ||||
|             { | ||||
|               "name": "tags__id__all", | ||||
|               "name": "tags__id__in", | ||||
|               "value": "9" | ||||
|             } | ||||
|           ], | ||||
|   | ||||
| @@ -236,7 +236,7 @@ | ||||
|           "content": { | ||||
|             "size": -1, | ||||
|             "mimeType": "application/json", | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tag\":9,\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tags\":[9],\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|           }, | ||||
|           "headersSize": -1, | ||||
|           "bodySize": -1, | ||||
|   | ||||
| @@ -236,7 +236,7 @@ | ||||
|           "content": { | ||||
|             "size": -1, | ||||
|             "mimeType": "application/json", | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tag\":9,\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|             "text": "{\"documents_total\":61,\"documents_inbox\":8,\"inbox_tags\":[9],\"document_file_type_counts\":[{\"mime_type\":\"application/pdf\",\"mime_type_count\":57},{\"mime_type\":\"text/plain\",\"mime_type_count\":3},{\"mime_type\":\"text/csv\",\"mime_type_count\":1}],\"character_count\":2407053}" | ||||
|           }, | ||||
|           "headersSize": -1, | ||||
|           "bodySize": -1, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon