Skip to content

Commit

Permalink
precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Feb 23, 2024
1 parent 0c9658f commit 851f9bd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ async def run_office365_exchange_online_analysis(
message="Analysis completed successfully",
)


@monitoring_alerts_router.post(
"/run_analysis/office365/threat_intel",
response_model=AlertAnalysisResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ class Office365ExchangeIrisAsset(BaseModel):
asset_name: Optional[str] = Field(
"Asset Does Not Apply to Office365 Exchange Alerts",
description="Name of the asset",
example="test@socfortress.co"
example="test@socfortress.co",
)
asset_description: Optional[str] = Field(
"Asset Does Not Apply to Office365 Exchange Alerts",
Expand Down Expand Up @@ -775,7 +775,7 @@ class Office365ThreatIntelIrisAsset(BaseModel):
asset_name: Optional[str] = Field(
"Asset Does Not Apply to Office365 Exchange Alerts",
description="Name of the asset",
example="test@socfortress.co"
example="test@socfortress.co",
)
asset_description: Optional[str] = Field(
"Asset Does Not Apply to Office365 Exchange Alerts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
from app.integrations.monitoring_alert.schema.monitoring_alert import (
Office365ExchangeIrisAlertPayload,
)
from app.integrations.monitoring_alert.schema.monitoring_alert import Office365ExchangeIrisAsset
from app.integrations.monitoring_alert.schema.monitoring_alert import (
Office365ExchangeIrisAsset,
)
from app.integrations.monitoring_alert.utils.db_operations import remove_alert_id
from app.integrations.utils.alerts import validate_ioc_type
from app.utils import get_customer_alert_settings
Expand Down Expand Up @@ -204,7 +206,7 @@ async def check_if_open_alert_exists_in_iris(alert_details: Office365ExchangeAle
customer_iris_id = (
await get_customer_alert_settings(
customer_code=alert_details._source["data_office365_OrganizationId"],
#customer_code="9668d0df-6e2e-40fd-947d-d568e520e084",
# customer_code="9668d0df-6e2e-40fd-947d-d568e520e084",
session=session,
)
).iris_customer_id
Expand Down Expand Up @@ -392,7 +394,6 @@ async def create_alert_details(
time_field=alert_details._source.get("timestamp_utc", alert_details._source.get("timestamp")),
rule_description=alert_details._source["rule_description"],
rule_id=alert_details._source["rule_id"],

)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
from app.integrations.monitoring_alert.schema.monitoring_alert import (
Office365ThreatIntelIrisAlertPayload,
)
from app.integrations.monitoring_alert.schema.monitoring_alert import Office365ThreatIntelIrisAsset
from app.integrations.monitoring_alert.schema.monitoring_alert import (
Office365ThreatIntelIrisAsset,
)
from app.integrations.monitoring_alert.utils.db_operations import remove_alert_id
from app.integrations.utils.alerts import validate_ioc_type
from app.utils import get_customer_alert_settings
Expand Down Expand Up @@ -203,7 +205,7 @@ async def check_if_open_alert_exists_in_iris(alert_details: Office365ThreatIntel
customer_iris_id = (
await get_customer_alert_settings(
customer_code=alert_details._source["data_office365_OrganizationId"],
#customer_code="9668d0df-6e2e-40fd-947d-d568e520e084",
# customer_code="9668d0df-6e2e-40fd-947d-d568e520e084",
session=session,
)
).iris_customer_id
Expand Down Expand Up @@ -390,7 +392,6 @@ async def create_alert_details(
time_field=alert_details._source.get("timestamp_utc", alert_details._source.get("timestamp")),
rule_description=alert_details._source["rule_description"],
rule_id=alert_details._source["rule_id"],

)


Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/soc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default {
time_unit: payload?.unit || "days"
}
/*eslint no-mixed-spaces-and-tabs: "off"*/
}
}
: undefined
)
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/AuthForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const title = computed<string>(() =>
typeRef.value === "signin"
? "SOCFortress CoPilot"
: typeRef.value === "signup"
? "SOCFortress CoPilot"
: "Forgot Password"
? "SOCFortress CoPilot"
: "Forgot Password"
)
function gotoSignIn() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/cards/CardActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const menuOptions = computed(() =>
key: "reload",
icon: renderIcon(ReloadIcon)
}
]
]
: [
{
label: "Collapse",
Expand All @@ -83,7 +83,7 @@ const menuOptions = computed(() =>
key: "reload",
icon: renderIcon(ReloadIcon)
}
]
]
)
function menuSelect(key: string) {
Expand Down

0 comments on commit 851f9bd

Please sign in to comment.