Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing previous version does not show previous version accurately #9075

Open
seabelis opened this issue Apr 11, 2024 · 4 comments
Open

Viewing previous version does not show previous version accurately #9075

seabelis opened this issue Apr 11, 2024 · 4 comments
Assignees
Labels
Affects: Data Issues that affect book/author metadata or user/account data. [managed] Affects: Librarians Issues related to features that librarians particularly need. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Priority: 3 Issues that we can consider at our leisure. [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] Type: Bug Something isn't working. [managed]

Comments

@seabelis
Copy link
Collaborator

seabelis commented Apr 11, 2024

Problem

Sometimes I need to view the edit history of a record to see what changes were made and when. I count on the preview of the previous version to show me accurate information. Instead, the preview of a previous version shows changes that had not yet been made making it appear as though that data existed prior to the edit I'm reviewing.

Evidence / Screenshot

Diff view
Screenshot 2024-04-11 at 17 27 55

Preview of v. 1
Screenshot 2024-04-11 at 17 28 23

Actual v. 1
Screenshot 2024-04-11 at 17 28 34

Relevant URL(s)

https://openlibrary.org/books/OL49822191M/Poesie?m=history

Reproducing the bug

  1. Go to ...a record that has been changed incorrectly and does not have an accurate preview of previous versions.
  2. Do ... see the inaccuracies as noted in the above example.
  • Expected behavior: The version preview should display the previous version accurately.
  • Actual behavior: It does not.

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N): Y
  • Environment (prod, dev, local): prod

Notes from this Issue's Lead

Proposal & constraints

Related files

Stakeholders

@scottbarnes

@seabelis seabelis added Type: Bug Something isn't working. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Affects: Data Issues that affect book/author metadata or user/account data. [managed] Needs: Lead labels Apr 11, 2024
@mekarpeles mekarpeles added Priority: 2 Important, as time permits. [managed] Affects: Librarians Issues related to features that librarians particularly need. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] and removed Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels Apr 15, 2024
@seabelis seabelis added Priority: 1 Do this week, receiving emails, time sensitive, . [managed] and removed Priority: 2 Important, as time permits. [managed] labels Apr 30, 2024
@mekarpeles
Copy link
Member

Can you help us understand a bit more clearly the issue with previewing old pages in this issue?

Are you clicking the view button? Or the revision 1 link? or the revision 2 link? And what data are you seeing that you shouldn't be? Or what data aren't you seeing that you should be? What do you expect v. what is happening?

@mekarpeles mekarpeles added the Needs: Detail Submitter needs to provide more detail for this issue to be assessed (see comments). [managed] label May 6, 2024
@seabelis
Copy link
Collaborator Author

seabelis commented May 7, 2024

When viewing the preview of rev 1. I see changes that were made after that version. If I actually revert the record to v.1 I can see actual v.1. You can see in the screenshots the different publisher. That publisher was not added until the edits that resulted in v.2. Does that help?

@mekarpeles mekarpeles added Priority: 2 Important, as time permits. [managed] and removed Priority: 1 Do this week, receiving emails, time sensitive, . [managed] labels May 13, 2024
@mekarpeles
Copy link
Member

Alright, so the problem is, the preview feature may be off by one and showing that version plus the changes made on top of it for the next revision. I think this needs investigation, though I think I better understand what seems to be happening. Given this, I think we'll stage in 2024-06 milestone as P2

@mekarpeles mekarpeles added this to the Sprint 2024-06 milestone May 13, 2024
@mekarpeles mekarpeles removed the Needs: Detail Submitter needs to provide more detail for this issue to be assessed (see comments). [managed] label May 13, 2024
@mekarpeles
Copy link
Member

mekarpeles commented May 30, 2024

@seabelis After having a team call, we came to the conclusion that specifically the editions table is what seems misleading here, because the contents of the editions table are coming directly from infogami and are no responsive to the edit history / version control.

In other words, when looking at the diff, the information in the editions table should be ignored and the edition details is the thing we should rely on.

We could make it so if there is a ?v= parameter in the url, that the version of the edition that has been used to load the book page gets passed into the editions table (that we load from solr or whatever) so that after the overriding occurs, the right data is shown in the editions table as the rest of the page.

For now though, let's deprioritize as P3, if someone from the community wants to shim this in to our existing setup, feel free, the simple answer is that when we explore revisions of books, the info in the edition table should be ignored. However, anyone who does want to contribute should coordinate with @jimchamp who is driving #7451

@mekarpeles mekarpeles added State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] Priority: 3 Issues that we can consider at our leisure. [managed] and removed Priority: 2 Important, as time permits. [managed] labels May 30, 2024
@mekarpeles mekarpeles removed this from the Sprint 2024-06 milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Data Issues that affect book/author metadata or user/account data. [managed] Affects: Librarians Issues related to features that librarians particularly need. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Priority: 3 Issues that we can consider at our leisure. [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] Type: Bug Something isn't working. [managed]
Projects
None yet
Development

No branches or pull requests

3 participants