-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/remove letters #2185
Task/remove letters #2185
Conversation
@letter_job.route("/letters/returned", methods=["POST"]) | ||
def create_process_returned_letters_job(): | ||
references = validate(request.get_json(), letter_references) | ||
|
||
return jsonify(references=references["references"]), 200 | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not get rid of all of this, would that cause other issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just leaving this until we remove the routes from ADMIN.
app/letters/utils.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not delete this entire file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could! Lets do this incrementally though. I removed a bunch, will keep removing more cause its a lot of finding is something is called elsewhere or not.
@@ -793,8 +773,7 @@ def create_one_off_notification(service_id): | |||
|
|||
@service_blueprint.route("/<uuid:service_id>/send-pdf-letter", methods=["POST"]) | |||
def create_pdf_letter(service_id): | |||
resp = send_pdf_letter_notification(service_id, request.get_json()) | |||
return jsonify(resp), 201 | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these routes reachable by end-users? If so, what kind of response is received after this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they are currently in admin, though not visible. will remove them all in another pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🪓
Summary | Résumé
Remove letter code