Problem/Motivation

In earlier versions, G2 used to provide a listing of the G2 entries most recently created by the user.

This was implemented by the relatively inefficient process of loading those nodes on hook_user_load, which is invoked in many cases beyond the user profile page. It needs to be converted to a more efficient service-based lazy process.

Steps to reproduce

  • create a published G2 entry
  • navigate to /user
  • observe the node being listed: currently not there but it should be, either always or by configuring a block for it.

Proposed resolution

Replace the hook_user_load mechanism by something triggered only on the user.page route.

Remaining tasks

  • Decide on the details of implementation: likely service, block plugin, default block, view...
  • Implement.

User interface changes

None planned.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#7 3370725-7.patch35.14 KBfgm
#6 3370725-6.patch35.1 KBfgm
#4 3370725.patch34.89 KBfgm

Comments

fgm created an issue. See original summary.

fgm’s picture

Title: Convert user profile extensions to D10 » Convert user page extensions to D10
fgm’s picture

Parent issue: » #3362685: Port to Drupal 10
fgm’s picture

Status: Active » Needs review
StatusFileSize
new34.89 KB

Appears to be feature complete, even including clean uninstall thanks to "enforced" on config entities.

Status: Needs review » Needs work

The last submitted patch, 4: 3370725.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

fgm’s picture

Status: Needs work » Needs review
StatusFileSize
new35.1 KB

So DrupalCI uses a non-Drush CLI...

fgm’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new35.14 KB

Just a few drupalcs fixes.

  • fgm committed 8812b0be on 8.x-1.x
    Issue #3370725 by fgm: Convert user page extensions to D10
    
fgm’s picture

Status: Reviewed & tested by the community » Fixed

Merged to current dev HEAD.

Status: Fixed » Closed (fixed)

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