Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit 4441a50

Browse files
authored
Merge pull request #66 from aws-solutions/develop
Update to version v2.0.0
2 parents 7f992e5 + 86d6869 commit 4441a50

File tree

143 files changed

+37927
-47466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+37927
-47466
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.0] - 2022-05-31
9+
10+
### Added
11+
12+
- The capability to ingest Subreddit comments using the Reddit API
13+
14+
### Updated
15+
16+
- CDK version 1.152.0
17+
- AWS SDK version 2.1127.0
18+
- Amazon QuickSight dashboard to support NLP analysis on Subreddit comments
19+
820
## [1.7.1] - 2022-03-29
921

1022
### Updated

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ information to effectively respond to your bug report or contribution.
1111

1212
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1313

14-
When filing an issue, please check [existing open](https://github.com/awslabs/discovering-hot-topics-using-machine-learning/issues), or [recently closed](https://github.com/awslabs/discovering-hot-topics-using-machine-learning/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed20), issues to make sure somebody else hasn't already
14+
When filing an issue, please check [existing open](https://github.com/aws-solutions/discovering-hot-topics-using-machine-learning/issues), or [recently closed](https://github.com/aws-solutions/discovering-hot-topics-using-machine-learning/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed20), issues to make sure somebody else hasn't already
1515
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1616

1717
* A reproducible test case or series of steps
@@ -41,7 +41,7 @@ GitHub provides additional document on [forking a repository](https://help.githu
4141

4242

4343
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/awslabs/discovering-hot-topics-using-machine-learning/labels/help%20wanted) issues is a great place to start.
44+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws-solutions/discovering-hot-topics-using-machine-learning/labels/help%20wanted) issues is a great place to start.
4545

4646

4747
## Code of Conduct
@@ -56,6 +56,6 @@ If you discover a potential security issue in this project we ask that you notif
5656

5757
## Licensing
5858

59-
See the [LICENSE](https://github.com/awslabs/discovering-hot-topics-using-machine-learning/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
59+
See the [LICENSE](https://github.com/aws-solutions/discovering-hot-topics-using-machine-learning/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
6060

6161
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

NOTICE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ pytest-cov - MIT license
3838
pytest - MIT license
3939
requests - Apache-2.0
4040
sinon - BSD license
41-
tenacity under the Apache License Version 2.0
41+
snoowrap - MIT license
42+
tenacity - Apache-2.0
4243
ts-jest - MIT license
4344
ts-node - MIT license
4445
twitter-lite - MIT License

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The solution is deployed using a CloudFormation template with a lambda backed cu
8383
│   ├── ingestion-consumer [lambda function that consumes messages from Amazon Kinesis Data Streams]
8484
│   ├── ingestion-custom [lambda function that reads files from Amazon S3 bucket and pushes data to Amazon Kinesis Data Streams]
8585
│   ├── ingestion-producer [lambda function that makes Twitter API call and pushes data to Amazon Kinesis Data Stream]
86+
│   ├── ingestion-reddit [lambda function that makes Reddit API call to retrieve comments from subreddits of interest and pushes data to Amazon Kinesis Data Stream]
8687
│   ├── ingestion-youtube [lambda function that ingests comments from YouTube videos and pushes data to Amazon Kinesis Data Streams]
8788
│   ├── integration [lambda function that publishes inference outputs to Amazon Events Bridge]
8889
│ ├── layers [lambda layer function library for Node and Python layers]
@@ -122,7 +123,7 @@ The solution can be deployed through the CloudFormation template available on th
122123

123124
Clone this git repository
124125

125-
`git clone https://github.com/awslabs/<repository_name>`
126+
`git clone https://github.com/aws-solutions/<repository_name>`
126127

127128
### 2. Build the solution for deployment
128129

source/images/architecture.png

70 KB
Loading
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
moto==3.0.7
2-
pytest==6.2.5
1+
moto==3.1.7
2+
pytest==7.1.2
33
pytest-cov==3.0.0
44
botocore
55
mock==4.0.3
6-
responses==0.16.0
6+
responses==0.20.0

source/lambda/capture_news_feed/test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import boto3
1818
import pytest
1919
from botocore.stub import Stubber
20-
from moto.dynamodb2 import mock_dynamodb2
20+
from moto.dynamodb import mock_dynamodb
2121
from shared_util import custom_boto_config
2222

2323

source/lambda/capture_news_feed/test/test_config_ddb_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
import boto3
1919
from boto3.dynamodb.conditions import Attr, Key
2020
from botocore.exceptions import EndpointConnectionError
21-
from moto import mock_dynamodb2
21+
from moto import mock_dynamodb
2222
from shared_util import custom_boto_config, service_helper
2323
from util import ddb_helper
2424

2525

26-
@mock_dynamodb2
26+
@mock_dynamodb
2727
def ddb_setup(table_name):
2828
# ddb = boto3.resource("dynamodb", config=custom_boto_config.init())
2929
ddb = service_helper.get_service_resource("dynamodb")
@@ -39,7 +39,7 @@ def ddb_setup(table_name):
3939
return ddb
4040

4141

42-
@mock_dynamodb2
42+
@mock_dynamodb
4343
class TestConfigDDBHelper(unittest.TestCase):
4444
def setUp(self):
4545
self.table_name = os.environ["DDB_CONFIG_TABLE_NAME"]

source/lambda/capture_news_feed/test/test_lambda.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import mock
2424
import pytest
2525
from botocore import stub
26-
from moto import mock_dynamodb2, mock_kinesis, mock_sts
26+
from moto import mock_dynamodb, mock_kinesis, mock_sts
2727
from shared_util import custom_boto_config
2828

2929

@@ -186,7 +186,7 @@ def lambda_event_bus_event():
186186

187187

188188
@mock_sts
189-
@mock_dynamodb2
189+
@mock_dynamodb
190190
def test_invoke_lambda_for_ddb_config(get_event_bus_stubber):
191191
lambda_event = create_cw_schedule_event()
192192
create_ddb_table_for_US_en()
@@ -215,7 +215,7 @@ def test_invoke_lambda_for_ddb_config(get_event_bus_stubber):
215215

216216

217217
@mock_sts
218-
@mock_dynamodb2
218+
@mock_dynamodb
219219
@mock.patch.dict(os.environ, {"CONFIG_PARAM": '{"country":"US", "language":"en"}'})
220220
@mock.patch.dict(os.environ, {"SEARCH_QUERY": "fakequery"})
221221
def test_invoke_lambda_for_json_str(get_event_bus_stubber):
@@ -245,7 +245,7 @@ def test_invoke_lambda_for_json_str(get_event_bus_stubber):
245245

246246

247247
@mock_sts
248-
@mock_dynamodb2
248+
@mock_dynamodb
249249
def test_invoke_lambda_for_ddb_config_with_failed_count(get_event_bus_stubber):
250250
lambda_event = create_cw_schedule_event()
251251
create_ddb_table_for_US_en()
@@ -274,7 +274,7 @@ def test_invoke_lambda_for_ddb_config_with_failed_count(get_event_bus_stubber):
274274

275275

276276
@mock_sts
277-
@mock_dynamodb2
277+
@mock_dynamodb
278278
@mock_kinesis
279279
def test_invoke_process_config_handler():
280280
lambda_event = create_event_bus_consumer_event()

source/lambda/capture_news_feed/test/test_news_catcher_helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from datetime import datetime, timedelta, timezone
1818
from unittest import mock
1919

20-
from moto import mock_dynamodb2, mock_kinesis
20+
from moto import mock_dynamodb, mock_kinesis
2121
from util import newscatcher_helper
2222

2323

@@ -57,7 +57,7 @@ def test_retrieve_feed_from_all_topics(self, mocked_feed_call):
5757
self.assertEqual(mocked_feed_call.call_count, len(newscatcher_helper.get_topic_list()))
5858

5959
@mock_kinesis
60-
@mock_dynamodb2
60+
@mock_dynamodb
6161
def test_create_and_publish_record(self):
6262
setup_test_case()
6363
news_feed = newscatcher_helper.retrieve_feed("latimes.com")
@@ -73,7 +73,7 @@ def test_create_and_publish_record(self):
7373
)
7474

7575
@mock_kinesis
76-
@mock_dynamodb2
76+
@mock_dynamodb
7777
def test_published_date(self):
7878
setup_test_case()
7979
news_feed = newscatcher_helper.retrieve_feed("cnn.com")
@@ -93,7 +93,7 @@ def test_published_date(self):
9393
)
9494

9595
@mock_kinesis
96-
@mock_dynamodb2
96+
@mock_dynamodb
9797
def test_with_query_string(self):
9898
setup_test_case()
9999
news_feed = newscatcher_helper.retrieve_feed("cnn.com")

0 commit comments

Comments
 (0)