Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Problem/Motivation
On pages like https://www.drupal.org/sa-contrib-2025-101, there is a sidebar block that uses the legacy credit data “Contributing organizations for this advisory” that needs to be replaced.
Proposed resolution
Build the View in D10, so it is ready to be embedded when security advisories are ported. Until then, the content can be included from an API that provides the View’s output.
The View has links to distinct organization pages that are either an attributed customer or organization for someone credited on the advisory. D10 does not have URL aliases/etc yet, so the links will be raw new.drupal.org/node/nid links, which is okay as they redirect, and won’t need further adjustment as more functionality migrates.
In D7, include the contribution record ID in Drupal.settings for JS to make a frontend request to get the View output and place it on the page. This avoids writing more logic in D7.
Issue fork drupalorg-3543926
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
drummComment #3
fjgarlin commentedWe might not even need a view for this as we can access the contribution record in a jsonapi format: https://git.drupalcode.org/project/contribution_records/-/blob/1.0.x/src...
This might already have all the data we need.
Comment #4
fjgarlin commentedExample: http://new.drupal.org/contribution-record?source_link=https://www.drupal...
That has all the data we need.
Comment #6
fjgarlin commentedMR https://git.drupalcode.org/project/drupalorg/-/merge_requests/394/diffs ready for review.
Can be tested at: https://drupal:drupal@fjgarlin-drupal.dev.devdrupal.org/sa-contrib-2025-027
If this is merged, the view block can be removed and also the underlying view too.
Comment #8
drummI moved this to a fresh block implementation so we’re not relying on the old block being placed. This is deploying soon.