assemblyline-v4-service 4.5.0.29__py3-none-any.whl → 4.5.0.31__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.

Potentially problematic release.


This version of assemblyline-v4-service might be problematic. Click here for more details.

@@ -1 +1 @@
1
- 4.5.0.29
1
+ 4.5.0.31
@@ -136,13 +136,19 @@ class SyncableSignatureClient(SignatureClient):
136
136
  if isinstance(d, SignatureModel):
137
137
  d = d.as_primitives()
138
138
 
139
+ # Compute the expected signature ID
140
+ sig_id = f"{sig_type}_{source}_{d['signature_id']}"
141
+ sig_exists = self.datastore.signature.get_if_exists(sig_id, as_obj=False)
142
+ if sig_exists and sig_exists['state_change_user'] not in ['update_service_account', None]:
143
+ # Preserve status set by an actual user
144
+ d['status'] = sig_exists['status']
145
+ d['state_change_user'] = sig_exists['state_change_user']
146
+
139
147
  if self.sync:
140
- # Compute the expected signature ID and add it to the list
141
- sig_id = f"{sig_type}_{source}_{d['signature_id']}"
148
+ # Add signature ID to the list
142
149
  current_signature_ids.add(sig_id)
143
150
 
144
151
  # Check to see if there's any important changes made
145
- sig_exists: SignatureModel = self.datastore.signature.get_if_exists(sig_id, as_obj=False)
146
152
  if sig_exists and all(sig_exists[attr] == d[attr] for attr in ['status', 'data', 'classification']):
147
153
  # If no changes, then use the old `last_modified` value
148
154
  d['last_modified'] = sig_exists['last_modified']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: assemblyline-v4-service
3
- Version: 4.5.0.29
3
+ Version: 4.5.0.31
4
4
  Summary: Assemblyline 4 - Service base
5
5
  Home-page: https://github.com/CybercentreCanada/assemblyline-v4-service/
6
6
  Author: CCCS Assemblyline development team
@@ -1,4 +1,4 @@
1
- assemblyline_v4_service/VERSION,sha256=5iHmLzWZaCCho1OVr_tp40DbE-FbtCYT4q-9Dc1CJeY,9
1
+ assemblyline_v4_service/VERSION,sha256=VnvTQb9mu8tfHrGrPNjkuK9nUFnA4HKqBYWSVRm_Fcs,9
2
2
  assemblyline_v4_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  assemblyline_v4_service/healthz.py,sha256=3QGBg0EZuXC6UN411HFwpLNEop9UvS9feFhvBUTP-k4,1576
4
4
  assemblyline_v4_service/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,7 +19,7 @@ assemblyline_v4_service/dev/run_service_once.py,sha256=caqUHYc27JLuJPOwkEuhf8-wl
19
19
  assemblyline_v4_service/updater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  assemblyline_v4_service/updater/__main__.py,sha256=9Os-u8Tf7MD73JSrUSPmOaErTgfvesNLiEeszU4ujXA,133
21
21
  assemblyline_v4_service/updater/app.py,sha256=Mtmx4bkXfP4nFqqa5q15jW8QIXr4JK84lCovxAVyvPs,3317
22
- assemblyline_v4_service/updater/client.py,sha256=oOOIzh-Q-b5uOTo3C4rVSfQxqUO5Y_ogDmUhvWfm5uo,9518
22
+ assemblyline_v4_service/updater/client.py,sha256=7_56Ie-2073FlrVWscS-3lIIkg8F-81u97FVNqEJLyQ,9798
23
23
  assemblyline_v4_service/updater/gunicorn_config.py,sha256=p3j2KPBeD5jvMw9O5i7vAtlRgPSVVxIG9AO0DfN82J8,1247
24
24
  assemblyline_v4_service/updater/helper.py,sha256=-B35wdjpeY4t1R9SPDrTFHFKHwE3uzy9N69mV6mHy-g,9532
25
25
  assemblyline_v4_service/updater/updater.py,sha256=6LFvqBkNu6mDaBKZGEaFGtE8g3DtDNBYWt8jXx6fnOw,29507
@@ -38,8 +38,8 @@ test/test_common/test_request.py,sha256=zoBURe3QbycWK4I7uvkixcmykrOCqY_TchmxJinN
38
38
  test/test_common/test_result.py,sha256=6BiOKxEPrKBjOY44jv3TY-yiXm0qI1ok_CZBnjP9TM4,45447
39
39
  test/test_common/test_task.py,sha256=LzEIfFHJEcB_YPucOZGtm1TwyHnqJE-0Qc2MDsH4TN4,18957
40
40
  test/test_common/test_utils.py,sha256=TbnBxqpS_ZC5ptXR9XJX3xtbItD0mTbtiBxxdyP8J5k,5904
41
- assemblyline_v4_service-4.5.0.29.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
42
- assemblyline_v4_service-4.5.0.29.dist-info/METADATA,sha256=qtnn26Vo3FLqi9Jkp8SWsXVGQOQ6sYiz_KuJSnjzlVo,9495
43
- assemblyline_v4_service-4.5.0.29.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
- assemblyline_v4_service-4.5.0.29.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
45
- assemblyline_v4_service-4.5.0.29.dist-info/RECORD,,
41
+ assemblyline_v4_service-4.5.0.31.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
42
+ assemblyline_v4_service-4.5.0.31.dist-info/METADATA,sha256=ey-muKE4NhZzmGB6YsSkgjfTidVhjRL6VTvffEHO3zk,9495
43
+ assemblyline_v4_service-4.5.0.31.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
44
+ assemblyline_v4_service-4.5.0.31.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
45
+ assemblyline_v4_service-4.5.0.31.dist-info/RECORD,,