Problem/Motivation

When editing contributors, caches for references are not invalidated. This results in views of references that are not accurate with the underlying data.

Steps to reproduce

  1. Create a reference with a contributor.
  2. Visit the view page for the contributor (/bibcite/contributor/%).
  3. Edit the contributor to change a name part (ex: lastname)
  4. On save, the system will return you to the contributor view (/bibcite/contributor/%)
  5. Bug: the name reflected in the contributor view (bibcite_contributor) will not be the same as the name parts saved for the contributor.

Proposed resolution

Add cache invalidation to the contributor presave for references to which the contributor is added.

Remaining tasks

Add cache invalidation to the contributor presave for references to which the contributor is added.

User interface changes

None

API changes

There's an API?

Data model changes

No data model changes.

Issue fork bibcite-3462424

Command icon 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

AndrewGearhart created an issue. See original summary.

chrisdarke made their first commit to this issue’s fork.

mark_fullmer made their first commit to this issue’s fork.

mark_fullmer’s picture

Status: Active » Needs review

Merging the latest changes from 3.0.x.... let's see what the automated tests think!

mark_fullmer’s picture

Title: Contributor View is Invalid After Contributor Edit » Contributor View is improperly cached after contributor edit
mark_fullmer’s picture

Version: 3.0.0-beta4 » 3.0.x-dev
Status: Needs review » Postponed (maintainer needs more info)

I attempted to reproduce this problem, based on the provided steps in the issue description. As of right now, I'm not able to reproduce. If this is still a problem, can someone else confirm whether they can reproduce with the stated steps, or whether a different set of steps is necessary?