Automattic / Automattic/babble

Refactor Translation Job creation

Open
#122 1 comment 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

See: https://github.com/cftp/babble/commit/72abfa1ccd1dd21bff655ac94130db856f21dde3#commitcomment-4127854

When the user clicks on the "Edit Post" button in the admin bar, rather than creating a Job then redirecting on the `load-*` action for the post edit screen, we should amend the URL for the "Edit Post" button to create the job; e.g. link to the new translation job URL and pass params for the original post.

Contributor guide

Open the contributing guide

Research direction

Read the linked commit and its comment first, then trace the admin-bar "Edit Post" link and the post edit screen's load-* action. Identify where the translation job is currently created and how the original post parameters reach the edit screen. Done means the link targets the new translation job URL, creates the job with the original post, and no longer creates it in the load-* action.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, web-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.