Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/ruff-0.0.290
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Sep 20, 2023
2 parents df38b02 + dea8180 commit f2ba8b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Setup sample database
run: dispatch database restore --dump-file data/dispatch-sample-data.dump && dispatch database upgrade
- name: Run tests
run: npx playwright test
run: npx playwright test --project=chromium --project=firefox
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ def handle_report_tactical_command(

incident = incident_service.get(db_session=db_session, incident_id=context["subject"].id)
if incident.tasks:
actions = "\n".join(
actions += "\n\nOutstanding Incident Tasks:\n".join(
[
"-" + task.description
for task in incident.tasks
Expand Down
14 changes: 8 additions & 6 deletions src/dispatch/static/dispatch/src/incident/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,14 @@ const actions = {
commit("SET_DIALOG_REPORT", true)
commit("SET_SELECTED", incident)

state.report.tactical.actions = incident.tasks.reduce((result, task) => {
if (task.status == "Resolved") {
return result
}
return (result ? result + "\n" : "") + "- " + task.description
}, "")
state.report.tactical.actions +=
"\n\nOutstanding Incident Tasks:\n" +
incident.tasks.reduce((result, task) => {
if (task.status == "Resolved") {
return result
}
return (result ? result + "\n" : "") + "- " + task.description
}, "")
},
closeReportDialog({ commit }) {
commit("SET_DIALOG_REPORT", false)
Expand Down

0 comments on commit f2ba8b8

Please sign in to comment.