trovesuite 1.0.23__tar.gz → 1.0.24__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.
Files changed (43) hide show
  1. {trovesuite-1.0.23/src/trovesuite.egg-info → trovesuite-1.0.24}/PKG-INFO +1 -1
  2. {trovesuite-1.0.23 → trovesuite-1.0.24}/pyproject.toml +2 -2
  3. {trovesuite-1.0.23 → trovesuite-1.0.24}/setup.py +1 -1
  4. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/configs/settings.py +1 -0
  5. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/utils/helper.py +10 -11
  6. {trovesuite-1.0.23 → trovesuite-1.0.24/src/trovesuite.egg-info}/PKG-INFO +1 -1
  7. {trovesuite-1.0.23 → trovesuite-1.0.24}/LICENSE +0 -0
  8. {trovesuite-1.0.23 → trovesuite-1.0.24}/MANIFEST.in +0 -0
  9. {trovesuite-1.0.23 → trovesuite-1.0.24}/README.md +0 -0
  10. {trovesuite-1.0.23 → trovesuite-1.0.24}/requirements.txt +0 -0
  11. {trovesuite-1.0.23 → trovesuite-1.0.24}/setup.cfg +0 -0
  12. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/__init__.py +0 -0
  13. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/__init__.py +0 -0
  14. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/auth_base.py +0 -0
  15. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/auth_controller.py +0 -0
  16. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/auth_read_dto.py +0 -0
  17. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/auth_service.py +0 -0
  18. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/auth/auth_write_dto.py +0 -0
  19. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/configs/__init__.py +0 -0
  20. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/configs/database.py +0 -0
  21. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/configs/logging.py +0 -0
  22. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/entities/__init__.py +0 -0
  23. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/entities/health.py +0 -0
  24. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/entities/sh_response.py +0 -0
  25. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/__init__.py +0 -0
  26. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/notification_base.py +0 -0
  27. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/notification_controller.py +0 -0
  28. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/notification_read_dto.py +0 -0
  29. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/notification_service.py +0 -0
  30. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/notification/notification_write_dto.py +0 -0
  31. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/__init__.py +0 -0
  32. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/storage_base.py +0 -0
  33. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/storage_controller.py +0 -0
  34. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/storage_read_dto.py +0 -0
  35. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/storage_service.py +0 -0
  36. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/storage/storage_write_dto.py +0 -0
  37. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/utils/__init__.py +0 -0
  38. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite/utils/templates.py +0 -0
  39. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite.egg-info/SOURCES.txt +0 -0
  40. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite.egg-info/dependency_links.txt +0 -0
  41. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite.egg-info/not-zip-safe +0 -0
  42. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite.egg-info/requires.txt +0 -0
  43. {trovesuite-1.0.23 → trovesuite-1.0.24}/src/trovesuite.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trovesuite
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Summary: TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications
5
5
  Home-page: https://dev.azure.com/brightgclt/trovesuite/_git/packages
6
6
  Author: Bright Debrah Owusu
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "trovesuite"
7
- version = "1.0.23"
7
+ version = "1.0.24"
8
8
  description = "TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications"
9
9
  authors = ["brightgclt <brightgclt@gmail.com>"]
10
10
  license = "MIT"
@@ -58,7 +58,7 @@ Documentation = "https://dev.azure.com/brightgclt/trovesuite/_git/packages"
58
58
 
59
59
  [project]
60
60
  name = "trovesuite"
61
- version = "1.0.23"
61
+ version = "1.0.24"
62
62
  description = "TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications"
63
63
  readme = "README.md"
64
64
  license = {text = "MIT"}
@@ -15,7 +15,7 @@ with open("pyproject.toml", "r", encoding="utf-8") as fh:
15
15
 
16
16
  setup(
17
17
  name="trovesuite",
18
- version="1.0.23",
18
+ version="1.0.24",
19
19
  author="Bright Debrah Owusu",
20
20
  author_email="owusu.debrah@deladetech.com",
21
21
  description="TroveSuite services package providing authentication, authorization, notifications, and other enterprise services for TroveSuite applications",
@@ -81,6 +81,7 @@ class Settings:
81
81
  CORE_PLATFORM_ASSIGN_LOCATIONS_TABLE = os.getenv("CORE_PLATFORM_ASSIGN_LOCATIONS_TABLE", "core_platform.cp_assign_locations")
82
82
  CORE_PLATFORM_UNIT_OF_MEASURE_TABLE = os.getenv("CORE_PLATFORM_UNIT_OF_MEASURE_TABLE", "core_platform.cp_unit_of_measures")
83
83
  CORE_PLATFORM_CURRENCY = os.getenv("CORE_PLATFORM_CURRENCY", "core_platform.cp_currencies")
84
+ CORE_PLATFORM_THEMES_TABLE = os.getenv("CORE_PLATFORM_THEMES_TABLE", "core_platform.cp_themes")
84
85
 
85
86
  # Mail Configurations
86
87
  MAIL_SENDER_EMAIL=os.getenv("MAIL_SENDER_EMAIL")
@@ -97,8 +97,7 @@ class Helper:
97
97
  try:
98
98
  if tenant_id:
99
99
  # For tenant-specific resource IDs, check shared schema with tenant_id filter
100
- # Note: TENANT_RESOURCE_ID_TABLE needs to be defined in settings
101
- tenant_resource_table = getattr(db_settings, 'TENANT_RESOURCE_ID_TABLE', None)
100
+ tenant_resource_table = getattr(db_settings, 'CORE_PLATFORM_TENANT_RESOURCE_ID_TABLE', None) or getattr(db_settings, 'CORE_PLATFORM_RESOURCE_ID_TABLE', None)
102
101
  if tenant_resource_table:
103
102
  resource_exists = DatabaseManager.execute_scalar(
104
103
  f"""SELECT COUNT(1) FROM {tenant_resource_table}
@@ -110,7 +109,7 @@ class Helper:
110
109
  resource_exists = 0
111
110
  else:
112
111
  # For main schema resource IDs
113
- main_resource_table = getattr(db_settings, 'MAIN_RESOURCE_ID_TABLE', None)
112
+ main_resource_table = getattr(db_settings, 'CORE_PLATFORM_RESOURCE_ID_TABLE', None)
114
113
  if main_resource_table:
115
114
  resource_exists = DatabaseManager.execute_scalar(
116
115
  f"""SELECT COUNT(1) FROM {main_resource_table}
@@ -236,9 +235,9 @@ class Helper:
236
235
 
237
236
  try:
238
237
  # Check if table name is set
239
- tenant_activity_logs_table = getattr(db_settings, 'TENANT_ACTIVITY_LOGS_TABLE', None)
238
+ tenant_activity_logs_table = getattr(db_settings, 'CORE_PLATFORM_ACTIVITY_LOGS_TABLE', None)
240
239
  if not tenant_activity_logs_table:
241
- logger.error("TENANT_ACTIVITY_LOGS_TABLE is not configured in settings")
240
+ logger.error("CORE_PLATFORM_ACTIVITY_LOGS_TABLE is not configured in settings")
242
241
  return
243
242
 
244
243
  log_id = Helper.generate_unique_identifier(prefix="alog")
@@ -263,7 +262,7 @@ class Helper:
263
262
  if user_id:
264
263
  try:
265
264
  logger.debug(f"Fetching user information for user_id={user_id}")
266
- main_users_table = getattr(db_settings, 'MAIN_USERS_TABLE', 'main.cp_users')
265
+ main_users_table = getattr(db_settings, 'CORE_PLATFORM_USERS_TABLE', 'core_platform.cp_users')
267
266
  user_data = DatabaseManager.execute_query(
268
267
  f"""SELECT email, contact, fullname
269
268
  FROM {main_users_table}
@@ -414,10 +413,10 @@ class Helper:
414
413
  """
415
414
  try:
416
415
  # Get table names from settings with fallbacks
417
- main_users_table = getattr(db_settings, 'MAIN_USERS_TABLE', 'main.users')
418
- main_roles_table = getattr(db_settings, 'MAIN_ROLES_TABLE', 'main.roles')
419
- tenant_assign_roles_table = getattr(db_settings, 'TENANT_ASSIGN_ROLES_TABLE', 'main.tenant_assign_roles')
420
- tenant_user_groups_table = getattr(db_settings, 'TENANT_USER_GROUPS_TABLE', 'main.tenant_user_groups')
416
+ main_users_table = getattr(db_settings, 'CORE_PLATFORM_USERS_TABLE', 'core_platform.cp_users')
417
+ main_roles_table = getattr(db_settings, 'CORE_PLATFORM_ROLES_TABLE', 'core_platform.cp_roles')
418
+ tenant_assign_roles_table = getattr(db_settings, 'CORE_PLATFORM_ASSIGN_ROLES_TABLE', 'core_platform.cp_assign_roles')
419
+ tenant_user_groups_table = getattr(db_settings, 'CORE_PLATFORM_USER_GROUPS_TABLE', 'core_platform.cp_user_groups')
421
420
 
422
421
  # Query to get users with admin roles - both direct and through groups
423
422
  query = f"""
@@ -568,7 +567,7 @@ class Helper:
568
567
  actor_email = "no-reply@trovesuite.com"
569
568
 
570
569
  if actor_user_id:
571
- main_users_table = getattr(db_settings, 'MAIN_USERS_TABLE', 'main.cp_users')
570
+ main_users_table = getattr(db_settings, 'CORE_PLATFORM_USERS_TABLE', 'core_platform.cp_users')
572
571
  actor_details = DatabaseManager.execute_query(
573
572
  f"""SELECT fullname, email
574
573
  FROM {main_users_table}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trovesuite
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Summary: TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications
5
5
  Home-page: https://dev.azure.com/brightgclt/trovesuite/_git/packages
6
6
  Author: Bright Debrah Owusu
File without changes
File without changes
File without changes
File without changes