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

Revisit the instructions to fork profiling-recipe #15

Open
shntnu opened this issue Aug 4, 2021 · 3 comments
Open

Revisit the instructions to fork profiling-recipe #15

shntnu opened this issue Aug 4, 2021 · 3 comments

Comments

@shntnu
Copy link
Member

shntnu commented Aug 4, 2021

A major shortcoming of the current approach is forking profiling-recipe means that you are limited to one fork (for a given GitHub account). Consider this scenario:

  1. I am user-A and I create a repo user-A/dataset-1 using cytomining/profiling-template
  2. I then fork cytomining/profiling-recipe into user-A/profiling-recipe and weld it to user-A/dataset-1, following the instructions in README
  3. I later want to create a new repo user-A/dataset-2 using cytomining/profiling-template
  4. I have to now used the same fork user-A/profiling-recipe and weld it to user-A/dataset-2

So user-A/dataset-1 and user-A/dataset-2 have to use the same fork user-A/profiling-recipe; there is no way around this.

One could create a branch per dataset, i.e.,

  • user-A/profiling-recipe has a branch dataset-1 which is welded to user-A/dataset-1
  • user-A/profiling-recipe has a branch dataset-2 which is welded to user-A/dataset-2

and so on. But this is getting messy!

Did you already ponder this @gwaygenomics ?

@bethac07
Copy link
Member

bethac07 commented Aug 5, 2021

I think this is likely a terminology issue, aka the instructions shouldn't use fork? I believe there is no such restriction on number of copies of a template repository (user-A can make as many copies as they want, as long as they all have different names), which is ultimately how the template is set up.

I'm sorry, you were discussing the RECIPE, not the TEMPLATE (this is the part that is most confusing about the new approach IMO!).

Could we make the recipe repo also a template-style repository, in order to get around this?

@shntnu
Copy link
Member Author

shntnu commented Aug 6, 2021

Great point @bethac07
I was trying to look for notes that Greg and I had made on this decision because there was some good reasoning here (clearly with some shortcomings). More next week

Update: This was the related thread broadinstitute/pooled-cell-painting-profiling-recipe#3

The key part was in the first comment broadinstitute/pooled-cell-painting-profiling-recipe#3 (comment)

@shntnu
Copy link
Member Author

shntnu commented Aug 26, 2021

Could we make the recipe repo also a template-style repository, in order to get around this?

https://github.com/broadinstitute/pooled-cell-painting-profiling-template#pooled-cell-painting-data-pipeline-welding-template-hammer_and_wrench

We chose to fork the recipe rather than duplicate from a template was so that it would be easy to

  1. pull updates from upstream
  2. push updates to upstream

A template will not allow this.

But the downside of being able to have only one fork per account is a major one, so we should revisit this.

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

2 participants