added emails and tests #93
Open
Tycho-van-den-Heuvel
wants to merge 1 commit from
Tycho-van-den-Heuvel/intranet:feat/emails-when-creating-servicelogs-through-api into main
pull from: Tycho-van-den-Heuvel/intranet:feat/emails-when-creating-servicelogs-through-api
merge into: msl:main
msl:main
msl:chore/deps-upgrade-django
msl:chore/enable-errors-for-deprecation-warning
msl:spike/add-devcontainers
msl:chore/django-upgrade
msl:chore/pull-in-migration-from-production
msl:prod
msl:chore_quell_malformed_rq
msl:chore_prod_catchup_20260225
msl:fix/servicelog-styled-element-on-crud
msl:feat/pettycash-reports-reimbursements
msl:update-sbom-238
msl:feat_api-unk-tags
msl:chore/empty-commit
msl:fix/remove-new-tab
msl:chore/merge-migrations
msl:fix/drop-unused-property
msl:update-sbom-202
msl:fix/petty-cash-reports-iteration
msl:fix/pettycash-reports-remove-unused
msl:fix/pettycash-reports-group-by-sku-name
msl:feat/pettycash-delete
msl:fix/match-against-description
msl:feat/pettycash-reports-iteration
msl:feat/petty-cash-reports
msl:refactor/drop-deprecated-methods
msl:feat/django-5-remove-use-of-deprecated-method
msl:feat/drop-use-of-django-six
msl:fix/acl-queryset-missing-method
msl:refactor/adopt-new-active-method
msl:refactor/namespace-management-commands
msl:refactor/acl-split-models-over-multiple-files
msl:refactor/move-factory-to-member
msl:refactor/split-models-over-multiple-files
msl:update-sbom-134
msl:fix/manage-permissions-on-venv
msl:chore/django-v5-migration-admin
msl:chore/django-v5-migration-a-c
msl:feat/adds-passwordless-login-url-capability
msl:update-sbom-111
msl:feat/adds-login-link
msl:test/introduce-pytest-coverage-of-terminal-api
msl:refactor/nest-model-tests
msl:update-sbom-85
msl:fix/capture-stale-checkin-datetime
msl:feat/checkout-should-include-recent-use
msl:update-sbom-77
msl:feat/reorder-navigation
msl:feat/adopt-time-element
msl:update-sbom-71
msl:feat/agenda-with-participants
msl:docs/outline-deployment-workflow
msl:feat/agenda-notify-about-upcoming-events
msl:fix/agenda-with-notifications
msl:chore/ci-migrate-to-forgejo
msl:update-sbom-7
msl:chore/logging-for-cron
msl:update-sbom-21
msl:update-sbom-18
msl:update-sbom-17
msl:update-sbom-16
msl:feat/get-if-modified-sku
msl:feat/upgrade-to-django-v5
msl:feat-tagdumper
msl:feat/drop-ultimaker
msl:update-sbom-12
msl:feat/update-agenda-view
msl:feat/add-chores-detail
msl:chore/apply-missing-migrations
msl:fix/events-that-are-happening-now
msl:feat/inline-chores-notifications
msl:fix/petty-cash-styling
msl:feat/adopt-django-oauth-toolkit
msl:chore/annotated-output
msl:feat/introduce-oauth
msl:hotfix/nodered-ws-url
msl:hotfix/nodered
msl:feat_acl_extra_info
msl:chore/align-python-verison
msl:feat-claims
msl:chore/ci-add-test-runnner
msl:delete-xs
msl:fix/pre-commit-fixes
No reviewers
Labels
No labels
Draft
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
msl/intranet!93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Tycho-van-den-Heuvel/intranet:feat/emails-when-creating-servicelogs-through-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you create servicelogs through the api. no emails are sent. This PR adds that feature.
When creating a servicelog through the CRM it only sends an email if it's a new servicelog. I wanted to keep this property in the api as well.
When submitting a checklist we don't want to send an email since it will flood the email even more because submitting checklists will be more frequent
@ -205,0 +206,4 @@# don't bother participants with checklists emailsif (servicelog.situation != Servicelog.MSC_UNCHECKED_TODO and self.request.POSTRather than checking its not
Servicelog.MSC_UNCHECKED_TODO, can we use an allowlist of events which should trigger an email?>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.