mozilla / mozilla/pontoon

api/v2/pretranslate cannot be used from the UI

Open
#4,530 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue hours P4
Dominant language
Python
Stars
1.7k
Forks
611
Avg merge
1d 19h
Merged PRs (30d)
49

Description

It should be possible to test api/v2/pretranslate via the UI, right now the parameters are not available.

  1. Create a user part of the pretranslators group, create a PAT
  2. Go to http://localhost:8000/api/v2/
  3. Authorize with the PATH in the top right corner
  4. Test the /pretranslate API

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the /api/v2/ UI and inspect the /pretranslate entry point, using the issue's authorization and request steps to reproduce the missing parameters. Compare the parameters exposed there with what the endpoint requires, then verify that an authorized user in the pretranslators group can test /pretranslate through the UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, javascript, python
Domain
api, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.