Skip to content
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

Merged
merged 6 commits into from
Jun 10, 2024
Merged

Task/remove letters #2185

merged 6 commits into from
Jun 10, 2024

Conversation

jzbahrai
Copy link
Collaborator

Summary | Résumé

Remove letter code

@jzbahrai jzbahrai enabled auto-merge (squash) June 3, 2024 14:32
Comment on lines 9 to +11
@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
Copy link
Member

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?

Copy link
Collaborator Author

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.

Copy link
Member

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?

Copy link
Collaborator Author

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
Copy link
Member

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?

Copy link
Collaborator Author

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

Copy link
Member

@andrewleith andrewleith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🪓

@jzbahrai jzbahrai merged commit f6ed3af into main Jun 10, 2024
4 checks passed
@jzbahrai jzbahrai deleted the task/remove-letters branch June 10, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants