Skip to content

Commit ad46010

Browse files
author
Alex Meadows
committed
process_tracker_python-144 Add Process Dependency Classifier
✨ Dependency type added Extract and Process dependencies can now be classified by type.
1 parent 6a20306 commit ad46010

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

dbscripts/mysql_process_tracker.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ create table process_tracker.extract_dependency
266266
(
267267
parent_extract_id int not null,
268268
child_extract_id int not null,
269-
dependency_type_id int default 0 not null,
269+
dependency_type_id int default 1 not null,
270270
created_date_time timestamp default CURRENT_TIMESTAMP not null,
271271
created_by int default 0 not null,
272272
update_date_time timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP not null,
@@ -389,7 +389,7 @@ create table process_dependency
389389
(
390390
parent_process_id int not null,
391391
child_process_id int not null,
392-
dependency_type_id int default 0 not null,
392+
dependency_type_id int default 1 not null,
393393
created_date_time timestamp default CURRENT_TIMESTAMP not null,
394394
created_by int default 0 not null,
395395
update_date_time timestamp default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP not null,

dbscripts/mysql_process_tracker_defaults.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name)
5555
INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name) VALUES (3, 'Internal');
5656
INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name) VALUES (4, 'External');
5757

58-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (0, 'Undefined');
59-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (3, 'Hard');
60-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (4, 'Soft');
58+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (1, 'Undefined');
59+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (2, 'Hard');
60+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (3, 'Soft');
6161

dbscripts/postgresql_process_tracker.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ create table process_dependency
421421
references process,
422422
constraint process_dependency_pk
423423
primary key (child_process_id, parent_process_id),
424-
dependency_type_id int default 0 not null
424+
dependency_type_id int default 1 not null
425425
constraint process_dependency_fk03
426426
references dependency_type_lkup,
427427
created_date_time timestamp with time zone default CURRENT_TIMESTAMP not null,
@@ -1054,7 +1054,7 @@ create table extract_dependency
10541054
child_extract_id integer not null
10551055
constraint extract_dependency_fk02
10561056
references extract_tracking,
1057-
dependency_type_id int default 0 not null
1057+
dependency_type_id int default 1 not null
10581058
constraint extract_dependency_fk03
10591059
references dependency_type_lkup,
10601060
constraint extract_dependency_pk

dbscripts/postgresql_process_tracker_defaults.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name)
5454
INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name) VALUES (3, 'Internal');
5555
INSERT INTO process_tracker.source_type_lkup (source_type_id, source_type_name) VALUES (4, 'External');
5656

57-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (0, 'Undefined');
58-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (1, 'Hard');
59-
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (2, 'Soft');
57+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (1, 'Undefined');
58+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (2, 'Hard');
59+
INSERT INTO process_tracker.dependency_type_lkup (dependency_type_id, dependency_type_name) VALUES (3, 'Soft');

process_tracker/utilities/aws_utilities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def __init__(self):
1515
self.logger = logging.getLogger(__name__)
1616
self.logger.setLevel(self.log_level)
1717

18+
logging.getLogger("boto3").setLevel(logging.CRITICAL)
19+
logging.getLogger("botocore").setLevel(logging.CRITICAL)
20+
logging.getLogger("s3transfer").setLevel(logging.CRITICAL)
21+
logging.getLogger("urllib3").setLevel(logging.CRITICAL)
22+
1823
self.s3 = boto3.resource("s3")
1924

2025
self.url_match = re.compile(

0 commit comments

Comments
 (0)