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

Notes: Add autosaving drafts and extending session (no UX changes yet) #2812



Copy link

@kevinrobinson kevinrobinson commented Apr 30, 2020

Who is this PR for?

all educators, particularly during remote meetings with multiple apps or windows

What problem does this PR fix?

If someone is running a meeting remotely (eg, MTSS meeting), they start writing a note but then switch to other tabs or browser windows (eg, for videochat). If they don't remember to circle back, they may lose what they had timed when the session times out. #2810 aims to make that scenario more visible.

Similarly, if they prep for the remote meeting and load up the first student profile beforehand, but then that page sits for ~25 minutes before the meeting start, they might start typing the note, switch away to videochat, but have the session expire because there's no server interaction for so long.

What does this PR do?

Debounces changes to draft notes, and sends them up to the server. For now, the server writes these to EventNoteDrafts but doesn't otherwise use them. This PR will keep the session alive in this scenario, and the next step will be the UI for discovering unsaved drafts and 'publishing' them as notes. There's no UX changes in this PR.

The 'draft' concept is a compromise between making it so folks don't have to think about saving at all (a la docs), and concerns that folks have about the potential for harm with immediately publishing as they type (eg, when typing through how to phrase privacy-sensitive issues).

Separately, this PR factors out a RestrictedTextRedacter that different models use to redact sensitive text in #as_json by default, and uses it in new EventNoteDraft model as well, with tests all around.


Which features or pages does this PR touch?

  • Student profile, taking notes

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

  • Included specs for changes
  • Improved specs for existing code in need of better test coverage
  • Manual testing made more sense here

@kevinrobinson kevinrobinson changed the title WIP: Add autosaving drafts, factor out restricted test redaction Notes: Add autosaving drafts, factor out restricted test redaction May 1, 2020
@kevinrobinson kevinrobinson changed the title Notes: Add autosaving drafts, factor out restricted test redaction Notes: Add autosaving drafts and extending session (no UX changes yet) May 1, 2020
Copy link
Contributor Author

kevinrobinson commented May 1, 2020


@kevinrobinson kevinrobinson merged commit 4386dd2 into master May 1, 2020
10 checks passed
@kevinrobinson kevinrobinson deleted the feature/event-note-drafts-with-redaction-extraction branch May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant