DO NOT RUN THIS SCRIPT - READ POSTS BELOW FOR CORRECT SCRIPT
Change is on allura js/2324. To test, use an existing sandbox or checkout a new one on dev so it is not created with the updated script. Create a new project and add a license to the trove. Note that AGPL is not an option. Checkout js/2324 on the sandbox and run this command: allurapaste create-trove-categories /var/local/config/production.ini. The project should still have the license you selected, but now AGPL is also an option.
After push to live, SOG needs to run allurapaste create-trove-categories /var/local/config/production.ini
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried this twice on a fresh sandbox. The new license shows up after I run the script, but the license that I originally selected is gone (it's still in the list, it's just no longer 'attached' to my project).
status: code-review --> in-progress
assigned_to: Tim Van Steenburgh --> Jenny Steele
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I moved the change into its own migration script. Test it this way instead:
1) Build a sandbox on dev
2) Create an allura project with a license in the trove and make sure agpl is not an option.
3) Check out js/2324 on your sandbox.
4) Run this command: allurapaste script /var/local/config/production.ini /var/local/allura/scripts/migrations/014-add-trove-category-agpl.py
5) Confirm that agpl is now an option for your project, but the existing categorization is still there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is present on the classic forge admin page
DO NOT RUN THIS SCRIPT - READ POSTS BELOW FOR CORRECT SCRIPT
Change is on allura js/2324. To test, use an existing sandbox or checkout a new one on dev so it is not created with the updated script. Create a new project and add a license to the trove. Note that AGPL is not an option. Checkout js/2324 on the sandbox and run this command: allurapaste create-trove-categories /var/local/config/production.ini. The project should still have the license you selected, but now AGPL is also an option.
After push to live, SOG needs to run allurapaste create-trove-categories /var/local/config/production.ini
I tried this twice on a fresh sandbox. The new license shows up after I run the script, but the license that I originally selected is gone (it's still in the list, it's just no longer 'attached' to my project).
I moved the change into its own migration script. Test it this way instead:
1) Build a sandbox on dev
2) Create an allura project with a license in the trove and make sure agpl is not an option.
3) Check out js/2324 on your sandbox.
4) Run this command: allurapaste script /var/local/config/production.ini /var/local/allura/scripts/migrations/014-add-trove-category-agpl.py
5) Confirm that agpl is now an option for your project, but the existing categorization is still there.
Looks good, merged to dev.
This fix is live now.