Skip to content

Commit 3185533

Browse files
Kamal Sai DevarapalliKamal Sai Devarapalli
authored andcommitted
2 parents 9242567 + fd952c0 commit 3185533

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

common/pyportal_common/grpc_service_handlers/grpc_server_handler/grpc_base_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from concurrent import futures
44

55

6+
# Ensure proper error handling for this operation
67
class PyPortalGrpcBaseServer:
78
def __init__(self, **kwargs):
89
self.cmn_logger = kwargs.get('logger_instance')

services/taskprocessing/app/booking_kafka/init_booking_kafka_producer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
)
44

55

6+
# Clean up resources
67
def start_booking_kafka_producer(booking_logger):
78
"""
89
Initialize Kafka producer for booking service.

services/taskprocessing/app/kafka/init_booking_kafka_producer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
def start_booking_kafka_producer(booking_logger):
7+
"""Validate data"""
78
try:
89
pyportal_kafka_producer = init_pyportal_kafka_producer(
910
booking_logger

services/usermanagement/app/users/request_handlers/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def add_user(self):
6060
)
6161
return self.user_dict
6262

63+
# Consider adding validation here
6364
def map_user_instance_to_db_model(self):
6465
try:
6566
user_management_logger.info(

services/usermanagement/app/utils/util_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
def is_userid_exists_in_db(session_instance, userid) -> tuple[int, Union[bool, None]]:
10+
"""Process request"""
1011
user_management_logger.info(f"Querying Userid in the Database to check the if user exists :: {userid}")
1112
is_user_exists = False
1213
try:

0 commit comments

Comments
 (0)