Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Change any invalid/flagged feed code to use supabase #7

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
782400b
Fix Search label text cut off
Kevan-Y Apr 16, 2022
ac01238
Update dependency @bull-board/api to v3.10.4
renovate-bot Apr 16, 2022
73118b0
Make parser arg optional, rename main function for github-url-parser
humphd Apr 15, 2022
c8039e7
Create CloudFormation template
humphd Apr 10, 2022
bd66b51
Fix image flickering on star field
dbelokon Apr 19, 2022
e4aee68
Fix search icon position
DukeManh Apr 18, 2022
894e307
Update dependency @bull-board/express to v3.10.4
renovate-bot Apr 18, 2022
e522c31
Fix #3516: don't link outside src/web/docusaurus
humphd Apr 19, 2022
f36ebaa
Write image service docs
dbelokon Apr 19, 2022
2d99bd1
Resize stars depending on screen width
dbelokon Apr 19, 2022
a3ccf04
Refactor copy button
dbelokon Apr 19, 2022
e4b4b8b
Adapt star field to docusaurus (#3520)
JerryHue Apr 19, 2022
0770ed4
Reorganize status cards
DukeManh Apr 19, 2022
2753ed1
Add status cards gap
DukeManh Apr 19, 2022
686770e
Import p5.js dynamically on docs
JerryHue Apr 19, 2022
bee285a
Refactor front-end to use @senecacdot/github-url-parser
humphd Apr 19, 2022
30afc09
Remove TIMING=1 from lint. Add separate lint-time (#3511)
menghif Apr 19, 2022
122e152
Improve Autocompete stylings
DukeManh Apr 18, 2022
dd7a46e
Add boxshadows, use useSWR and useDebounce
DukeManh Apr 19, 2022
53fe7a6
Border transition
DukeManh Apr 19, 2022
d36d2ec
remove border radius on popper option
DukeManh Apr 19, 2022
d780d63
Trigger search on enter
DukeManh Apr 19, 2022
509c8b9
Update Search readme (#3524)
RC-Lee Apr 20, 2022
ebe33d8
Remove showLastUpdate in Docusaurus (#3522)
menghif Apr 20, 2022
151491e
add Twitch sign-up page
menghif Apr 18, 2022
cfe23fd
Use channel to refer to Youtube and Twitch account
menghif Apr 19, 2022
b5f7b24
Add channelOwnership checkbox
menghif Apr 19, 2022
929a162
Youtube to YouTube
menghif Apr 20, 2022
5595c6f
updated usage of octokit plugins with complete octokit package
TDDR Apr 14, 2022
9133e25
Add UI for dependency discovery
Kevan-Y Apr 14, 2022
9706d28
Disable failing e2e test until we solve #3504
humphd Apr 20, 2022
b3a5762
Disable e2e tests in Chromium until we fix #3504
humphd Apr 20, 2022
db06785
Add missing dependency_discovery_url in CD
Kevan-Y Apr 20, 2022
2700016
Add --team flag to turborepo command (#3539)
menghif Apr 22, 2022
bbf2bd0
About us navigation (#3538)
tpmai22 Apr 22, 2022
d6759c6
Status service documentation (#3543)
sirinoks Apr 22, 2022
17f8672
Add docs for dependency-discovery (#3542)
JerryHue Apr 22, 2022
e80b751
Update Feed in parser service to talk to Supabase instead of Redis
TueeNguyen Apr 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ on:
required: false
default: 'https://dev.api.telescope.cdot.systems/v1/status'
type: string
dependency_discovery_url:
description: 'The feed-discovery microservice URL (defaults to staging)'
required: false
default: 'https://dev.api.telescope.cdot.systems/v1/dependency-discovery'
type: string
supabase_url:
description: 'The Supabase URL'
required: false
Expand Down Expand Up @@ -93,6 +98,7 @@ jobs:
GIT_COMMIT=${{ github.sha }}
SUPABASE_URL=${{ inputs.supabase_url }}
ANON_KEY=${{ inputs.anon_key }}
DEPENDENCY_DISCOVERY_URL=${{ inputs.dependency_discovery_url }}
- context: src/api/planet
image: planet
- context: src/api/posts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Install dependencies and run eslint
run: |
pnpm install
pnpm turbo run lint --api="http://127.0.0.1:9080" --token="${{ env.SERVER_TOKEN }}"
pnpm turbo run lint --api="http://127.0.0.1:9080" --token="${{ env.SERVER_TOKEN }}" --team="telescope-admins"
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
search_url: 'https://api.telescope.cdot.systems/v1/search'
feed_discovery_url: 'https://api.telescope.cdot.systems/v1/feed-discovery'
status_url: 'https://api.telescope.cdot.systems/v1/status'
dependency_discovery_url: 'https://api.telescope.cdot.systems/v1/dependency-discovery'
supabase_url: 'https://api.telescope.cdot.systems/v1/supabase'
anon_key: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UiLAogICAgImlhdCI6IDE2NDg2MTI4MDAsCiAgICAiZXhwIjogMTgwNjM3OTIwMAp9.YMOYR_8pZqqDRJkoAFuEWp-FaQfvmHXTOXKncBlRjdE'
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Install dependencies and run tests with default env
run: |
pnpm install
pnpm turbo run test --api="http://127.0.0.1:9080" --token="${{ env.SERVER_TOKEN }}"
pnpm turbo run test --api="http://127.0.0.1:9080" --token="${{ env.SERVER_TOKEN }}" --team="telescope-admins"
89 changes: 89 additions & 0 deletions config/ec2-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
AWSTemplateFormatVersion: 2010-09-09

# https://telescope.cdot.systems/docs/getting-started/vscode-ssh
Description: Telescope EC2 VSCode SSH Development Environment

Parameters:
ImageId:
Type: AWS::EC2::Image::Id
Default: ami-0c02fb55956c7d316
Description: EC2 Image ID, defaults to Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type - ami-0c02fb55956c7d316 (64-bit x86)

KeyName:
Type: AWS::EC2::KeyPair::KeyName
Default: vockey # Default key in Vocareum

MyIp:
Type: String
Description: Your home IP address (use http://checkip.amazonaws.com/ to check)`

StorageSize:
Type: Number
Default: 40
Description: Amount of storage (GiB) attached to instance

Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: r5.large
ImageId: !Ref ImageId
IamInstanceProfile: LabInstanceProfile
KeyName: !Ref KeyName
SecurityGroups:
- !Ref SecurityGroup
BlockDeviceMappings:
- DeviceName: /dev/xvda
Ebs:
VolumeSize: !Ref StorageSize
# TODO: could also pass a file via `--user-data file://script.sh`
UserData: !Base64 |
#!/bin/bash
sudo yum update -y
# Install docker
sudo amazon-linux-extras install docker
sudo service docker start
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
# Install Node.js
curl -sL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo yum install -y nodejs
# Install pnpm
sudo npm install -g pnpm
# Install git
sudo yum install -y git
# Install GitHub CLI
sudo yum install -y https://github.com/cli/cli/releases/download/v2.7.0/gh_2.7.0_linux_amd64.rpm

SecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Telescope SSH (22) and Web Access (80)
GroupName: telescope-sg
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: !Sub ${MyIp}/32
- IpProtocol: tcp
FromPort: 22
ToPort: 22
# Also allow EC2 Connect (e.g., from console) for us-east-1
CidrIp: 18.206.107.24/29
- IpProtocol: tcp
FromPort: 80
ToPort: 80
CidrIp: !Sub ${MyIp}/32

EIP:
Type: AWS::EC2::EIP
Properties:
InstanceId: !Ref Ec2Instance

Outputs:
PublicDnsName:
Value: !GetAtt Ec2Instance.PublicDnsName
Description: Public DNS for EC2 instance
PublicIp:
Value: !GetAtt Ec2Instance.PublicIp
Description: Public IP Address for EC2 instance
15 changes: 1 addition & 14 deletions docker/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ services:
context: ../src/web
cache_from:
- docker.cdot.systems/nginx:buildcache
# next.js needs build-time access to a number of API URL values, forward as ARGs
args:
# Web front-end URL
- WEB_URL=${WEB_URL}
# Telescope 1.0 API URL
- API_URL=${API_URL}
# Telescope 2.0 Microservice URLs
- IMAGE_URL=${IMAGE_URL}
- SSO_URL=${SSO_URL}
- POSTS_URL=${POSTS_URL}
- SEARCH_URL=${SEARCH_URL}
- FEED_DISCOVERY_URL=${FEED_DISCOVERY_URL}
- STATUS_URL=${STATUS_URL}
volumes:
- ../config/nginx.conf.development.template:/etc/nginx/nginx.conf
ports:
Expand Down Expand Up @@ -94,7 +81,7 @@ services:
# In development and testing, the SSO service needs to contact the Supabase
# service directly via Docker vs through the http://localhost/v1/supabase domain.
# Using staging database
- SUPABASE_URL=https://dev.api.telescope.cdot.systems/v1/supabase
- SUPABASE_URL=http://kong:8000
depends_on:
- elasticsearch
- traefik
Expand Down
23 changes: 12 additions & 11 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,20 @@ services:
# next.js needs build-time access to a number of API URL values, forward as ARGs
args:
# Web front-end URL
- WEB_URL=${WEB_URL}
- WEB_URL
# Telescope 1.0 API URL
- API_URL=${API_URL}
- API_URL
# Telescope 2.0 Microservice URLs
- IMAGE_URL=${IMAGE_URL}
- SSO_URL=${SSO_URL}
- POSTS_URL=${POSTS_URL}
- SEARCH_URL=${SEARCH_URL}
- FEED_DISCOVERY_URL=${FEED_DISCOVERY_URL}
- STATUS_URL=${STATUS_URL}
- GIT_COMMIT=${GIT_COMMIT}
- SUPABASE_URL=${SUPABASE_URL}
- ANON_KEY=${ANON_KEY}
- IMAGE_URL
- SSO_URL
- POSTS_URL
- SEARCH_URL
- FEED_DISCOVERY_URL
- STATUS_URL
- GIT_COMMIT
- SUPABASE_URL
- ANON_KEY
- DEPENDENCY_DISCOVERY_URL
container_name: 'nginx'
environment:
- TELESCOPE_HOST
Expand Down
12 changes: 0 additions & 12 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ services:
build:
context: ..
dockerfile: Dockerfile
# next.js needs build-time access to a number of API URL values, forward as ARGs
args:
# Web front-end URL
- WEB_URL=${WEB_URL}
# Telescope 1.0 API URL
- API_URL=${API_URL}
# Telescope 2.0 Microservice URLs
- IMAGE_URL=${IMAGE_URL}
- SSO_URL=${SSO_URL}
- POSTS_URL=${POSTS_URL}
- SEARCH_URL=${SEARCH_URL}
- FEED_DISCOVERY_URL=${FEED_DISCOVERY_URL}
container_name: 'telescope'
restart: unless-stopped
environment:
Expand Down
6 changes: 5 additions & 1 deletion jest-playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ module.exports = {
// slowMo: 1000,
headless: true,
},
browsers: ['chromium', 'firefox', 'webkit'],
browsers: [
/* 'chromium' - chromium disabled until we fix https://github.com/Seneca-CDOT/telescope/issues/3504 */
'firefox',
'webkit',
],
};
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
"build": "pnpm turbo run build",
"dev": "pnpm dev --prefix src/web/app --",
"develop": "pnpm dev",
"eslint": "TIMING=1 eslint --config .eslintrc.js --ignore-path .gitignore \"./src/backend/**/*.js\" \"./test/**/*.js\"",
"eslint": "eslint --config .eslintrc.js --ignore-path .gitignore \"./src/backend/**/*.js\" \"./test/**/*.js\"",
"eslint-time": "TIMING=1 eslint --config .eslintrc.js --ignore-path .gitignore \"./src/backend/**/*.js\" \"./test/**/*.js\"",
"eslint-fix": "eslint --config .eslintrc.js --ignore-path .gitignore \"./src/backend/**/*.js\" \"./test/**/*.js\" --fix",
"lint": "pnpm turbo run lint && pnpm eslint",
"lint-time": "pnpm turbo run lint-time && pnpm eslint-time",
"clean": "pnpm turbo run clean && pnpm -r exec rm -rf node_modules",
"prettier": "prettier --write \"./**/*.{md,jsx,json,html,css,js,yml,ts,tsx}\"",
"prettier-check": "prettier --check \"./**/*.{md,jsx,json,html,css,js,yml,ts,tsx}\"",
Expand Down Expand Up @@ -49,8 +51,8 @@
},
"homepage": "https://github.com/Seneca-CDOT/telescope#readme",
"dependencies": {
"@bull-board/api": "3.10.3",
"@bull-board/express": "3.10.3",
"@bull-board/api": "3.10.4",
"@bull-board/express": "3.10.4",
"@elastic/elasticsearch": "7.16.0",
"@elastic/elasticsearch-mock": "0.3.1",
"@wordpress/wordcount": "2.15.2",
Expand Down
Loading