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

Update the resource slug for the webwork2.pot file in tx/config. #1645

Merged

Conversation

drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Apr 1, 2022

The slug was created initially in Transifex as webwork2pot, and must be before GitHub integrations are set up. Once GitHub integrations are set up linking Transifex to the repository the slug is automatically changed in Transifex to the full path of the resource in the GitHub repository (with hyphens instead of forward slashes) and the branch name. So this needs to be changed in the tx/config file.

I meant to do this in #1632 because I had read that this would happen, but forgot.

This is not particularly important as this file is only used for the Transifex command line client, and most developers (even myself) will rarely use that. It is useful to have though.

@drgrice1
Copy link
Member Author

drgrice1 commented Apr 1, 2022

Note that one downside of not changing this is that if someone does use the Transifex command line client is used to push resources (tx push -s) then it will create a new resource with the same name webwork2.pot and the old slug webwork2pot to Transifex. Creating a duplicate of the existing resource.

The slug was created initially in Transifex as webwork2pot, and must be before GitHub integrations are set up.  Once GitHub integrations are set up linking Transifex to the repository the slug is automatically changed in Transifex to the full path of the resource in the GitHub repository (with hyphens instead of forward slashes) and the branch name.  So this needs to be changed in the tx/config file.

I meant to do this  in openwebwork#1632 because I had read that this would happen, but forgot.

This is not particularly important as this file is only used for the Transifex command line client, and most developers (even myself) will rarely use that.  It is useful to have though.
@drgrice1 drgrice1 force-pushed the update-transifex-resource-slug branch from d9f9d09 to 8957c27 Compare April 6, 2022 12:29
@pstaabp
Copy link
Member

pstaabp commented Apr 7, 2022

Any reason not to just merge this?

@drgrice1
Copy link
Member Author

drgrice1 commented Apr 7, 2022

No reason not to. It is a minor change, and won't affect anyone but developers working with the tx cli. Most developers won't even be doing that. If anyone is interested, I can tell you how to use the tx cli.

@pstaabp pstaabp merged commit 13e731c into openwebwork:develop Apr 7, 2022
@drgrice1 drgrice1 deleted the update-transifex-resource-slug branch April 7, 2022 13:10
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.

2 participants