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

Migrating Issues for extracted components #100

Closed
matt-oakes opened this issue Feb 11, 2019 · 14 comments
Closed

Migrating Issues for extracted components #100

matt-oakes opened this issue Feb 11, 2019 · 14 comments
Labels
🗣 Discussion This label identifies an ongoing discussion on a subject 🥄 Lean Core This label is related to all the conversations around the project of "lean core"

Comments

@matt-oakes
Copy link
Member

Introduction

Now we are starting to move components from the core repo into the react-native-community repositories, we should also think about migrating the issues. Ideally, we should do it in a way which keeps any discussion which has happened.

The Core of It

We should migrate the issues so we can keep track of any reported issues so we know what improvements need to be made to the components.

To my mind, the goals should be:

  • Keep any discussion which previously happened.
  • Keep people who subscribed to the previous issue informed about the change of issue location.

Other communities have gone through a similar process in the past. For example, when Fastlane went from separate repositories to a monorepo (ironically the opposite of what RN is doing...) they migrated all opened issues. This is an example of what the old issues and new issues look like after migration. Note that they:

  • Kept all of the original comments including images and things like the user's profile picture. This makes the issues pretty easy to read still.
  • Commented on the old issue with details about where it has moved to and why.

For reference the code they used for the migration is here:

https://github.com/fastlane/monorepo/blob/master/migrate_issues.rb

Discussion points

  • Is this something we need to do?
  • Is this a big enough job to require automation?
  • How do we identify which issues need to be migrated?
  • Do we take this opportunity to migrate issues that were closed due to inactivity, or do we only migrate issues which are currently open?
@cpojer
Copy link
Member

cpojer commented Feb 11, 2019

  • Let's do it!
  • I can probably take care of moving things, but somebody will need to tell me which ones to move.
  • If you bring valid but closed issues to my attention, I can move them.

@TheSavior
Copy link

I believe you don’t need a tool anymore. GitHub built this feature in: https://help.github.com/articles/transferring-an-issue-to-another-repository/

@matt-oakes
Copy link
Member Author

Cool!

I've I'm reading it correctly it looks like you can only transfer within an organisation, but someone with admin access to both repos will be able to confirm that one way or the other.

@cpojer
Copy link
Member

cpojer commented Feb 11, 2019

I just checked and it seems like it is not possible to migrate issues across orgs unfortunately. @matt-oakes shall I use the issue mover you posted about instead?

@matt-oakes
Copy link
Member Author

@cpojer Maybe try it with one of the issues and see how it looks. I'm happy with whatever method that you are really 🙂

@kelset kelset added 🗣 Discussion This label identifies an ongoing discussion on a subject 🥄 Lean Core This label is related to all the conversations around the project of "lean core" labels Feb 12, 2019
@kelset kelset changed the title [Lean Core] Migrating Issues Migrating Issues for extracted components Feb 12, 2019
@kelset
Copy link
Member

kelset commented Feb 12, 2019

it seems like it is not possible to migrate issues across orgs unfortunately.

I can double check with the GitHub devs but if I recall correctly you need to be admin level permissions in both repos (source -> destination).

If not, for WebView they approached via creating new issues - cc @Titozzz.

@cpojer
Copy link
Member

cpojer commented Feb 12, 2019

Just fyi, it seems like we cannot use this app because it would require giving access to the whole facebook GitHub org, including private repos, so we can't authorize it. I'm gonna go ahead for now and move the NetInfo issues manually just so we got those covered.

@cpojer
Copy link
Member

cpojer commented Feb 12, 2019

@zpao saved me and created a simple script that can do this for us, without having to give access to a third-party tool: https://gist.github.com/zpao/a44889a3dfeda9af24561c631c9f8c03 thank you so so much!

@rafaellincoln
Copy link

@matt-oakes Thank you for this proposal!

@cpojer I found these issues, for PushNotificationIOS, which could be migrated too!

Would it be interesting to mark all users, in this issue, that migrated part of the core?

@kelset
Copy link
Member

kelset commented Feb 13, 2019

Would it be interesting to mark all users, in this issue, that migrated part of the core?

I think it would be an overkill, a simple comment with the link to the new issue when closing is enough.

@cpojer
Copy link
Member

cpojer commented Feb 13, 2019

@rafaellincoln just used the new script on these two issues, it works, yay!

@cpojer
Copy link
Member

cpojer commented Feb 15, 2019

I took care of all the existing components that were split out. If there is something I missed, let me know. I'll also do this for projects that are split out in the future. Closing this issue as it seems resolved.

@cpojer cpojer closed this as completed Feb 15, 2019
@radeno
Copy link

radeno commented Mar 5, 2019

@cpojer if it helps we can create shared Google sheets document with columns "From Repo", "To Repo", "Issue number" and then export it as CSV and use all data with @zpao script to move it.
Every sheet should be one community repository.

It could saved a lot of time instead do it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗣 Discussion This label identifies an ongoing discussion on a subject 🥄 Lean Core This label is related to all the conversations around the project of "lean core"
Projects
None yet
Development

No branches or pull requests

6 participants