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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.20.72"
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
- parameters:
19
- - in: formData
20
- name: query
21
- required: True
22
- type: string
23
- example: test will search for test
24
- - in: formData
25
- name: limit
26
- required: False
27
- type: integer
28
- default: 3
29
- example: 3
30
- - in: formData
31
- name: index_names
32
- required: False
33
- type: list of strings
34
- default: ["assets", "shots", "persons"]
35
- example: ["assets"]
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
- description: List of entities that contain the query
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
  [