Skip to content

Commit

Permalink
Merge pull request #299 from COS301-SE-2023/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
thuthuka111 authored Oct 26, 2023
2 parents ac44ac7 + 9d5fb14 commit 590b124
Show file tree
Hide file tree
Showing 888 changed files with 38,559 additions and 56 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM nginx:1.14-alpine

#copy static files
COPY ./frontend/dist/domain-pulse /usr/share/nginx/html
COPY ./frontend/dist/domain-pulse /usr/share/nginx/html/domain-pulse
COPY ./frontend/info-page /usr/share/nginx/html/info-page

#copy nginx conf files
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ Note that Domain Pulse is a web application and the preferred means of using the

# **🚀How to Contribute**

Thank you for your interest in Domain Pulse! Should you want to contribute to the project, please feel free to contact us at [email protected] at share your idea for the project.
Thank you for your interest in Domain Pulse! Should you want to contribute to the project, please feel free to contact us at [email protected] to share your idea for the project.
<br>
<br>
After contacting us, please feel free to clone the repo, create a branch off of 'dev' and implement your feature or bug fix. Please consult our <a href="https://github.com/COS301-SE-2023/Domain-Pulse-A-Sentiment-Analysis-Platform/blob/main/documentation/Technical%20Installation%20Manual/technical-installation-manual.pdf">️Technical Installation Manual<a> for instructios on how to get the app up and running. Once you have implemented your changes, you can create a pull request back to 'dev' which we will review.
After contacting us, please feel free to clone the repo, create a branch off of 'dev' and implement your feature or bug fix. Please consult our <a href="https://github.com/COS301-SE-2023/Domain-Pulse-A-Sentiment-Analysis-Platform/blob/main/documentation/Technical%20Installation%20Manual/technical-installation-manual.pdf">️Technical Installation Manual<a> for instructions on how to get the app up and running. Once you have implemented your changes, you can create a pull request back to 'dev' which we will review.
<br>
<br>
In order to be considered, your changes: 1) must be verified to be correct and non-malicious by a member of the Ctrl Alt Defeat Team, 2) pass all of the build and test checks, and 3) meet code coverage requirements in terms of both patch and project coverage.
Expand Down
8 changes: 4 additions & 4 deletions backend/sourceconnector/refresh/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def test_get_comments_by_video_id(self, mock_call_youtube_api):
"snippet": {
"topLevelComment": {
"snippet": {
"textDisplay": "Comment 1",
"textOriginal": "Comment 1",
"updatedAt": "2023-07-23T10:00:00Z",
}
}
Expand All @@ -412,7 +412,7 @@ def test_get_comments_by_video_id(self, mock_call_youtube_api):
"snippet": {
"topLevelComment": {
"snippet": {
"textDisplay": "Comment 2",
"textOriginal": "Comment 2",
"updatedAt": "2023-07-25T15:30:00Z",
}
}
Expand Down Expand Up @@ -587,7 +587,7 @@ def test_handle_youtube_request_integration(self, mocked_youtube):
"snippet": {
"topLevelComment": {
"snippet": {
"textDisplay": "Comment 1",
"textOriginal": "Comment 1",
"updatedAt": "2023-07-23T10:00:00Z",
}
}
Expand All @@ -597,7 +597,7 @@ def test_handle_youtube_request_integration(self, mocked_youtube):
"snippet": {
"topLevelComment": {
"snippet": {
"textDisplay": "Comment 2",
"textOriginal": "Comment 2",
"updatedAt": "2023-07-25T15:30:00Z",
}
}
Expand Down
2 changes: 1 addition & 1 deletion backend/sourceconnector/youtube/youtube_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_comments_by_video_id(video_id: str, last_refresh_time):
if "items" in data:
for item in data["items"]:
snippet = item["snippet"]["topLevelComment"]["snippet"]
original_text = snippet["textDisplay"]
original_text = snippet["textOriginal"]
last_updated_time = snippet["updatedAt"]
datetime_object = datetime.strptime(last_updated_time, "%Y-%m-%dT%H:%M:%SZ")
last_updated_timestamp = datetime_object.timestamp()
Expand Down
Binary file modified documentation/ADD/ArchitecturalDesignDocument.pdf
Binary file not shown.
Binary file modified documentation/ADD/Demo4Architecture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumError": "3mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumError": "25kb"
}
],
"outputHashing": "all"
Expand Down
Loading

0 comments on commit 590b124

Please sign in to comment.