WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.5k stars 993 forks source link

Github pull request does not work as expected #12484

Closed antonin-kozak closed 1 day ago

antonin-kozak commented 5 days ago

Describe the issue

Hi, I have reported a bug #12472 which was fixed, but I think the root case is different. Creating a component with "Github pull request" doesn't work and when I change the "Version control system" of a component from Git to Github pull request after the creation, the above mentioned bug occured.

I already tried

Steps to reproduce the behavior

  1. Save GITHUB_CREDENTIALS in settings.py file

  2. Start creating a new component

  3. As "Version Control System" select "Git pull request"

    • The UI allows to select a file with translations (JSON nested structure file), but when the component is created, I can see only the source language and it's empty (no strings) obrazek
  4. Go to the settings of the component and change Version control system to Git

    • The component correctly loads other languages and all the strings. obrazek
  5. Go to the settings and change it to Github pull requests again

    • After a translations change, Weblate creates a pull request correctly
  6. Go to the settings and change "Merge style" to "Merge without fast-forward"

    • The error page described in #12472 is displayed
    • To get rid of the error, change back to "Git" is needed

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Other

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

nijel commented 5 days ago

Did you restart celery workers? I think the check will happen if them and if not restarted they will not see change in settings and thus will not have enabled GitHub backend.

antonin-kozak commented 1 day ago

Thanks, restart helped. Sorry, then no bug it is - although the behaviour when the server haven't been not fully restarted is kind of strange.

github-actions[bot] commented 1 day ago

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.