Skip to content

Commit

Permalink
refactor(chalice): ignore admin privilege and role for Spot-scope
Browse files Browse the repository at this point in the history
refactor(chalice): upgraded dependencies
refactor(alerts): upgraded dependencies
refactor(crons): upgraded dependencies
  • Loading branch information
tahayk committed Aug 9, 2024
1 parent 33034fe commit f2c27e8
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions api/requirements-alerts.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.32.3
boto3==1.34.151
pyjwt==2.8.0
boto3==1.34.157
pyjwt==2.9.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.2.1
elasticsearch==8.14.0
jira==3.8.0



fastapi==0.111.1
fastapi==0.112.0
uvicorn[standard]==0.30.3
python-decouple==3.8
pydantic[email]==2.3.0
Expand Down
6 changes: 3 additions & 3 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.32.3
boto3==1.34.151
pyjwt==2.8.0
boto3==1.34.157
pyjwt==2.9.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.2.1
elasticsearch==8.14.0
Expand All @@ -11,7 +11,7 @@ cachetools==5.4.0



fastapi==0.111.1
fastapi==0.112.0
uvicorn[standard]==0.30.3
python-decouple==3.8
pydantic[email]==2.3.0
Expand Down
2 changes: 1 addition & 1 deletion api/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class CreateMemberSchema(BaseModel):
user_id: Optional[int] = Field(default=None)
name: str = Field(...)
email: EmailStr = Field(...)
admin: bool = Field(default=False)
admin: Optional[bool] = Field(default=False)

_transform_email = field_validator('email', mode='before')(transform_email)
_transform_name = field_validator('name', mode='before')(remove_whitespace)
Expand Down
10 changes: 5 additions & 5 deletions ee/api/requirements-alerts.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.32.3
boto3==1.34.151
pyjwt==2.8.0
boto3==1.34.157
pyjwt==2.9.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.2.1
elasticsearch==8.14.0
jira==3.8.0



fastapi==0.111.1
uvicorn[standard]==0.30.3
fastapi==0.112.0
uvicorn[standard]==0.30.5
python-decouple==3.8
pydantic[email]==2.3.0
apscheduler==3.10.4

clickhouse-driver[lz4]==0.2.8
azure-storage-blob==12.21.0
azure-storage-blob==12.22.0
8 changes: 4 additions & 4 deletions ee/api/requirements-crons.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.32.3
boto3==1.34.151
pyjwt==2.8.0
boto3==1.34.157
pyjwt==2.9.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.2.1
elasticsearch==8.14.0
jira==3.8.0



fastapi==0.111.1
fastapi==0.112.0
python-decouple==3.8
pydantic[email]==2.3.0
apscheduler==3.10.4

clickhouse-driver[lz4]==0.2.8
redis==5.1.0b6
azure-storage-blob==12.21.0
azure-storage-blob==12.22.0
10 changes: 5 additions & 5 deletions ee/api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Keep this version to not have conflicts between requests and boto3
urllib3==1.26.16
requests==2.32.3
boto3==1.34.151
pyjwt==2.8.0
boto3==1.34.157
pyjwt==2.9.0
psycopg2-binary==2.9.9
psycopg[pool,binary]==3.2.1
elasticsearch==8.14.0
Expand All @@ -11,8 +11,8 @@ cachetools==5.4.0



fastapi==0.111.1
uvicorn[standard]==0.30.3
fastapi==0.112.0
uvicorn[standard]==0.30.5
gunicorn==22.0.0
python-decouple==3.8
pydantic[email]==2.3.0
Expand All @@ -25,4 +25,4 @@ python3-saml==1.16.0 --no-binary=lxml

redis==5.1.0b6
#confluent-kafka==2.1.0
azure-storage-blob==12.21.0
azure-storage-blob==12.22.0
4 changes: 2 additions & 2 deletions ee/api/schemas/schemas_ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ class GetInsightsSchema(schemas._TimedSchema):


class CreateMemberSchema(schemas.CreateMemberSchema):
roleId: Optional[int] = Field(None)
roleId: Optional[int] = Field(default=None)


class EditMemberSchema(BaseModel):
name: str = Field(...)
email: EmailStr = Field(...)
admin: bool = Field(False)
admin: bool = Field(default=False)
roleId: int = Field(...)


Expand Down

0 comments on commit f2c27e8

Please sign in to comment.