Right now, cvs.module does all sorts of unholy things to alter the project_release node form to turn it into a multi-step form so that you first select a CVS tag you want to base your release on, and then you land on the main release node form with all the version info pre-filled and unchangeable.

We need something similar for versioncontrol_project, ideally, in a way that's not too tightly tied to any given VCAPI backend. Ideally, there's just a way to have VCAPI define the available tags/branches for a given project, and an easy way for sites to define how to map those tags to version numbers.

Then, versioncontrol_project does all the crazy form altering. If we need to change the project_release form to make this any easier, we should. ;)

Comments

dww’s picture

Issue tags: +git phase 2

Forgot the "git phase 2" tag.

sdboyer’s picture

This feels like it might have a duplicate somewhere, so bumping it so that dww will see it :)

dww’s picture

Version: 6.x-1.0-rc2 » 6.x-2.x-dev
Status: Active » Postponed
int’s picture

Status: Postponed » Active
dww’s picture

Assigned: Unassigned » dww

I'll be working on this, but not in the next few days. Still, figure I should assign myself so there's no duplication of effort. The only thing blocking progress on this now is my availability to work on it, and unfortunately, I've got another critical task to attend to, first.

dww’s picture

Status: Active » Needs review
StatusFileSize
new7.75 KB

Initial patch. Sorry I didn't post this sooner, but the net at my new location is quite sucky. :(

This is basically the cleanup needed based on #953916: Proposal: Ditch the ability to have release nodes pointing to HEAD/master

Lots more to do in here, but this is at least a step in the right direction.

sdboyer’s picture

Yep, that all makes sense. And reminds me how much of what's in there is really, really vcapi-1.x focused. I'm gonna let you run with this one, but I'll have a look at versioncontrol_release today to see if anything really jumps out as a gotcha that you might get blocked on. Hopefully make it a little easier.

sdboyer’s picture

Status: Needs review » Needs work
Issue tags: +git sprint 8

tagging and changing status, since it was a first pass.

the only problem I actually did see was that you left your debugging lines in there :)

dww’s picture

Status: Needs work » Postponed

Removed the debug line and committed to HEAD. This is now blocked (very temporarily) on #1015296: Add a pluggable system for mapping VCAPI branch and tag objects to project_release version objects.

dww’s picture

Title: Integrate VCAPI with project_release node form » Integrate VCAPI with project_release node add form
Status: Postponed » Active
dww’s picture

Status: Active » Needs review
StatusFileSize
new4.79 KB

WHOOT! This is working locally! It even filters out VCAPI labels that already have release nodes pointing to them. ;)

dww’s picture

StatusFileSize
new12.01 KB

Better patch:
- Handles setting the 'rebuild' bit appropriately or not.
- Fixes a ton of PHPDoc formatting bugs from the jpetso days.
- Cleaned up some other comments and made the code more legible in a few spots.

dww’s picture

Status: Needs review » Fixed

Committed #12 to HEAD! ;)

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 8

Automatically closed -- issue fixed for 2 weeks with no activity.