zou 0.20.72__py3-none-any.whl → 0.20.73__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zou/__init__.py +1 -1
- zou/app/blueprints/comments/resources.py +1 -1
- zou/app/blueprints/search/resources.py +61 -19
- zou/app/blueprints/tasks/resources.py +482 -215
- zou/app/blueprints/user/resources.py +664 -341
- zou/app/services/comments_service.py +2 -2
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/METADATA +1 -1
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/RECORD +12 -12
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/WHEEL +0 -0
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/entry_points.txt +0 -0
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/licenses/LICENSE +0 -0
- {zou-0.20.72.dist-info → zou-0.20.73.dist-info}/top_level.txt +0 -0
zou/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.20.
|
|
1
|
+
__version__ = "0.20.73"
|
|
@@ -341,7 +341,7 @@ class AddAttachmentToCommentResource(Resource):
|
|
|
341
341
|
user_service.check_manager_project_access(task["project_id"])
|
|
342
342
|
|
|
343
343
|
files = request.files
|
|
344
|
-
comment = comments_service.add_attachments_to_comment(
|
|
344
|
+
comment, _ = comments_service.add_attachments_to_comment(
|
|
345
345
|
comment, files, reply_id=None
|
|
346
346
|
)
|
|
347
347
|
return comment["attachment_files"], 201
|
|
@@ -15,27 +15,69 @@ class SearchResource(Resource, ArgsMixin):
|
|
|
15
15
|
---
|
|
16
16
|
tags:
|
|
17
17
|
- Search
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
requestBody:
|
|
19
|
+
required: true
|
|
20
|
+
content:
|
|
21
|
+
application/json:
|
|
22
|
+
schema:
|
|
23
|
+
type: object
|
|
24
|
+
required:
|
|
25
|
+
- query
|
|
26
|
+
properties:
|
|
27
|
+
query:
|
|
28
|
+
type: string
|
|
29
|
+
example: test will search for test
|
|
30
|
+
description: Search query string (minimum 3 characters)
|
|
31
|
+
project_id:
|
|
32
|
+
type: string
|
|
33
|
+
format: uuid
|
|
34
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
35
|
+
description: Filter search results by project ID
|
|
36
|
+
limit:
|
|
37
|
+
type: integer
|
|
38
|
+
default: 3
|
|
39
|
+
example: 3
|
|
40
|
+
description: Maximum number of results per index
|
|
41
|
+
offset:
|
|
42
|
+
type: integer
|
|
43
|
+
default: 0
|
|
44
|
+
example: 0
|
|
45
|
+
description: Number of results to skip
|
|
46
|
+
index_names:
|
|
47
|
+
type: array
|
|
48
|
+
items:
|
|
49
|
+
type: string
|
|
50
|
+
enum: ["assets", "shots", "persons"]
|
|
51
|
+
default: ["assets", "shots", "persons"]
|
|
52
|
+
example: ["assets"]
|
|
53
|
+
description: List of index names to search in
|
|
36
54
|
responses:
|
|
37
55
|
200:
|
|
38
|
-
|
|
56
|
+
description: List of entities that contain the query
|
|
57
|
+
content:
|
|
58
|
+
application/json:
|
|
59
|
+
schema:
|
|
60
|
+
type: object
|
|
61
|
+
properties:
|
|
62
|
+
persons:
|
|
63
|
+
type: array
|
|
64
|
+
items:
|
|
65
|
+
type: object
|
|
66
|
+
description: List of matching persons
|
|
67
|
+
assets:
|
|
68
|
+
type: array
|
|
69
|
+
items:
|
|
70
|
+
type: object
|
|
71
|
+
description: List of matching assets
|
|
72
|
+
shots:
|
|
73
|
+
type: array
|
|
74
|
+
items:
|
|
75
|
+
type: object
|
|
76
|
+
description: List of matching shots
|
|
77
|
+
400:
|
|
78
|
+
description: Bad request
|
|
79
|
+
403:
|
|
80
|
+
description: Insufficient permissions
|
|
39
81
|
"""
|
|
40
82
|
args = self.get_args(
|
|
41
83
|
[
|