-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-32811)[API] feat: set update requests to without continuation eve…
…ry 30d
- Loading branch information
1 parent
e6f4aa1
commit 51cc01e
Showing
12 changed files
with
555 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
api/src/pcapi/connectors/dms/graphql/mark_wihtout_continuation.graphql
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
api/src/pcapi/connectors/dms/graphql/mark_without_continuation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
mutation markWithoutContinuation($input: DossierClasserSansSuiteInput!) { | ||
dossierClasserSansSuite(input: $input) { | ||
dossier { | ||
id | ||
number | ||
state | ||
dateDerniereModification | ||
dateDepot | ||
datePassageEnConstruction | ||
datePassageEnInstruction | ||
dateTraitement | ||
dateDerniereCorrectionEnAttente | ||
dateDerniereModificationChamps | ||
} | ||
errors { | ||
message | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
api/src/pcapi/core/mails/transactional/users/update_request_set_to_without_continuation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import datetime | ||
|
||
from pcapi.core import mails | ||
from pcapi.core.mails import models | ||
from pcapi.core.mails.transactional.sendinblue_template_ids import TransactionalEmail | ||
import pcapi.core.users.models as users_models | ||
from pcapi.utils.date import get_date_formatted_for_email | ||
|
||
|
||
def send_beneficiary_update_request_set_to_without_continuation(user: users_models.User) -> None: | ||
|
||
data = models.TransactionalEmailData( | ||
template=TransactionalEmail.UPDATE_REQUEST_MARKED_WITHOUT_CONTINUATION.value, | ||
params={"DATE_FILECLASSIFIED_DMS": get_date_formatted_for_email(datetime.datetime.utcnow())}, | ||
) | ||
mails.send(recipients=[user.email], data=data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.