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

Remove heroku/heroku and replace with heroku/cli #824

Closed
stevendaniels opened this issue Oct 22, 2018 · 4 comments
Closed

Remove heroku/heroku and replace with heroku/cli #824

stevendaniels opened this issue Oct 22, 2018 · 4 comments

Comments

@stevendaniels
Copy link

The heroku/heroku repo has been archived. We should replace it with the new repo which is at https://github.com/heroku/cli.

@yvesgurcan
Copy link

I've used the "Submit Repo" functionality on the codetriage.com UI. The repo heroku/cli is available here now: https://www.codetriage.com/heroku/cli. However, heroku/heroku is still visible at https://www.codetriage.com/heroku/heroku. There isn't a way for users to delete repositories from CodeTriage, so maybe someone with the right permissions can do it?

@schneems
Copy link
Member

schneems commented Jun 6, 2019

I've not gotten around to adding any house keeping functionality to the UI. I have to do these manually in the console:

old_repo.repo_subscriptions.each do |s|
  new_repo.repo_subscriptions.create!(user_id: s.user_id, email_limit: s.email_limit, write: s.write, read: s.read, write_limit: s.write_limit, read_limit: s.read_limit)
rescue => e
  puts "=" * 80
  puts s.id
  puts e
end

Users should be moved over and the old heroku/heroku destroyed.

@schneems schneems closed this as completed Jun 6, 2019
@schneems
Copy link
Member

schneems commented Jun 7, 2019

As a note here's how to delete a repo

repo.repo_subscriptions.destroy_all
repo.doc_methods.destroy_all
repo.destroy

If you just do a plain repo.destroy it has dependent: destroy on it, but it can get into weird states.

@yvesgurcan
Copy link

Cool! I'm glad we could clean this up :)

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

3 participants