Problem/Motivation

Inside the isValidEntity method of the FollowTagActivityContext and FollowTaxonomyActivityContext we check for every user which follow specific tag is he has access to view that entity. That is has a lot of performance issue on saving and update node, also on creating activity.

Proposed resolution

Instead of checking access to the node for all users, easier to check if the node has a field with relation to taxonomy. Also, add a alter hook to modify the list of fields that can be checked.

Comments

tBKoT created an issue. See original summary.

tbkot’s picture

Issue summary: View changes
tbkot’s picture

ronaldtebrake’s picture

Status: Active » Fixed

  • tBKoT committed 96d899a on 10.0.x
    Issue #3195438 by tBKoT: Improves entity validation in the follow tag...
  • tBKoT committed 299f14a on 10.0.x
    Issue #3195438 by tBKoT: Create new filter for notifications
    
  • ronaldtebrake authored 6a3915e on 10.0.x
    Merge pull request #2201 from goalgorilla/bugfix/3195438
    
    Issue #3195438...

Status: Fixed » Closed (fixed)

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