Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to make a project available to fork?

I've created a public project, but whenever anyone goes to fork it, they're only seeing the project.json file, not the rest of the code. I've searched around and can't find any documentation on how to make a project available for users to fork, is there something ridiculously simple I'm missing?

Thanks

0 votes



4 answers

Permanent link
Joseph,

are you talking about a stream in the JazzHub SCM?

There was an issue that I ran into recently that looked similar.
You should be able to see the following page - if you go to edit code


There you should be able to connect to the repository, select a stream and create a repository workspace and load in in the web UI.

I would suggest to contact support if you only see the Project.json file, This would help them to track down the problem. I did and my similar problem went away and we are not sure what happened.

1 vote

Comments

After you've made sure you've loaded your repository workspace, also check that you have delivered your changes.  You can deliver your code by hovering over the second icon on the left that looks like a repository and selecting Jazz SCM Changes. From there, check in your changes and deliver them.

@lhayward So, given the scenario, it seems the issue is that forking will only copy delivered changes. The project.json file is "delivered" by default, I expect. I'm guessing the (internal) flow is (1) create stream and populate with initial files, e.g., project.json and (2) pull stream into project creator's workspace. Since it's possible to deploy from the workspace, it isn't always clear (without specifically going to the SCM page) that these changes are not visible to others.

When a user tries to access your code in the JazzHub editor, a workspace is created for that user.  The workspace contains code that has been delivered to the project. 

I believe that if the user tries to view the code again, his workspace will be the same as what he viewed previously.  Therefore, he may need to accept any new changes by going to Jazz SCM Changes and choosing to accept the latest.

Millard, I think you should not see the file project.json. You should see an empty repo workspace and be able to create and share projects. If you see that file this is a bug similar to the issue I had. I had to jump several hoops to be able to see my repo workspace again. I disconnected the repository, reconnected and at some point I was able to see my streams and workspaces again. Then I was able to load the workspace and see the files.


Permanent link
This problem has been driving me nuts, but I figured out how it is happening.

After a user clicks EDIT CODE on the project they plan to fork, the four icons (pencil, cylinder, magnifying glass, and command prompt window) appear on the left and the center screen is briefly blank. A box then appears in that blank area named <user> | <Project Name> with the Repsitory URL info. A little while later two boxes named Streams and Repository Workspaces appear.

The problem is that users click the pencil icon -> Show Current Folder. That is the wrong thing to do at this point! All a user will see here is the project.json file. I was not patient enough to see the three boxes appear. The correct step is to click the Load workspace icon under the Repository Workspaces box. Once that is complete, users can click pencil -> Show Current Folder.

If a user is in the weird state of only seeing the project.json file, they must click cylinder -> ALL Jazz SCM Repositories. Locate the project in question, and press the red X button to delete. Click OK in the dialog box that opens. Now start over and have patience.

1 vote

Comments

Thanks for figuring that out. I ran into the same trap.


Permanent link
these are the steps I'm following
  • make changes in code
  • click repositories link (second image link on left, as specified by Lauren)
  • expand "Workspace Changes"
  • Review changes and click "Deliver change set(s) to the stream" link on the "Workspace Changes" bar (it looks like a triangle with an arrow pointing up coming out of it)
When I click "Edit Code" in the top right, a green bar that says "Loading" appears and then nothing happens
I'm using firefox 27.0.1 and have tried it with all add ons disabled with the same results

0 votes

Comments

From your bulleted list, it sounds like you have delivered your changes.

Are you saying that after delivering changes, you're no longer able to access the JazzHub code editor?

After delivering your files, are others still not able to view your code?  If that is still a problem, have them go to Jazz SCM Changes and accept your changes.

no, I can access the code, but other users cannot see my changes. 


I've tried accepting the changes in the Jazz SCM view, but the changes are still not available 

I see one of the answers has been marked as correct.  Is your problem solved?


Permanent link
Thanks to all who are working through this. We clearly need to improve the UX both around working with Jazz SCM repositories and on forking. I'll make sure the effected teams see this thread.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,700
× 1,220
× 383
× 1

Question asked: Feb 19 '14, 6:38 p.m.

Question was seen: 5,276 times

Last updated: Mar 24 '14, 8:05 a.m.

Confirmation Cancel Confirm