Skip to content

Transition notes: Add more specs for reading restricted notes, update…#2565

Merged
kevinrobinson merged 1 commit intomasterfrom
patch/transition-note-restricted-read
Aug 28, 2019
Merged

Transition notes: Add more specs for reading restricted notes, update…#2565
kevinrobinson merged 1 commit intomasterfrom
patch/transition-note-restricted-read

Conversation

@kevinrobinson
Copy link
Copy Markdown
Contributor

… to allow all with restricted access to read

Who is this PR for?

SHS counselors, APs

What problem does this PR fix?

Transition notes were controlled by a feature switch previously, which mostly controlled access to writing. It also incorrectly controlled access to read the restricted section, which should instead just be controlled by can_view_restricted_notes. Some test setup for this specific endpoint were present, but test cases weren't added.

Related to https://rollbar.com/somerville-teacher-tool/studentinsights/items/246/occurrences/93530182055/

What does this PR do?

Changes authorization for accessing the restricted transition note text. This doesn't require access to any labels, but is available for all educators with can_view_restricted_notes:true.

Adds more test cases.

Checklists

Which features or pages does this PR touch?

  • Student Profile

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

… to allow all with restricted access to read
@kevinrobinson
Copy link
Copy Markdown
Contributor Author

selfie

@kevinrobinson kevinrobinson merged commit 18f0273 into master Aug 28, 2019
@kevinrobinson kevinrobinson deleted the patch/transition-note-restricted-read branch August 28, 2019 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant