Skip to content

Commit

Permalink
Merge branch 'master' into enhancement/direct-link-to-timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Sep 20, 2023
2 parents 7f6fd48 + 3808ea8 commit 3b2af10
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 34 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
15 changes: 6 additions & 9 deletions requirements-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ cymem==2.0.7
# spacy
# thinc
decorator==5.1.1
# via
# jsonpath-ng
# validators
# via validators
defusedxml==0.7.1
# via jira
deprecated==1.2.14
Expand All @@ -124,7 +122,7 @@ frozenlist==1.4.0
# aiosignal
google-api-core==2.11.1
# via google-api-python-client
google-api-python-client==2.98.0
google-api-python-client==2.99.0
# via -r requirements-base.in
google-auth==2.22.0
# via
Expand Down Expand Up @@ -184,7 +182,7 @@ jira==2.0.0
# via -r requirements-base.in
joblib==1.3.2
# via -r requirements-base.in
jsonpath-ng==1.5.3
jsonpath-ng==1.6.0
# via -r requirements-base.in
jsonschema==4.17.3
# via
Expand All @@ -209,7 +207,7 @@ markupsafe==2.1.3
# jinja2
# mako
# werkzeug
msal==1.23.0
msal==1.24.0
# via -r requirements-base.in
multidict==6.0.4
# via
Expand Down Expand Up @@ -257,7 +255,7 @@ patsy==0.5.3
# via statsmodels
pbr==5.11.1
# via jira
pdpyras==5.1.1
pdpyras==5.1.2
# via -r requirements-base.in
pluggy==1.2.0
# via pytest
Expand Down Expand Up @@ -368,7 +366,7 @@ scipy==1.11.2
# via statsmodels
sentry-asgi==0.2.0
# via -r requirements-base.in
sentry-sdk==1.30.0
sentry-sdk==1.31.0
# via
# -r requirements-base.in
# sentry-asgi
Expand All @@ -382,7 +380,6 @@ six==1.16.0
# google-auth
# google-auth-httplib2
# jira
# jsonpath-ng
# junit-xml
# oauth2client
# patsy
Expand Down
7 changes: 6 additions & 1 deletion src/dispatch/plugins/dispatch_slack/case/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,16 +1156,21 @@ def handle_edit_submission_event(
if form_data.get(DefaultBlockIds.case_type_select):
case_type = {"name": form_data[DefaultBlockIds.case_type_select]["name"]}

assignee_email = None
if form_data.get(DefaultBlockIds.case_assignee_select):
assignee_email = client.users_info(
user=form_data[DefaultBlockIds.case_assignee_select]["value"]
)["user"]["profile"]["email"]

resolution_reason = None
if form_data.get(DefaultBlockIds.case_resolution_reason_select):
resolution_reason = form_data[DefaultBlockIds.case_resolution_reason_select]["value"]

case_in = CaseUpdate(
title=form_data[DefaultBlockIds.title_input],
description=form_data[DefaultBlockIds.description_input],
resolution=form_data[DefaultBlockIds.resolution_input],
resolution_reason=form_data[DefaultBlockIds.case_resolution_reason_select]["value"],
resolution_reason=resolution_reason,
status=form_data[DefaultBlockIds.case_status_select]["name"],
visibility=case.visibility,
case_priority=case_priority,
Expand Down
3 changes: 2 additions & 1 deletion src/dispatch/plugins/dispatch_slack/feedback/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def handle_oncall_shift_feedback_submission_event(
# if there's a reminder id, delete the reminder
if len(metadata) > 4:
reminder_id = metadata[4]
reminder_service.delete(db_session=db_session, reminder_id=reminder_id)
if reminder_id.isnumeric():
reminder_service.delete(db_session=db_session, reminder_id=reminder_id)

individual = (
None
Expand Down
68 changes: 46 additions & 22 deletions src/dispatch/static/dispatch/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b2af10

Please sign in to comment.