Forums : Technical Issue Help

Import/update a list of enlistments?

Hi,

Is there a way to import or update a list of enlistments at once?

For example, this project changed his CVS repository DNS a few months ago and there's more than 100 addresses to update.

Thanks a lot!

E75065afa7732a8426c60366205232e5?&s=32&rating=pg&d=https%3a%2f%2fwww

gabrielcossette

over 2 years ago
 

Gabriel,

Please check and see if the API offers any help, but I don't know of a specific way that ohloh offers to do this. I do know some individual project managers have done this on their own using scripting. I will note, though, that the projects with the highest numbers of enlistments experience much greater failures overall than those projects with fewer but larger enlistments. It is much more than a linear relationship. Since you have experienced this number of enlistments previously and are (I presume) substituting the new for old one-for-one, you probably know this better than I.

Also, CVS is not our best performing SCM and the initial fetches will take some time.

Let me know here with any questions or problems,

Thanks!

C06ad304d5a864f33eed63121a0407be?&s=32&rating=pg&d=https%3a%2f%2fwww

ssnow-blackduck

over 2 years ago
 

Thanks for your answer. I previously looked at your API here: http://meta.ohloh.net/referenceenlistment/

But it seems to be only able to "get" the current enlistments list, not add/modify current ones. But at least we can have the complete list.

Anyway, I was finally able to write myself an AutoIT script who can send regular HTTP POST requests to add/delete enlistments in batch :) I guess that's the kind of script others have already done.

Have a great day!

E75065afa7732a8426c60366205232e5?&s=32&rating=pg&d=https%3a%2f%2fwww

gabrielcossette

over 2 years ago
 

Gabriel,

Hopefully others will discover this post and find a new tool for their arsenal.

Thanks!

C06ad304d5a864f33eed63121a0407be?&s=32&rating=pg&d=https%3a%2f%2fwww

ssnow-blackduck

over 2 years ago
 

For sure! If someone wants my AutoIT source, they can just ask for it ;)

But it would still be good to have an "official" way to manage enlistments in batch from the web interface in the future.

Keep up the good work!

E75065afa7732a8426c60366205232e5?&s=32&rating=pg&d=https%3a%2f%2fwww

gabrielcossette

over 2 years ago
 

Gabriel,

I will suggest someone in management looks at your request.

Here's hoping...

Thanks!

C06ad304d5a864f33eed63121a0407be?&s=32&rating=pg&d=https%3a%2f%2fwww

ssnow-blackduck

over 2 years ago
 

Thanks a bunch!

E75065afa7732a8426c60366205232e5?&s=32&rating=pg&d=https%3a%2f%2fwww

gabrielcossette

over 2 years ago
 

Gabriel, I'd be interested in getting access to your script (also submitted https://github.com/blackducksw/ohloh_api/issues/32 to help documentation get refined)

I'd like to automate the creation of repos in openhub for the large following organizations which regularly create new repos that should be added to https://www.openhub.net/p/cloudfoundry/enlistments

https://github.com/cloudfoundry/ https://github.com/cloudfoundry-incubator/ https://github.com/cloudfoundry-community/

It would have been great to be able to set up a webhook from github (https://developer.github.com/webhooks/ on the "repository" event) so that every new repo gets mirrored onto openhub.

C1eaab5eb708173eeb5d9a1644adf811?&s=32&rating=pg&d=https%3a%2f%2fwww

bercheg

26 days ago
 

Post a Response