CodeTriage
                                
                                 CodeTriage copied to clipboard
                                
                                    CodeTriage copied to clipboard
                            
                            
                            
                        Merge Active Admin pages
Active Admin used to exist at http://github.com/gregbell/active_admin, but has since moved to http://github.com/activeadmin/activeadmin.
There are currently two separate pages on CodeTriage, that have different subscribers:
- 65 subscribers, 221 open issues: http://www.codetriage.com/gregbell/active_admin
- 15 subscribers, 47 open issues: http://www.codetriage.com/activeadmin/activeadmin
Ideally these should be merged together.
Why does the newer page only show 47 open issues even though currently there are 183 on Github? Have the people subscribed to the old repo name been getting tickets to triage?
We need to merge these. There is no user facing feature to do so, but we should add one.
Is there anything I can do to help?
The code logic to merge is pretty easy
old_repo = Repo.where(full_name: "gregbell/active_admin")
new_repo = Repo.where(full_name: "activeadmin/activeadmin")
old_repo.users.find_each do |user|
  new_repo << user
end
The interaction logic is harder. I would say the original person who added the repos on codetriage can merge and the owners of the original repo. I'm not sure if we should delete the old repo, we should probably add an "archived" state instead to soft delete in case of accidents.
Well the best (but more complex) solution would be to redirect the old URL to the new URL, just like Github itself does.
Add a "redirect" field to the Repo model. When it is present send to that repo (provided that repo exists so we don't open ourselves up to an open redirect attack).
@SagareGanesh If you are interested, please take a look at this issue 😁