Skip to content

Commit 91952fe

Browse files
Removed test logging
1 parent efed7b8 commit 91952fe

File tree

4 files changed

+1
-32
lines changed

4 files changed

+1
-32
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# DoS Integration
22

3-
43
## Table of Contents
54

65
- [DoS Integration](#dos-integration)

application/ingest_change_event/change_event_validation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def validate_organisation_keys(org_type_id: str, org_sub_type: str) -> None:
5858
ValidationError: Either Org Type ID or Org Sub Type is not part of the valid list
5959
"""
6060
validate_organisation_type_id(org_type_id)
61-
#logger.info("test log: ", len(PHARMACY_ORGANISATION_SUB_TYPES))
62-
#logger.info("test log: ", PHARMACY_ORGANISATION_SUB_TYPES)
6361
if org_sub_type in PHARMACY_ORGANISATION_SUB_TYPES:
6462
logger.info(f"Subtype type id: {org_sub_type} validated")
6563
else:

application/service_sync/data_processing/check_for_change.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def compare_nhs_uk_and_dos_data(
6363
Returns:
6464
ChangesToDoS: ChangesToDoS class with all the flags if changes need to be made and the changes to make
6565
"""
66-
6766
# Set up the holder class
6867
changes_to_dos = ChangesToDoS(dos_service=dos_service, nhs_entity=nhs_entity, service_histories=service_histories)
6968

@@ -80,8 +79,6 @@ def compare_nhs_uk_and_dos_data(
8079
# Compare blood pressure
8180
changes_to_dos = check_blood_pressure_for_change(changes_to_dos=changes_to_dos)
8281
# Compare contraception
83-
logger.warning(f"TEST LOG check for change {changes_to_dos.nhs_entity.org_sub_type}")
84-
8582
return check_contraception_for_change(changes_to_dos=changes_to_dos)
8683

8784

@@ -415,22 +412,3 @@ def status_id_change(changes_to_dos: ChangesToDoS, new_value: bool, previous_val
415412
),
416413
)
417414
return changes_to_dos
418-
419-
def check_org_for_change(changes_to_dos: ChangesToDoS) -> ChangesToDoS:
420-
"""Compares and creates change for website if needed.
421-
422-
Args:
423-
changes_to_dos (ChangesToDoS): ChangesToDoS holder object
424-
425-
Returns:
426-
ChangesToDoS: ChangesToDoS holder object
427-
"""
428-
if compare_website(changes=changes_to_dos):
429-
changes_to_dos = services_change(
430-
changes_to_dos=changes_to_dos,
431-
change_key=DOS_WEBSITE_CHANGE_KEY,
432-
new_value=changes_to_dos.new_website,
433-
previous_value=changes_to_dos.current_website,
434-
service_table_field_name="web",
435-
)
436-
return changes_to_dos

application/service_sync/service_sync.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,15 @@ def lambda_handler(event: SQSEvent, context: LambdaContext) -> None: # noqa: AR
5454
nhs_entity=nhs_entity,
5555
service_histories=service_histories,
5656
)
57-
58-
logger.warning(f"TEST LOG {changes_to_dos.nhs_entity.org_sub_type}")
59-
60-
logger.warning(f"TEST LOG22 {changes_to_dos}")
6157
# Update Service History with changes to be made
6258
service_histories = changes_to_dos.service_histories
6359
# Update DoS data
6460
update_dos_data(changes_to_dos=changes_to_dos, service_id=int(service_id), service_histories=service_histories)
6561
# Delete the message from the queue
6662
remove_sqs_message_from_queue(receipt_handle=record.receipt_handle)
67-
logger.warning(f"final log {changes_to_dos}")
68-
6963
# Log custom metrics
7064
logger.warning(
71-
"Update Request Success TEST",
65+
"Update Request Success",
7266
latency=(time_ns() // 1000000)
7367
- int(record.message_attributes.get("message_received", {}).get("stringValue")),
7468
environment=getenv("ENVIRONMENT"),

0 commit comments

Comments
 (0)