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

Github pull request does not work as expected #12484

Closed
2 tasks done
antonin-kozak opened this issue Sep 13, 2024 · 4 comments
Closed
2 tasks done

Github pull request does not work as expected #12484

antonin-kozak opened this issue Sep 13, 2024 · 4 comments

Comments

@antonin-kozak
Copy link

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

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

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
  1. 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
  1. Go to the settings and change it to Github pull requests again
  • After a translations change, Weblate creates a pull request correctly
  1. Go to the settings and change "Merge style" to "Merge without fast-forward"

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

nijel commented Sep 13, 2024

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

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.

Copy link

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.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@nijel
Copy link
Member

nijel commented Sep 19, 2024

Admin should see an alert in such case in Weblate UI. But generally, the behavior can be strange when different Weblate processes have a different configuration.

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

No branches or pull requests

2 participants