python-jira-plus 1.0.7__tar.gz → 1.0.8__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Home-page: https://github.com/aviz92/python-jira-plus
6
6
  Author: Avi Zaguri
@@ -25,7 +25,11 @@ def _(value: str, allowed_values: list = None):
25
25
 
26
26
  @describe_allowed_value.register
27
27
  def _(value: list, allowed_values: list = None):
28
- return any(v in allowed_values for v in value)
28
+ if all(isinstance(v, (str, int, float)) for v in value):
29
+ return any(v in allowed_values for v in value)
30
+ if all(isinstance(v, dict) for v in value):
31
+ return any([list(v.values())[0] in allowed_values for v in value])
32
+ return False
29
33
 
30
34
 
31
35
  @describe_allowed_value.register
@@ -51,7 +51,8 @@ class JiraPlus:
51
51
  self.jira_client = self.create_connection()
52
52
  self.check_client_connection()
53
53
 
54
- @retry(stop_max_attempt_number=3, wait_fixed=180000) # Retry 3 times with a 3-min (180000) delay between each attempt
54
+ @retry(stop_max_attempt_number=3,
55
+ wait_fixed=180000) # Retry 3 times with a 3-min (180000) delay between each attempt
55
56
  def create_connection(self, timeout=580) -> Optional[JIRA]:
56
57
  if self.server_type == ServerType.ON_PREMISE and not self.sso:
57
58
  jira_client = JIRA(
@@ -233,9 +234,9 @@ class JiraPlus:
233
234
 
234
235
  def check_server_createmeta_compatibility(self) -> bool:
235
236
  server_version = self.get_server_version()
236
- if self.server_type == ServerType.ON_PREMISE and server_version < (8, 0, 0):
237
+ if self.server_type == ServerType.ON_PREMISE and ''.join(str(x) for x in server_version) > '9.0.0':
237
238
  self.logger.warning(
238
- f"JIRA server version {server_version} is below the minimum required version (8.0.0). "
239
+ f"JIRA server version {server_version} is below the minimum required version (9.0.0). "
239
240
  "Some features may not work as expected."
240
241
  )
241
242
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Home-page: https://github.com/aviz92/python-jira-plus
6
6
  Author: Avi Zaguri
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '1.0.7'
3
+ package_version = '1.0.8'
4
4
 
5
5
  package_name = 'python-jira-plus'
6
6
  package_description = 'Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.'