Skip to content

Commit 26a8dc7

Browse files
Release v 1 16 0 (#249)
* Links in the Notification center modal are not working * Fixes faulty attribute recalculation after record update --------- Co-authored-by: Lina <[email protected]>
1 parent ddbd430 commit 26a8dc7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

api/transfer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,11 @@ def __calculate_missing_attributes(project_id: str, user_id: str) -> None:
429429
continue
430430
elif current_att.state == enums.AttributeState.INITIAL.value:
431431
attribute_manager.calculate_user_attribute_all_records(
432-
project_id, user_id, current_att_id, True
432+
project_id,
433+
project.get_org_id(project_id),
434+
user_id,
435+
current_att_id,
436+
True,
433437
)
434438
else:
435439
if tokenization.is_doc_bin_creation_running_for_attribute(

fast_api/routes/notification.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from controller.auth import manager as auth
77
from submodules.model.business_objects.notification import get_filtered_notification
88
from submodules.model.util import sql_alchemy_to_dict
9+
from controller.notification.notification_data import __notification_data
910

1011

1112
router = APIRouter()
@@ -42,4 +43,10 @@ def get_notifications(
4243
)
4344

4445
data = sql_alchemy_to_dict(notifications)
46+
for notification in data:
47+
notification_data = __notification_data.get(notification["type"])
48+
notification["docs"] = notification_data["docs"]
49+
notification["page"] = notification_data["page"]
50+
notification["title"] = notification_data["title"]
51+
4552
return pack_json_result({"data": {"notifications": data}})

0 commit comments

Comments
 (0)