I just attempted a rebuild per @merefield s request and the rebuild (migrate) crashed because of an error in update_categories
5: from /var/www/discourse/plugins/discourse-plugin-manager/lib/plugin_manager/plugin.rb:180:in `block in update_associations'
4: from /var/www/discourse/plugins/discourse-plugin-manager/lib/plugin_manager/plugin.rb:303:in `update_categories'
3: from /var/www/discourse/plugins/discourse-plugin-manager/lib/plugin_manager/plugin.rb:303:in `each'
2: from /var/www/discourse/plugins/discourse-plugin-manager/lib/plugin_manager/plugin.rb:308:in `block in update_categories'
1: from /var/www/discourse/plugins/discourse-plugin-manager/lib/plugin_manager/plugin.rb:324:in `update_category'
I currently have no time to look into this and/or correct any errors, so I have commented out the PMS from app.yml for now.
Some thoughts
We should avoid running this code on rebuild. It’s now always called from lines 66-73 in plugin.rb. Maybe fence it with if Discourse.running_in_rack?
This is deployed. The plugin manager no longer uses pups templates and can be deployed like any other plugin. The plugin guard still does (and needs to).