diff --git a/src-ui/cypress/e2e/tasks/tasks.cy.ts b/src-ui/cypress/e2e/tasks/tasks.cy.ts index b68de3be1..08c3b36b5 100644 --- a/src-ui/cypress/e2e/tasks/tasks.cy.ts +++ b/src-ui/cypress/e2e/tasks/tasks.cy.ts @@ -44,6 +44,39 @@ describe('tasks', () => { }) }) + it('should correctly switch between task tabs', () => { + cy.get('tbody').find('tr:visible').its('length').should('eq', 10) // double because collapsible result tr + cy.wait(500) // stabilizes the test, for some reason... + cy.get('app-tasks') + .find('a:visible') + .contains('Queued') + .first() + .click() + .wait(2000) + .then(() => { + cy.get('tbody').find('tr:visible').should('not.exist') + }) + cy.get('app-tasks') + .find('a:visible') + .contains('Started') + .first() + .click() + .wait(2000) + .then(() => { + cy.get('tbody').find('tr:visible').its('length').should('eq', 2) // double because collapsible result tr + }) + cy.get('app-tasks') + .find('a:visible') + .contains('Complete') + .first() + .click() + .wait('@tasks') + .wait(2000) + .then(() => { + cy.get('tbody').find('tr:visible').its('length').should('eq', 12) // double because collapsible result tr + }) + }) + it('should allow toggling all tasks in list and warn on dismiss', () => { cy.get('thead').find('input[type="checkbox"]').first().click() cy.get('body').find('button').contains('Dismiss selected').first().click() diff --git a/src-ui/cypress/fixtures/tasks/tasks.json b/src-ui/cypress/fixtures/tasks/tasks.json index eeccfe424..25e4d0748 100644 --- a/src-ui/cypress/fixtures/tasks/tasks.json +++ b/src-ui/cypress/fixtures/tasks/tasks.json @@ -5,23 +5,11 @@ "result": "sample 2.pdf: Not consuming sample 2.pdf: It is a duplicate. : Traceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ngx.nosync-udqDZzaE/lib/python3.8/site-packages/django_q/cluster.py\", line 432, in worker\n res = f(*task[\"args\"], **task[\"kwargs\"])\n File \"/Users/admin/Documents/paperless-ngx/src/documents/tasks.py\", line 316, in consume_file\n document = Consumer().try_consume_file(\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 218, in try_consume_file\n self.pre_check_duplicate()\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 113, in pre_check_duplicate\n self._fail(\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 84, in _fail\n raise ConsumerError(f\"{self.filename}: {log_message or message}\")\ndocuments.consumer.ConsumerError: sample 2.pdf: Not consuming sample 2.pdf: It is a duplicate.\n", "status": "FAILURE", "task_id": "d8ddbe298a42427d82553206ddf0bc94", - "name": "sample 2.pdf", - "created": "2022-05-26T23:17:38.333474-07:00", + "task_file_name": "sample 2.pdf", + "date_created": "2022-05-26T23:17:38.333474-07:00", + "date_done": null, "acknowledged": false, - "attempted_task": { - "id": "d8ddbe298a42427d82553206ddf0bc94", - "name": "sample 2.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtanJxNGs1aHOUhZQu", - "kwargs": "gAWVzQAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwMc2FtcGxlIDIucGRmlIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJyaWRlX3RhZ19pZHOUTowHdGFza19pZJSMJDcyMGExYjI5LWI2OTYtNDY3My05Y2ZmLTJkY2ZiZWNmNWViMpSMEG92ZXJyaWRlX2NyZWF0ZWSUTnUu", - "result": "gAWVMQQAAAAAAABYKgQAAHNhbXBsZSAyLnBkZjogTm90IGNvbnN1bWluZyBzYW1wbGUgMi5wZGY6IEl0IGlzIGEgZHVwbGljYXRlLiA6IFRyYWNlYmFjayAobW9zdCByZWNlbnQgY2FsbCBsYXN0KToKICBGaWxlICIvVXNlcnMvbW9vbmVyLy5sb2NhbC9zaGFyZS92aXJ0dWFsZW52cy9wYXBlcmxlc3Mtbmd4Lm5vc3luYy11ZHFEWnphRS9saWIvcHl0aG9u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nN1bWVyLkNvbnN1bWVyRXJyb3I6IHNhbXBsZSAyLnBkZjogTm90IGNvbnN1bWluZyBzYW1wbGUgMi5wZGY6IEl0IGlzIGEgZHVwbGljYXRlLgqULg==", - "group": null, - "started": "2022-05-26T23:17:37.702432-07:00", - "stopped": "2022-05-26T23:17:38.313306-07:00", - "success": false, - "attempt_count": 1 - } + "related_document": null }, { "id": 132, @@ -29,23 +17,10 @@ "result": " : Traceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/subprocess.py\", line 131, in get_version\n env=env,\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/subprocess.py\", line 68, in run\n proc = subprocess_run(args, env=env, **kwargs)\n File \"/Users/admin/opt/anaconda3/envs/paperless-ng/lib/python3.6/subprocess.py\", line 423, in run\n with Popen(*popenargs, **kwargs) as process:\n File \"/Users/admin/opt/anaconda3/envs/paperless-ng/lib/python3.6/subprocess.py\", line 729, in __init__\n restore_signals, start_new_session)\n File \"/Users/admin/opt/anaconda3/envs/paperless-ng/lib/python3.6/subprocess.py\", line 1364, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\nFileNotFoundError: [Errno 2] No such file or directory: 'unpaper': 'unpaper'\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/subprocess.py\", line 287, in check_external_program\n found_version = version_checker()\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/_exec/unpaper.py\", line 34, in version\n return get_version('unpaper')\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/subprocess.py\", line 137, in get_version\n ) from e\nocrmypdf.exceptions.MissingDependencyError: Could not find program 'unpaper' on the PATH\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/paperless_tesseract/parsers.py\", line 176, in parse\n ocrmypdf.ocr(**ocr_args)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/api.py\", line 315, in ocr\n check_options(options, plugin_manager)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/_validation.py\", line 260, in check_options\n _check_options(options, plugin_manager, ocr_engine_languages)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/_validation.py\", line 250, in _check_options\n check_options_preprocessing(options)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/_validation.py\", line 128, in check_options_preprocessing\n required_for=['--clean, --clean-final'],\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/ocrmypdf/subprocess.py\", line 293, in check_external_program\n raise MissingDependencyError()\nocrmypdf.exceptions.MissingDependencyError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 179, in try_consume_file\n document_parser.parse(self.path, mime_type, self.filename)\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/paperless_tesseract/parsers.py\", line 197, in parse\n raise ParseError(e)\ndocuments.parsers.ParseError\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/django_q/cluster.py\", line 436, in worker\n res = f(*task[\"args\"], **task[\"kwargs\"])\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/tasks.py\", line 73, in consume_file\n override_tag_ids=override_tag_ids)\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 196, in try_consume_file\n raise ConsumerError(e)\ndocuments.consumer.ConsumerError\n", "status": "FAILURE", "task_id": "4c554075552c4cc985abd76e6f274c90", - "name": "pdf-sample 10.24.48 PM.pdf", - "created": "2022-05-26T14:26:07.846365-07:00", - "acknowledged": null, - "attempted_task": { - "id": "4c554075552c4cc985abd76e6f274c90", - "name": "pdf-sample 10.24.48 PM.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVKwAAAAAAAACMJS4uL2NvbnN1bWUvcGRmLXNhbXBsZSAxMC4yNC40OCBQTS5wZGaUhZQu", - "kwargs": "gAWVGAAAAAAAAAB9lIwQb3ZlcnJpZGVfdGFnX2lkc5ROcy4=", - "result": "gAWVzA8AAAAAAABYxQ8AACA6IFRyYWNlYmFjayAobW9zdCByZWNlbnQgY2FsbCBsYXN0KToKICBGaWxlICIvVXNlcnMvbW9vbmVyLy5sb2NhbC9zaGFyZS92aXJ0dWFsZW52cy9wYXBlcmxlc3MtbmctNzZCdUpsRUkvbGliL3B5dGhvbjMuNi9zaXRlLXBhY2thZ2VzL29jcm15cGRmL3N1YnByb2Nlc3MucHkiLCBsaW5lIDEzMSwgaW4gZ2V0X3ZlcnNpb24KICAgIGVudj1lbnYsCiAgRmlsZSAiL1VzZXJzL21vb25lci8ubG9jYWwvc2hhcmUvdmlydHVhbGVudnMvcGFwZXJsZXNzLW5nLTc2QnVKbEVJL2xpYi9weXRob24zLjYvc2l0ZS1wYWNrYWdlcy9vY3JteXBkZi9zdWJwcm9jZXNzLnB5IiwgbGluZSA2OCwgaW4gcnVuCiAgICBwcm9jID0gc3VicHJvY2Vzc19ydW4oYXJncywgZW52PWVudiwgKiprd2FyZ3MpCiAgRmlsZSAiL1VzZXJzL21vb25lci9vcHQvYW5hY29uZGEzL2VudnMvcGFwZXJsZXNzLW5nL2xpYi9weXRob24zLjYvc3VicHJvY2Vzcy5weSIsIGxpbmUgNDIzLCBpbiBydW4KICAgIHdpdGggUG9wZW4oKnBvcGVuYXJncywgKiprd2FyZ3MpIGFzIHByb2Nlc3M6CiAgRmlsZSAiL1VzZXJzL21vb25lci9vcHQvYW5hY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uc3VtZV9maWxlCiAgICBvdmVycmlkZV90YWdfaWRzPW92ZXJyaWRlX3RhZ19pZHMpCiAgRmlsZSAiL1VzZXJzL21vb25lci9Eb2N1bWVudHMvV29yay9Db250cmlidXRpb25zL3BhcGVybGVzcy1uZy9zcmMvZG9jdW1lbnRzL2NvbnN1bWVyLnB5IiwgbGluZSAxOTYsIGluIHRyeV9jb25zdW1lX2ZpbGUKICAgIHJhaXNlIENvbnN1bWVyRXJyb3IoZSkKZG9jdW1lbnRzLmNvbnN1bWVyLkNvbnN1bWVyRXJyb3IKlC4=", - "group": null, - "started": "2021-01-20T10:47:34.535478-08:00", - "stopped": "2021-01-20T10:49:55.568010-08:00", - "success": false, - "attempt_count": 1 - } + "task_file_name": "pdf-sample 10.24.48 PM.pdf", + "date_created": "2022-05-26T14:26:07.846365-07:00", + "date_done": null, + "acknowledged": null }, { "id": 115, @@ -53,23 +28,10 @@ "result": "2021-01-24 2021-01-20 sample_wide_orange.pdf: Document is a duplicate : Traceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/django_q/cluster.py\", line 436, in worker\n res = f(*task[\"args\"], **task[\"kwargs\"])\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/tasks.py\", line 75, in consume_file\n task_id=task_id\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 168, in try_consume_file\n self.pre_check_duplicate()\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 85, in pre_check_duplicate\n self._fail(\"Document is a duplicate\")\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 53, in _fail\n raise ConsumerError(f\"{self.filename}: {message}\")\ndocuments.consumer.ConsumerError: 2021-01-24 2021-01-20 sample_wide_orange.pdf: Document is a duplicate\n", "status": "FAILURE", "task_id": "86494713646a4364b01da17aadca071d", - "name": "2021-01-24 2021-01-20 sample_wide_orange.pdf", - "created": "2022-05-26T14:26:07.817608-07:00", - "acknowledged": null, - "attempted_task": { - "id": "86494713646a4364b01da17aadca071d", - "name": "2021-01-24 2021-01-20 sample_wide_orange.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtcTJ6NDlnbzaUhZQu", - "kwargs": "gAWV2QAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwsMjAyMS0wMS0yNCAyMDIxLTAxLTIwIHNhbXBsZV93aWRlX29yYW5nZS5wZGaUjA5vdmVycmlkZV90aXRsZZROjBlvdmVycmlkZV9jb3JyZXNwb25kZW50X2lklE6MGW92ZXJyaWRlX2RvY3VtZW50X3R5cGVfaWSUTowQb3ZlcnJpZGVfdGFnX2lkc5ROjAd0YXNrX2lklIwkN2MwZTY1MmQtZDhkYy00OWU4LWI1ZmUtOGM3ZTkyZDlmOTI0lHUu", - "result": "gAWV/AMAAAAAAABY9QMAADIwMjEtMDEtMjQgMjAyMS0wMS0yMCBzYW1wbGVfd2lkZV9vcmFuZ2UucGRmOiBEb2N1bWVudCBpcyBhIGR1cGxpY2F0ZSA6IFRyYWNlYmFjayAobW9zdCByZWNlbnQgY2FsbCBsYXN0KToKICBGaWxlICIvVXNlcnMvbW9vbmVyLy5sb2NhbC9zaGFyZS92aXJ0dWFsZW52cy9wYXBlcmxlc3MtbmctNzZCdUpsRUkvbGliL3B5dGhvbjMuNi9zaXRlLXBhY2thZ2VzL2RqYW5nb19xL2NsdXN0ZXIucHkiLCBsaW5lIDQzNiwgaW4gd29ya2VyCiAgICByZXMgPSBmKCp0YXNrWyJhcmdzIl0sICoqdGFza1sia3dhcmdzIl0pCiAgRmlsZSAiL1VzZXJzL21vb25lci9Eb2N1bWVudHMvV29yay9Db250cmlidXRpb25zL3BhcGVybGVzcy1uZy9zcmMvZG9jdW1lbnRzL3Rhc2tzLnB5IiwgbGluZSA3NSwgaW4gY29uc3VtZV9maWxlCiAgICB0YXNrX2lkPXRhc2tfaWQKICBGaWxlICIvVXNlcnMvbW9vbmVyL0RvY3VtZW50cy9Xb3JrL0NvbnRyaWJ1dGlvbnMvcGFwZXJsZXNzLW5nL3NyYy9kb2N1bWVudHMvY29uc3VtZXIucHkiLCBsaW5lIDE2OCwgaW4gdHJ5X2NvbnN1bWVfZmlsZQogICAgc2VsZi5wcmVfY2hlY2tfZHVwbGljYXRlKCkKICBGaWxlICIvVXNlcnMvbW9vbmVyL0RvY3VtZW50cy9Xb3JrL0NvbnRyaWJ1dGlvbnMvcGFwZXJsZXNzLW5nL3NyYy9kb2N1bWVudHMvY29uc3VtZXIucHkiLCBsaW5lIDg1LCBpbiBwcmVfY2hlY2tfZHVwbGljYXRlCiAgICBzZWxmLl9mYWlsKCJEb2N1bWVudCBpcyBhIGR1cGxpY2F0ZSIpCiAgRmlsZSAiL1VzZXJzL21vb25lci9Eb2N1bWVudHMvV29yay9Db250cmlidXRpb25zL3BhcGVybGVzcy1uZy9zcmMvZG9jdW1lbnRzL2NvbnN1bWVyLnB5IiwgbGluZSA1MywgaW4gX2ZhaWwKICAgIHJhaXNlIENvbnN1bWVyRXJyb3IoZiJ7c2VsZi5maWxlbmFtZX06IHttZXNzYWdlfSIpCmRvY3VtZW50cy5jb25zdW1lci5Db25zdW1lckVycm9yOiAyMDIxLTAxLTI0IDIwMjEtMDEtMjAgc2FtcGxlX3dpZGVfb3JhbmdlLnBkZjogRG9jdW1lbnQgaXMgYSBkdXBsaWNhdGUKlC4=", - "group": null, - "started": "2021-01-26T00:21:05.379583-08:00", - "stopped": "2021-01-26T00:21:06.449626-08:00", - "success": false, - "attempt_count": 1 - } + "task_file_name": "2021-01-24 2021-01-20 sample_wide_orange.pdf", + "date_created": "2022-05-26T14:26:07.817608-07:00", + "date_done": null, + "acknowledged": null }, { "id": 85, @@ -77,23 +39,10 @@ "result": "cannot open resource : Traceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/django_q/cluster.py\", line 436, in worker\n res = f(*task[\"args\"], **task[\"kwargs\"])\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/tasks.py\", line 81, in consume_file\n task_id=task_id\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/consumer.py\", line 244, in try_consume_file\n self.path, mime_type, self.filename)\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/documents/parsers.py\", line 302, in get_optimised_thumbnail\n thumbnail = self.get_thumbnail(document_path, mime_type, file_name)\n File \"/Users/admin/Documents/Work/Contributions/paperless-ng/src/paperless_text/parsers.py\", line 29, in get_thumbnail\n layout_engine=ImageFont.LAYOUT_BASIC)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/PIL/ImageFont.py\", line 852, in truetype\n return freetype(font)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/PIL/ImageFont.py\", line 849, in freetype\n return FreeTypeFont(font, size, index, encoding, layout_engine)\n File \"/Users/admin/.local/share/virtualenvs/paperless-ng/lib/python3.6/site-packages/PIL/ImageFont.py\", line 210, in __init__\n font, size, index, encoding, layout_engine=layout_engine\nOSError: cannot open resource\n", "status": "FAILURE", "task_id": "abca803fa46342e1ac81f3d3f2080e79", - "name": "simple.txt", - "created": "2022-05-26T14:26:07.771541-07:00", - "acknowledged": null, - "attempted_task": { - "id": "abca803fa46342e1ac81f3d3f2080e79", - "name": "simple.txt", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtd2RhbnB5NnGUhZQu", - "kwargs": "gAWVtwAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwKc2ltcGxlLnR4dJSMDm92ZXJyaWRlX3RpdGxllE6MGW92ZXJyaWRlX2NvcnJlc3BvbmRlbnRfaWSUTowZb3ZlcnJpZGVfZG9jdW1lbnRf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zb3VyY2UKlC4=", - "group": null, - "started": "2021-03-06T14:23:56.974715-08:00", - "stopped": "2021-03-06T14:24:28.011772-08:00", - "success": false, - "attempt_count": 1 - } + "task_file_name": "simple.txt", + "date_created": "2022-05-26T14:26:07.771541-07:00", + "date_done": null, + "acknowledged": null }, { "id": 41, @@ -101,23 +50,10 @@ "result": "commands.txt: Not consuming commands.txt: It is a duplicate. : Traceback (most recent call last):\n File \"/Users/admin/.local/share/virtualenvs/paperless-ngx.nosync-udqDZzaE/lib/python3.8/site-packages/django_q/cluster.py\", line 432, in worker\n res = f(*task[\"args\"], **task[\"kwargs\"])\n File \"/Users/admin/Documents/paperless-ngx/src/documents/tasks.py\", line 70, in consume_file\n document = Consumer().try_consume_file(\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 199, in try_consume_file\n self.pre_check_duplicate()\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 97, in pre_check_duplicate\n self._fail(\n File \"/Users/admin/Documents/paperless-ngx/src/documents/consumer.py\", line 69, in _fail\n raise ConsumerError(f\"{self.filename}: {log_message or message}\")\ndocuments.consumer.ConsumerError: commands.txt: Not consuming commands.txt: It is a duplicate.\n", "status": "FAILURE", "task_id": "0af67672e8e14404b060d4cf8f69313d", - "name": "commands.txt", - "created": "2022-05-26T14:26:07.704247-07:00", - "acknowledged": null, - "attempted_task": { - "id": "0af67672e8e14404b060d4cf8f69313d", - "name": "commands.txt", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtZ3h4YjNxODaUhZQu", - "kwargs": "gAWVuQAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwMY29tbWFuZHMudHh0lIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJy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lci5weSIsIGxpbmUgOTcsIGluIHByZV9jaGVja19kdXBsaWNhdGUKICAgIHNlbGYuX2ZhaWwoCiAgRmlsZSAiL1VzZXJzL21vb25lci9Eb2N1bWVudHMvV29yay9EZXYubm9zeW5jL0NvbnRyaWJ1dGlvbnMvcGFwZXJsZXNzLW5neC9zcmMvZG9jdW1lbnRzL2NvbnN1bWVyLnB5IiwgbGluZSA2OSwgaW4gX2ZhaWwKICAgIHJhaXNlIENvbnN1bWVyRXJyb3IoZiJ7c2VsZi5maWxlbmFtZX06IHtsb2dfbWVzc2FnZSBvciBtZXNzYWdlfSIpCmRvY3VtZW50cy5jb25zdW1lci5Db25zdW1lckVycm9yOiBjb21tYW5kcy50eHQ6IE5vdCBjb25zdW1pbmcgY29tbWFuZHMudHh0OiBJdCBpcyBhIGR1cGxpY2F0ZS4KlC4=", - "group": null, - "started": "2022-03-10T22:26:32.548772-08:00", - "stopped": "2022-03-10T22:26:32.879916-08:00", - "success": false, - "attempt_count": 1 - } + "task_file_name": "commands.txt", + "date_created": "2022-05-26T14:26:07.704247-07:00", + "date_done": null, + "acknowledged": null }, { "id": 10, @@ -125,23 +61,11 @@ "result": "Success. New document id 260 created", "status": "SUCCESS", "task_id": "b7629a0f41bd40c7a3ea4680341321b5", - "name": "2022-03-24+Sonstige+ScanPC2022-03-24_081058.pdf", - "created": "2022-05-26T14:26:07.670577-07:00", + "task_file_name": "2022-03-24+Sonstige+ScanPC2022-03-24_081058.pdf", + "date_created": "2022-05-26T14:26:07.670577-07:00", + "date_done": "2022-05-26T14:26:07.670577-07:00", "acknowledged": false, - "attempted_task": { - "id": "b7629a0f41bd40c7a3ea4680341321b5", - "name": "2022-03-24+Sonstige+ScanPC2022-03-24_081058.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtc25mOW11ZW+UhZQu", - "kwargs": "gAWV3AAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwvMjAyMi0wMy0yNCtTb25zdGlnZStTY2FuUEMyMDIyLTAzLTI0XzA4MTA1OC5wZGaUjA5vdmVycmlkZV90aXRsZZROjBlvdmVycmlkZV9jb3JyZXNwb25kZW50X2lklE6MGW92ZXJyaWRlX2RvY3VtZW50X3R5cGVfaWSUTowQb3ZlcnJpZGVfdGFnX2lkc5ROjAd0YXNrX2lklIwkNTdmMmQwMGItY2Q0Ny00YzQ3LTlmOTctODFlOTllMTJhMjMylHUu", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjAgY3JlYXRlZJQu", - "group": null, - "started": "2022-03-24T08:19:32.117861-07:00", - "stopped": "2022-03-24T08:20:10.239201-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 260 }, { "id": 9, @@ -149,23 +73,11 @@ "result": "Success. New document id 261 created", "status": "SUCCESS", "task_id": "02e276a86a424ccfb83309df5d8594be", - "name": "2sample-pdf-with-images.pdf", - "created": "2022-05-26T14:26:07.668987-07:00", + "task_file_name": "2sample-pdf-with-images.pdf", + "date_created": "2022-05-26T14:26:07.668987-07:00", + "date_done": "2022-05-26T14:26:07.668987-07:00", "acknowledged": false, - "attempted_task": { - "id": "02e276a86a424ccfb83309df5d8594be", - "name": "2sample-pdf-with-images.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtaXJ3cjZzOGeUhZQu", - "kwargs": "gAWVyAAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwbMnNhbXBsZS1wZGYtd2l0aC1pbWFnZXMucGRmlIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJyaWRlX3RhZ19pZHOUTowHdGFza19pZJSMJDFlYTczMjhhLTk3MjctNDJiMC1iMTEyLTAzZjU3MzQ2MmRiNpR1Lg==", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjEgY3JlYXRlZJQu", - "group": null, - "started": "2022-03-28T23:12:41.286318-07:00", - "stopped": "2022-03-28T23:13:00.523505-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 261 }, { "id": 8, @@ -173,23 +85,11 @@ "result": "Success. New document id 262 created", "status": "SUCCESS", "task_id": "41229b8be9b445c0a523697d0f58f13e", - "name": "2sample-pdf-with-images_pw.pdf", - "created": "2022-05-26T14:26:07.667993-07:00", + "task_file_name": "2sample-pdf-with-images_pw.pdf", + "date_created": "2022-05-26T14:26:07.667993-07:00", + "date_done": "2022-05-26T14:26:07.667993-07:00", "acknowledged": false, - "attempted_task": { - "id": "41229b8be9b445c0a523697d0f58f13e", - "name": "2sample-pdf-with-images_pw.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtN2tfejA0MTGUhZQu", - "kwargs": "gAWVywAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIweMnNhbXBsZS1wZGYtd2l0aC1pbWFnZXNfcHcucGRmlIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJyaWRlX3RhZ19pZHOUTowHdGFza19pZJSMJDk5YTgyOTc3LWU1MWUtNGJjYS04MjM4LTNkNzdhZTJhNjZmYZR1Lg==", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjIgY3JlYXRlZJQu", - "group": null, - "started": "2022-03-28T23:43:53.171963-07:00", - "stopped": "2022-03-28T23:43:56.965257-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 262 }, { "id": 6, @@ -197,23 +97,11 @@ "result": "Success. New document id 264 created", "status": "SUCCESS", "task_id": "bbbca32d408c4619bd0b512a8327c773", - "name": "homebridge.log", - "created": "2022-05-26T14:26:07.665560-07:00", + "task_file_name": "homebridge.log", + "date_created": "2022-05-26T14:26:07.665560-07:00", + "date_done": "2022-05-26T14:26:07.665560-07:00", "acknowledged": false, - "attempted_task": { - "id": "bbbca32d408c4619bd0b512a8327c773", - "name": "homebridge.log", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQteGo4aW9zYXaUhZQu", - "kwargs": "gAWVuwAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwOaG9tZWJyaWRnZS5sb2eUjA5vdmVycmlkZV90aXRsZZROjBlvdmVycmlkZV9jb3JyZXNwb25kZW50X2lklE6MGW92ZXJyaWRlX2RvY3VtZW50X3R5cGVfaWSUTowQb3ZlcnJpZGVfdGFnX2lkc5ROjAd0YXNrX2lklIwkNzY0NzdhNWEtNzk0Ni00NWU0LWE3MDktNzQzNDg0ZDE2YTUxlHUu", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjQgY3JlYXRlZJQu", - "group": null, - "started": "2022-03-29T22:56:16.053026-07:00", - "stopped": "2022-03-29T22:56:21.196179-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 264 }, { "id": 5, @@ -221,23 +109,11 @@ "result": "Success. New document id 265 created", "status": "SUCCESS", "task_id": "00ab285ab4bf482ab30c7d580b252ecb", - "name": "IMG_7459.PNG", - "created": "2022-05-26T14:26:07.664506-07:00", + "task_file_name": "IMG_7459.PNG", + "date_created": "2022-05-26T14:26:07.664506-07:00", + "date_done": "2022-05-26T14:26:07.664506-07:00", "acknowledged": false, - "attempted_task": { - "id": "00ab285ab4bf482ab30c7d580b252ecb", - "name": "IMG_7459.PNG", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtOGF5NDNfZjeUhZQu", - "kwargs": "gAWVuQAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwMSU1HXzc0NTkuUE5HlIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJyaWRlX3RhZ19pZHOUTowHdGFza19pZJSMJDYxMTNhNzRlLTAwOWMtNGJhYi1hMjk1LTFmNjMwMzZmMTc4ZpR1Lg==", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjUgY3JlYXRlZJQu", - "group": null, - "started": "2022-04-05T13:19:47.490282-07:00", - "stopped": "2022-04-05T13:21:36.782264-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 265 }, { "id": 3, @@ -245,46 +121,22 @@ "result": "Success. New document id 267 created", "status": "SUCCESS", "task_id": "289c5163cfec410db42948a0cacbeb9c", - "name": "IMG_7459.PNG", - "created": "2022-05-26T14:26:07.659661-07:00", + "task_file_name": "IMG_7459.PNG", + "date_created": "2022-05-26T14:26:07.659661-07:00", + "date_done": "2022-05-26T14:26:07.659661-07:00", "acknowledged": false, - "attempted_task": { - "id": "289c5163cfec410db42948a0cacbeb9c", - "name": "IMG_7459.PNG", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtNzRuY2p2aXGUhZQu", - "kwargs": "gAWVuQAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwMSU1HXzc0NTkuUE5HlIwOb3ZlcnJpZGVfdGl0bGWUTowZb3ZlcnJpZGVfY29ycmVzcG9uZGVudF9pZJROjBlvdmVycmlkZV9kb2N1bWVudF90eXBlX2lklE6MEG92ZXJyaWRlX3RhZ19pZHOUTowHdGFza19pZJSMJGZjZDljMmFlLWFhZmEtNGJmMC05M2Y5LWE3ZGQxYmEzYWM1NZR1Lg==", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjcgY3JlYXRlZJQu", - "group": null, - "started": "2022-04-05T13:29:59.264441-07:00", - "stopped": "2022-04-05T13:30:28.336185-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": 267 }, { "id": 1, "type": "file", - "result": "Success. New document id 268 created", - "status": "SUCCESS", + "result": null, + "status": "STARTED", "task_id": "7a4ebdb2bde04311935284027ef8ca65", - "name": "2019-08-04 DSA Questionnaire - 5-8-19.pdf", - "created": "2022-05-26T14:26:07.655276-07:00", + "task_file_name": "2019-08-04 DSA Questionnaire - 5-8-19.pdf", + "date_created": "2022-05-26T14:26:07.655276-07:00", + "date_done": null, "acknowledged": false, - "attempted_task": { - "id": "7a4ebdb2bde04311935284027ef8ca65", - "name": "2019-08-04 DSA Questionnaire - 5-8-19.pdf", - "func": "documents.tasks.consume_file", - "hook": null, - "args": "gAWVLgAAAAAAAACMKC90bXAvcGFwZXJsZXNzL3BhcGVybGVzcy11cGxvYWQtdXpscHl2NnmUhZQu", - "kwargs": "gAWV1gAAAAAAAAB9lCiMEW92ZXJyaWRlX2ZpbGVuYW1llIwpMjAxOS0wOC0wNCBEU0EgUXVlc3Rpb25uYWlyZSAtIDUtOC0xOS5wZGaUjA5vdmVycmlkZV90aXRsZZROjBlvdmVycmlkZV9jb3JyZXNwb25kZW50X2lklE6MGW92ZXJyaWRlX2RvY3VtZW50X3R5cGVfaWSUTowQb3ZlcnJpZGVfdGFnX2lkc5ROjAd0YXNrX2lklIwkY2Q3YzBhZjgtN2Q4Ni00OGM0LTliNjgtNDQwMmQ4ZDZlOTNmlHUu", - "result": "gAWVKAAAAAAAAACMJFN1Y2Nlc3MuIE5ldyBkb2N1bWVudCBpZCAyNjggY3JlYXRlZJQu", - "group": null, - "started": "2022-04-28T21:01:04.275850-07:00", - "stopped": "2022-04-28T21:01:10.136884-07:00", - "success": true, - "attempt_count": 1 - } + "related_document": null } ] diff --git a/src-ui/src/app/components/manage/tasks/tasks.component.html b/src-ui/src/app/components/manage/tasks/tasks.component.html index 08c065247..88c119c8d 100644 --- a/src-ui/src/app/components/manage/tasks/tasks.component.html +++ b/src-ui/src/app/components/manage/tasks/tasks.component.html @@ -56,14 +56,14 @@
{{ task.result | slice:0:300 }}-300">…