squad 1.93.6__py3-none-any.whl → 1.94__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- squad/api/rest.py +11 -2
- squad/ci/tasks.py +10 -1
- squad/frontend/static/squad/controllers/fetch.js +1 -1
- squad/version.py +1 -1
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/METADATA +1 -1
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/RECORD +10 -10
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/COPYING +0 -0
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/WHEEL +0 -0
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/entry_points.txt +0 -0
- {squad-1.93.6.dist-info → squad-1.94.dist-info}/top_level.txt +0 -0
squad/api/rest.py
CHANGED
@@ -1767,11 +1767,20 @@ class TestJobViewSet(ModelViewSet):
|
|
1767
1767
|
|
1768
1768
|
@action(detail=True, methods=['post'], suffix='fetch')
|
1769
1769
|
def fetch(self, request, **kwargs):
|
1770
|
+
clean_testrun = request.data.get('clean_testrun') is not None
|
1771
|
+
|
1770
1772
|
testjob = self.get_object()
|
1771
1773
|
testjob.fetched = False
|
1772
1774
|
testjob.fetch_attempts = 0
|
1773
|
-
testjob.
|
1774
|
-
|
1775
|
+
testjob.subtasks_count = 0
|
1776
|
+
testjob.job_status = None
|
1777
|
+
testjob.save(update_fields=[
|
1778
|
+
'fetched',
|
1779
|
+
'fetch_attempts',
|
1780
|
+
'subtasks_count',
|
1781
|
+
'job_status',
|
1782
|
+
])
|
1783
|
+
fetch.delay(testjob.id, clean_testrun=clean_testrun)
|
1775
1784
|
log_change(request, testjob, "Testjob queued for fetching")
|
1776
1785
|
return Response({'job_id': testjob.job_id, 'status': 'Queued for fetching'}, status=status.HTTP_200_OK)
|
1777
1786
|
|
squad/ci/tasks.py
CHANGED
@@ -25,10 +25,19 @@ def poll(backend_id=None):
|
|
25
25
|
|
26
26
|
|
27
27
|
@celery.task
|
28
|
-
def fetch(job_id):
|
28
|
+
def fetch(job_id, clean_testrun=False):
|
29
29
|
logger.info("fetching %s" % job_id)
|
30
|
+
|
30
31
|
try:
|
31
32
|
testjob = TestJob.objects.get(pk=job_id)
|
33
|
+
if clean_testrun and testjob.testrun:
|
34
|
+
logger.info("clean_testrun=True, cleaning job's testrun")
|
35
|
+
testrun = testjob.testrun
|
36
|
+
testjob.testrun = None
|
37
|
+
testjob.save()
|
38
|
+
|
39
|
+
testrun.delete()
|
40
|
+
|
32
41
|
if testjob.job_id:
|
33
42
|
testjob.backend.fetch(testjob.id)
|
34
43
|
except TestJob.DoesNotExist:
|
@@ -7,7 +7,7 @@ export function FetchController($scope, $http, $timeout) {
|
|
7
7
|
if ($scope.done) return
|
8
8
|
$scope.loading = true
|
9
9
|
|
10
|
-
$http.post("/api/testjobs/" + test_job_id + "/fetch/").then(
|
10
|
+
$http.post("/api/testjobs/" + test_job_id + "/fetch/", {"clean_testrun": true}).then(
|
11
11
|
function(response) {
|
12
12
|
$timeout(function() {
|
13
13
|
$scope.loading = false
|
squad/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '1.
|
1
|
+
__version__ = '1.94'
|
@@ -10,7 +10,7 @@ squad/manage.py,sha256=Z-LXT67p0R-IzwJ9fLIAacEZmU0VUjqDOSg7j2ZSxJ4,1437
|
|
10
10
|
squad/settings.py,sha256=sLSts3qmUgXmpLmzhOBrTmFcSuBRMugo0hDY0uw4z3A,14792
|
11
11
|
squad/socialaccount.py,sha256=vySqPwQ3qVVpahuJ-Snln8K--yzRL3bw4Nx27AsB39A,789
|
12
12
|
squad/urls.py,sha256=JiEfVW8YlzLPE52c2aHzdn5kVVKK4o22w8h5KOA6QhQ,2776
|
13
|
-
squad/version.py,sha256=
|
13
|
+
squad/version.py,sha256=mo4yWw83enC5YfVFW1HJGJ-M7Y6KcvytiksUSHnNT24,21
|
14
14
|
squad/wsgi.py,sha256=SF8T0cQ0OPVyuYjO5YXBIQzvSXQHV0M2BTmd4gP1rPs,387
|
15
15
|
squad/api/__init__.py,sha256=CJiVakfAlHVN5mIFRVQYZQfuNUhUgWVbsdYTME4tq7U,1349
|
16
16
|
squad/api/apps.py,sha256=Trk72p-iV1uGn0o5mdJn5HARUoHGbfgO49jwXvpkmdQ,141
|
@@ -18,7 +18,7 @@ squad/api/ci.py,sha256=QjGIhSpm8gmIjH4Nd2NAWtJItSVleg3QOLxBU_p9h1E,7082
|
|
18
18
|
squad/api/data.py,sha256=obKDV0-neEvj5lPF9VED2gy_hpfhGtLJABYvSY38ing,2379
|
19
19
|
squad/api/filters.py,sha256=Zvp8DCJmiNquFWqvfVseEAAMYYPiT95RUjqKdzcqSnw,6917
|
20
20
|
squad/api/prometheus.py,sha256=MEzSZtYYx6PXreIwZzcVHLp-1vVQ9IKhi9hb8b0vjUk,1839
|
21
|
-
squad/api/rest.py,sha256=
|
21
|
+
squad/api/rest.py,sha256=AYYAIZxQClT5VJYECCYvPhbI8n2pj3KCunFtkusDaZc,77776
|
22
22
|
squad/api/urls.py,sha256=c-o27_RP0ynOtxuyRKUl274fFMWWrzoii31Mr2saxSQ,1414
|
23
23
|
squad/api/utils.py,sha256=Sa8QFId3_oSqD2UOoY3Kuh54LLDLPNMq2sub5ktd6Fs,1160
|
24
24
|
squad/api/views.py,sha256=WH4c10e7iRmuL5tWDxG4zEFHzvF5hxDpEVvybfvbc_E,3880
|
@@ -27,7 +27,7 @@ squad/ci/admin.py,sha256=7yB-6F0cvt0NVvzGOTlZCyGPV_YHarmbKJZTTzataT4,2255
|
|
27
27
|
squad/ci/apps.py,sha256=6OVnzTdJkxdqEJnKWYE9dZgUcc29_T1LrDw41cK4EQk,139
|
28
28
|
squad/ci/exceptions.py,sha256=a1sccygniTYDSQi7FRn_6doapddFFiMf55AwGUh5Y80,227
|
29
29
|
squad/ci/models.py,sha256=_nXVB7BKAzCxSq1WGq1cXkBkhyX9CyRZcaOKQ7o4C1c,15951
|
30
|
-
squad/ci/tasks.py,sha256=
|
30
|
+
squad/ci/tasks.py,sha256=mpO_wFDA1ubKO1kVgNOoXcoTLP5HJqXaVCigHrT71Sc,4151
|
31
31
|
squad/ci/utils.py,sha256=38zHpw8xkZDSFlkG-2BwSK6AkcddK9OkN9LXuQ3SHR0,97
|
32
32
|
squad/ci/backend/__init__.py,sha256=yhpotXT9F4IdAOXvGQ3-17eOHAFwoaqf9SnMX17ab30,534
|
33
33
|
squad/ci/backend/fake.py,sha256=MTsxGZuihJOd39X8ysJhiYp4A0R46lyhdkjoTgFm6a8,2435
|
@@ -343,7 +343,7 @@ squad/frontend/static/squad/controllers/build_release.js,sha256=sZrjZGLSRMNjA1S1
|
|
343
343
|
squad/frontend/static/squad/controllers/cancel.js,sha256=o9VSiHTJ0I_Hu5vyH_JGYpsez6NQqfqWQaMs6TcpW1w,1734
|
344
344
|
squad/frontend/static/squad/controllers/charts.js,sha256=N06dHpKEDOqjkAzCI68LzcIJaZRDqqDYigqXSKRQIpw,35837
|
345
345
|
squad/frontend/static/squad/controllers/compare.js,sha256=SCpwDt9A6OL2CvQfDmNl6f3d34vskJm9jpJInw8teYQ,14782
|
346
|
-
squad/frontend/static/squad/controllers/fetch.js,sha256=
|
346
|
+
squad/frontend/static/squad/controllers/fetch.js,sha256=onWMBT3aBZMttLoGcVv8G4lS11VKTtSEfHhLETnKfow,929
|
347
347
|
squad/frontend/static/squad/controllers/filter.js,sha256=YpWdVFxjFYk-G-RhzbkyliQTu37bB1jawCcCah4RF3o,1710
|
348
348
|
squad/frontend/static/squad/controllers/metricThreshold.js,sha256=uxF3n9vt83eiFmxkp6ITjafi2X2HHi-47ubnjncEkyA,4758
|
349
349
|
squad/frontend/static/squad/controllers/project_compare.js,sha256=BU3ZJRZffenSe1YwtSuBeMitfwe1m-JHfrutUeE5RkU,1205
|
@@ -436,9 +436,9 @@ squad/run/__main__.py,sha256=DOl8JOi4Yg7DdtwnUeGqtYBJ6P2k-D2psAEuYOjWr8w,66
|
|
436
436
|
squad/run/listener.py,sha256=jBeOQhPGb4EdIREB1QsCzYuumsfJ-TqJPd3nR-0m59g,200
|
437
437
|
squad/run/scheduler.py,sha256=CDJG3q5C0GuQuxwlMOfWTSSJpDdwbR6rzpbJfuA0xuw,277
|
438
438
|
squad/run/worker.py,sha256=jtML0h5qKDuSbpJ6_rpWP4MT_rsGA7a24AhwGxBquzk,594
|
439
|
-
squad-1.
|
440
|
-
squad-1.
|
441
|
-
squad-1.
|
442
|
-
squad-1.
|
443
|
-
squad-1.
|
444
|
-
squad-1.
|
439
|
+
squad-1.94.dist-info/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
|
440
|
+
squad-1.94.dist-info/METADATA,sha256=ctZajy7aHid6EYEfJ-pjSdes8RsCbSvUx9RRUFiBPaY,1514
|
441
|
+
squad-1.94.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
442
|
+
squad-1.94.dist-info/entry_points.txt,sha256=apCDQydHZtvqV334ql6NhTJUAJeZRdtAm0TVcbbAi5Q,194
|
443
|
+
squad-1.94.dist-info/top_level.txt,sha256=_x9uqE1XppiiytmVTl_qNgpnXus6Gsef69HqfliE7WI,6
|
444
|
+
squad-1.94.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|