I was recently attempting to make a development release of a project (FBOauth) and make this
development release available on the front of the projects page and downloadable quickly through drush.

I submitted this Bug Report and learned
how to do it. It was difficult for me to figure out how to do it on my own.

I have two bug fixes I'd like to have done to the Drupal.org site in order that someone else doesn't have to struggle with the same problem.

1. For all project pages where you edit releases (in this example, http://drupal.org/node/1131300/edit/releases for this project)
please rename "Show snapshot release" to be "Show Development Release Download link".

2. In the instructions for Version Control of all projects (in this example, https://www.drupal.org/project/fboauth/git-instructions for this project) , underneath the git instructions for creating a "Branch for a dev release" please include the following text:

"Note: In order to enable easy download of Development releases on the project page for this project, go to the Releases page and enable the checkbox for 'Show Development Release Download Link' for the relevant major versions of this project."

3. I'd suggest that by default, the checkbox for 'Show Development Release Download Link' would be best to be checked for all new projects that are created. In general, I believe that its useful for everyone to have quick access to development releases, although I can see where there are some times when someone would want to hide them.

Thanks for helping make Drupal.org more user friendly!

Comments

DarrellDuane’s picture

Title: Rename "Snapshot" to be "Development Release" » Rename "Snapshot" to be "Development Release" on Releases page for projects
Issue summary: View changes
dddave’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Site organization » User interface
drumm’s picture

Project: Drupal.org customizations » Project
Version: 7.x-3.x-dev » 7.x-2.x-dev

Most of these strings are in this module. I agree they should be changed.

hass’s picture

Title: Rename "Snapshot" to be "Development Release" on Releases page for projects » Rename "Snapshot" to be "Development release" on Releases page for projects
drumm’s picture

Title: Rename "Snapshot" to be "Development release" on Releases page for projects » Replace "Snapshot" on Releases page for projects with per-release field
Assigned: Unassigned » drumm
Related issues: +#2268449: Run contrib module branch tests against both dev and latest stable core branches

Let's expand the scope of this. With semantic versioning, there is not necessarily one dev release per API compatibility of the project. For example, core's 8.1.x and 8.0.x.

This functionality can be replaced by a field on the release node itself.

  • If dev, label as “Show in project’s download table when branch is supported” to match current behavior.
  • Else if stable, hide the field (for now, may have future use)

We'll need an update script:

  • Add the field
  • For each dev release
    • Default to 1
    • If on supported branch, and not shown, then 0
    • Use hacky save to avoid updating timestamps and triggering packaging

  • drumm committed 61addb0 on 2385781-replace-snapshot
    Issue #2385781: Add field_show_download field
    
drumm’s picture

Adding the field has been committed to a branch. For the rest of the update script:

"hacky save" as in http://cgit.drupalcode.org/drupalorg/tree/drupalorg_project/drupalorg_pr.... I'm not sure how much this is abusing Drupal's APIs, but it seems to work and isn't calling private functions.

The data from project_release_supported_versions's snapshot column should be copied over to the new field.

Hiding the field on releases where field_release_build_type is static can be done in project_release_field_access.

  • drumm committed 0297056 on 2385781-replace-snapshot
    Issue #2385781: Add settings for field_show_download field
    
  • drumm committed fa4f8e6 on 2385781-replace-snapshot
    Issue #2385781: Populate field_show_download field for dynamic releases
    

  • drumm committed 332446b on 2385781-replace-snapshot
    Issue #2385781: Only show field_show_download for dynamic releases
    
  • drumm committed 7e215ef on 2385781-replace-snapshot
    Issue #2385781: Remove "snapshot" UI
    
drumm’s picture

The remaining work is:

  • Update the download table View.
  • Remove the Views handling of this column.
  • Remove the column, followup after we know the data can go.

  • drumm committed 81add16 on 2385781-replace-snapshot
    Issue #2385781: Replace "Snapshot" with field in Views
    
drumm’s picture

Status: Active » Fixed
Issue tags: +needs drupal.org deployment

I think everything for this issue is handled, the Views work has been committed and I opened #2626694: Cleanup: remove project_release_supported_versions.snapshot column for cleanup.

  • drumm committed 0297056 on 7.x-2.x
    Issue #2385781: Add settings for field_show_download field
    
  • drumm committed 332446b on 7.x-2.x
    Issue #2385781: Only show field_show_download for dynamic releases
    
  • drumm committed 61addb0 on 7.x-2.x
    Issue #2385781: Add field_show_download field
    
  • drumm committed 7e215ef on 7.x-2.x
    Issue #2385781: Remove "snapshot" UI
    
  • drumm committed 81add16 on 7.x-2.x
    Issue #2385781: Replace "Snapshot" with field in Views
    
  • drumm committed fa4f8e6 on 7.x-2.x
    Issue #2385781: Populate field_show_download field for dynamic releases
    
drumm’s picture

Issue tags: -needs drupal.org deployment

This has been deployed to Drupal.org.

hass’s picture

Snapshots are not releases. Ok, they are not done nightly only, but they are still snapshots of possibly totally unstable states that may change every few minutes with every commit.

hass’s picture

Status: Fixed » Active
drumm’s picture

Status: Active » Fixed

Dev releases I think "development release" is accurate. It is a release, and development or dev is the term used everywhere except for these corners of the UI that were inconsistent.

Status: Fixed » Closed (fixed)

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