Changes to work or chapter author/creator or co-author/co-creator do not show up on preview

Description

Steps to reproduce

This bug also happens when editing a work or chapter and choosing a different pseud in the "Creator/Pseud(s)" field. (You must have multiple pseuds on your account to see that option on the form.) You can substitute "Choose a different pseud under 'Creator/Pseud(s)'" for the "Check 'Add co-creators?'" and "Fill in a name' steps in any of these scenarios.

Scenario 1: Editing work to add co-creator during initial posting process

  1. Log in

  2. Post > New Work

  3. Fill in required information

  4. Press "Preview"

  5. Follow "Edit" link on preview page

  6. Check "Add co-creators?"

  7. Fill in a name

  8. Press "Preview"

Scenario 2: Editing posted work to add a co-creator

  1. Log in

  2. Post > New Work

  3. Fill in required information

  4. Press "Post Without Preview"

  5. Follow "Edit" link at top of work

  6. Check "Add co-creators?"

  7. Fill in a name

  8. Press "Preview"

Scenario 3: Editing chapter to add a co-creator during initial posting process

  1. Log in

  2. Post > New Work

  3. Fill in required information

  4. Press "Post Without Preview"

  5. Follow "Add Chapter"

  6. Fill in required information

  7. Press "Preview"

  8. Press "Edit" on the preview page

  9. Check "Add co-creators?"

  10. Fill in a name

  11. Press "Preview"

Scenario 4: Editing posted chapter to add a co-creator

  1. Log in

  2. Post > New Work

  3. Fill in required information

  4. Press "Post Without Preview"

  5. Follow "Add Chapter"

  6. Fill in required information

  7. Press "Post Without Preview"

  8. Follow "Edit Chapter" link

  9. Check "Add co-creators?"

  10. Fill in a name

  11. Press "Preview"

What happens

The preview shows only the username/pseud I original posted with in the byline.

What should happen

I should see the co-creator I added or the pseud I selected.

Notes

The byline isn't cached in the view – it's part of the byline helper (https://github.com/otwcode/otwarchive/blob/ab0e0b25f09613ca27de365bcb9f1a750bb80f95/app/helpers/application_helper.rb#L98) which is using the cached non_anonymous_byline helper (https://github.com/otwcode/otwarchive/blob/ab0e0b25f09613ca27de365bcb9f1a750bb80f95/app/helpers/application_helper.rb#L110).

is also caused by this caching.

Assignee

ticking instant

Reporter

Sarken

Roadmap

Works

Priority

Medium

Affects versions

Fix versions

Components

BackEnd
Caching

Difficulty

Medium

Milestone

Internal 0.9
Configure