-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Notebook Snapshot menu is only updating section and page names for the editor's view #3982
Comments
This was picked up in an earlier PR, but it appears that it was never actually fixed, presumably due to a misunderstanding. As I mentioned in that PR, the correct approach is to only store the object identifier and resolve the object dynamically. Do not store any attributes of an object other than the identifier in local storage, because they are guaranteed to go stale. |
yes I think we made that change long time back, let me check |
Removing CDA Tag per @akhenry |
following observation after initial analysis,
but this leads some edge cases to handle: |
Correct, default section and page ID cannot be persisted on the object because it differs by user. Yeah I had some of the same concerns about those edge cases when I was recently working on Notebooks, and I was wondering whether we really want per-user a default section and default page, or whether we could just take them to the last page updated by anybody. In any case, the edge cases are easily resolved:
@charlesh88 thoughts? |
I'm actually not a fan of the default Notebook stuff exactly because of the complications that ensue - but we're saddled with it. That said, users absolutely must have their own defaults. The use case here is I come on shift and create a new Notebook entry in a Notebook/section/page. All subsequent entries, snapshots, etc. must go to that page. If someone else logs in and suddenly all my snapshots are going to another unexpected Notebook, that would be very bad. So as just discussed:
|
…e editor's view #3982 (#4002) * if default section/page is missing then clear default notebook and hide option from dropdown. * handle edge case when section is null/undefined. * refactored notebook localstorage data + fixed some edge cases when default section/page gets deleted. Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
Will retest after #4144 is fixed |
Verified fixed. |
Testing NotesThis needs two users looking at the same Notebook.
|
Testathon 8-26-21: verified fixed. |
Tiffany and I were interacting with the same Notebook section and page to discuss multi-user Notebook user tests, and while she did see updated names for the section and page in the Snapshot menu, I did not:
This condition remained even after clearing cache and refreshing.
It appears as though updating is based on who did the naming. In the example above, she had created and named both "Flight Day 1" and "Shift 1". In this second example, I added a new page to Flight Day 1 and named it "Shift 2". My Snapshot menu shows the correct name for the page that I named, but shows "Unnamed section" for the section that Tiffany edited:
Detail Notebook testing DOC:
https://docs.google.com/document/d/1Y_95OumOH5JZ2j079tL50orTBSExJ9o8yqXhGrPLM1A/edit#
The text was updated successfully, but these errors were encountered: