Skip to content

Commit

Permalink
Remove get new tasks functionality (#768)
Browse files Browse the repository at this point in the history
* Remove new task button from frontend

* Dashboard tests pass

* test_project_api.py now works

* Remove new_task_assignment endpoint

* Remove references to get_new_task_assignment

* Remove get_new_task_assignment

* Remove preventNew

* Bring back relevant test for worker_assigned_to_rejected_task

* Lint

* Remove unused error
  • Loading branch information
marcua committed Apr 21, 2021
1 parent 6a7b308 commit 552d602
Show file tree
Hide file tree
Showing 25 changed files with 64 additions and 406 deletions.
4 changes: 0 additions & 4 deletions example_project/example_project/orchestra_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ def setup_orchestra(settings_module_name):
# tasks while existing ones are returned by reviewers.
settings.ORCHESTRA_ENFORCE_NO_NEW_TASKS_DURING_REVIEW = True

# Set to True if you want to enable buttons to pull new
# delivery/review tasks in the dashboard.
settings.ORCHESTRA_ENABLE_NEW_TASK_BUTTONS = True

# The ID of the Google Drive folder for exporting/importing todo
# list templates
settings.ORCHESTRA_TODO_LIST_TEMPLATE_EXPORT_GDRIVE_FOLDER = ''
Expand Down
5 changes: 0 additions & 5 deletions orchestra/api_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from orchestra.views import TimeEntryList
from orchestra.views import dashboard_tasks
from orchestra.views import get_timer
from orchestra.views import new_task_assignment
from orchestra.views import save_task_assignment
from orchestra.views import start_timer
from orchestra.views import status
Expand Down Expand Up @@ -44,10 +43,6 @@
submit_task_assignment,
name='submit_task_assignment'),

url(r'^interface/new_task_assignment/(?P<task_type>\w+)/$',
new_task_assignment,
name='new_task_assignment'),

url(r'^interface/upload_image/$',
upload_image,
name='upload_image'),
Expand Down
4 changes: 0 additions & 4 deletions orchestra/core/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ class ModelSaveError(Exception):
pass


class NoTaskAvailable(Exception):
pass


class ReviewPolicyError(Exception):
pass

Expand Down
16 changes: 8 additions & 8 deletions orchestra/frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"files": {
"main.css": "/static/dist2/static/css/main.ff3ce63a.chunk.css",
"main.js": "/static/dist2/static/js/main.ea77b330.chunk.js",
"main.js.map": "/static/dist2/static/js/main.ea77b330.chunk.js.map",
"main.js": "/static/dist2/static/js/main.c276df28.chunk.js",
"main.js.map": "/static/dist2/static/js/main.c276df28.chunk.js.map",
"runtime-main.js": "/static/dist2/static/js/runtime-main.30a1ae39.js",
"runtime-main.js.map": "/static/dist2/static/js/runtime-main.30a1ae39.js.map",
"static/css/2.7cafca44.chunk.css": "/static/dist2/static/css/2.7cafca44.chunk.css",
"static/js/2.564c31ea.chunk.js": "/static/dist2/static/js/2.564c31ea.chunk.js",
"static/js/2.564c31ea.chunk.js.map": "/static/dist2/static/js/2.564c31ea.chunk.js.map",
"static/js/2.e78fdbab.chunk.js": "/static/dist2/static/js/2.e78fdbab.chunk.js",
"static/js/2.e78fdbab.chunk.js.map": "/static/dist2/static/js/2.e78fdbab.chunk.js.map",
"index.html": "/static/dist2/index.html",
"precache-manifest.20146b37b33094c90e8d6a7bc3ccd065.js": "/static/dist2/precache-manifest.20146b37b33094c90e8d6a7bc3ccd065.js",
"precache-manifest.b062617634d0c77b19b224670f938325.js": "/static/dist2/precache-manifest.b062617634d0c77b19b224670f938325.js",
"service-worker.js": "/static/dist2/service-worker.js",
"static/css/2.7cafca44.chunk.css.map": "/static/dist2/static/css/2.7cafca44.chunk.css.map",
"static/css/main.ff3ce63a.chunk.css.map": "/static/dist2/static/css/main.ff3ce63a.chunk.css.map",
"static/js/2.564c31ea.chunk.js.LICENSE.txt": "/static/dist2/static/js/2.564c31ea.chunk.js.LICENSE.txt"
"static/js/2.e78fdbab.chunk.js.LICENSE.txt": "/static/dist2/static/js/2.e78fdbab.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.30a1ae39.js",
"static/css/2.7cafca44.chunk.css",
"static/js/2.564c31ea.chunk.js",
"static/js/2.e78fdbab.chunk.js",
"static/css/main.ff3ce63a.chunk.css",
"static/js/main.ea77b330.chunk.js"
"static/js/main.c276df28.chunk.js"
]
}
2 changes: 1 addition & 1 deletion orchestra/frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/dist2/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="An open-source Robotic Process Automation system to orchestrate teams of experts and machines"/><title>Orchestra</title><link href="/static/dist2/static/css/2.7cafca44.chunk.css" rel="stylesheet"><link href="/static/dist2/static/css/main.ff3ce63a.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,f,i=t[0],l=t[1],a=t[2],c=0,s=[];c<i.length;c++)f=i[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var l=r[i];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=f(f.s=r[0]))}return e}var n={},o={1:0},u=[];function f(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=e,f.c=n,f.d=function(e,t,r){f.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,t){if(1&t&&(e=f(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(f.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)f.d(r,n,function(t){return e[t]}.bind(null,n));return r},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="/static/dist2/";var i=this.webpackJsonpfrontend=this.webpackJsonpfrontend||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var p=l;r()}([])</script><script src="/static/dist2/static/js/2.564c31ea.chunk.js"></script><script src="/static/dist2/static/js/main.ea77b330.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/dist2/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="An open-source Robotic Process Automation system to orchestrate teams of experts and machines"/><title>Orchestra</title><link href="/static/dist2/static/css/2.7cafca44.chunk.css" rel="stylesheet"><link href="/static/dist2/static/css/main.ff3ce63a.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,f,i=t[0],l=t[1],a=t[2],c=0,s=[];c<i.length;c++)f=i[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,a||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,i=1;i<r.length;i++){var l=r[i];0!==o[l]&&(n=!1)}n&&(u.splice(t--,1),e=f(f.s=r[0]))}return e}var n={},o={1:0},u=[];function f(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=e,f.c=n,f.d=function(e,t,r){f.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,t){if(1&t&&(e=f(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(f.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)f.d(r,n,function(t){return e[t]}.bind(null,n));return r},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="/static/dist2/";var i=this.webpackJsonpfrontend=this.webpackJsonpfrontend||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var p=l;r()}([])</script><script src="/static/dist2/static/js/2.e78fdbab.chunk.js"></script><script src="/static/dist2/static/js/main.c276df28.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "4120908d6b19c09319262120a0063c4e",
"revision": "30f34b9f1f88266ca895d00cace57057",
"url": "/static/dist2/index.html"
},
{
"revision": "c56dd44222c2cdf6a91c",
"revision": "e27646e504dece7852e8",
"url": "/static/dist2/static/css/2.7cafca44.chunk.css"
},
{
"revision": "a232180e72e0ac68059c",
"revision": "28e686e085d5cf0fdb80",
"url": "/static/dist2/static/css/main.ff3ce63a.chunk.css"
},
{
"revision": "c56dd44222c2cdf6a91c",
"url": "/static/dist2/static/js/2.564c31ea.chunk.js"
"revision": "e27646e504dece7852e8",
"url": "/static/dist2/static/js/2.e78fdbab.chunk.js"
},
{
"revision": "1aea4192c69f3efa45ca8d60d4c9b77a",
"url": "/static/dist2/static/js/2.564c31ea.chunk.js.LICENSE.txt"
"url": "/static/dist2/static/js/2.e78fdbab.chunk.js.LICENSE.txt"
},
{
"revision": "a232180e72e0ac68059c",
"url": "/static/dist2/static/js/main.ea77b330.chunk.js"
"revision": "28e686e085d5cf0fdb80",
"url": "/static/dist2/static/js/main.c276df28.chunk.js"
},
{
"revision": "0317add2a7aae2dc6c79",
Expand Down
2 changes: 1 addition & 1 deletion orchestra/frontend/build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/static/dist2/precache-manifest.20146b37b33094c90e8d6a7bc3ccd065.js"
"/static/dist2/precache-manifest.b062617634d0c77b19b224670f938325.js"
);

self.addEventListener('message', (event) => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 552d602

Please sign in to comment.