Skip to content

Commit

Permalink
refactor(chalice): upgraded dependencies
Browse files Browse the repository at this point in the history
refactor(chalice): refactored code
  • Loading branch information
tahayk committed Apr 15, 2024
1 parent c56c459 commit d3e9bc5
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 28 deletions.
10 changes: 5 additions & 5 deletions api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ verify_ssl = true
name = "pypi"

[packages]
urllib3 = "==1.26.16"
requests = "==2.31.0"
boto3 = "==1.34.78"
boto3 = "==1.34.84"
pyjwt = "==2.8.0"
psycopg2-binary = "==2.9.9"
psycopg = {extras = ["pool", "binary"], version = "==3.1.18"}
elasticsearch = "==8.13.0"
jira = "==3.8.0"
fastapi = "==0.110.1"
uvicorn = {extras = ["standard"], version = "==0.29.0"}
python-decouple = "==3.8"
pydantic = {extras = ["email"], version = "==2.3.0"}
apscheduler = "==3.10.4"
redis = "==5.0.3"
urllib3 = "==1.26.16"
psycopg = {extras = ["pool", "binary"], version = "==3.1.18"}
uvicorn = {extras = ["standard"], version = "==0.29.0"}
pydantic = {extras = ["email"], version = "==2.3.0"}

[dev-packages]

Expand Down
12 changes: 0 additions & 12 deletions api/chalicelib/core/usability_testing/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ def get_ut_test(project_id: int, test_id: int):
WHERE utt.test_id = %(test_id)s
"""

live_count_sql = """
WITH RankedSessions AS (
SELECT *,
ROW_NUMBER() OVER (PARTITION BY session_id ORDER BY timestamp DESC) as rn
FROM ut_tests_signals
WHERE test_id = %(test_id)s AND task_id IS NULL
)
SELECT COUNT(DISTINCT session_id) AS live_count
FROM RankedSessions
WHERE rn = 1 AND status = 'begin'
"""

select_columns = [
"ut.test_id",
"ut.title",
Expand Down
2 changes: 1 addition & 1 deletion api/requirements-alerts.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.31.0
boto3==1.34.78
boto3==1.34.84
pyjwt==2.8.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.1.18
Expand Down
2 changes: 1 addition & 1 deletion api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.31.0
boto3==1.34.78
boto3==1.34.84
pyjwt==2.8.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.1.18
Expand Down
11 changes: 5 additions & 6 deletions ee/api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "pypi"
[packages]
urllib3 = "==1.26.16"
requests = "==2.31.0"
boto3 = "==1.34.78"
boto3 = "==1.34.84"
pyjwt = "==2.8.0"
psycopg2-binary = "==2.9.9"
elasticsearch = "==8.13.0"
Expand All @@ -15,16 +15,15 @@ fastapi = "==0.110.1"
gunicorn = "==21.2.0"
python-decouple = "==3.8"
apscheduler = "==3.10.4"
python3-saml = "==1.16.0"
python-multipart = "==0.0.6"
redis = "==5.0.3"
azure-storage-blob = "==12.19.0"
azure-storage-blob = "==12.19.1"
psycopg = {extras = ["binary", "pool"], version = "==3.1.18"}
uvicorn = {extras = ["standard"], version = "==0.29.0"}
pydantic = {extras = ["email"], version = "==2.3.0"}
clickhouse-driver = {extras = ["lz4"], version = "==0.2.6"}
clickhouse-driver = {extras = ["lz4"], version = "==0.2.7"}
python3-saml = "==1.16.0"

[dev-packages]

[requires]
python_version = "3.12"
python_version = "3.11"
2 changes: 1 addition & 1 deletion ee/api/requirements-alerts.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.31.0
boto3==1.34.78
boto3==1.34.84
pyjwt==2.8.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.1.18
Expand Down
2 changes: 1 addition & 1 deletion ee/api/requirements-crons.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.31.0
boto3==1.34.78
boto3==1.34.84
pyjwt==2.8.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.1.18
Expand Down
2 changes: 1 addition & 1 deletion ee/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.31.0
boto3==1.34.78
boto3==1.34.84
pyjwt==2.8.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.1.18
Expand Down

0 comments on commit d3e9bc5

Please sign in to comment.