Skip to content

[#146] Add observee visibility#147

Merged
gbarat87 merged 4 commits into
MOODLE_400_STABLEfrom
observee-visibility
Apr 20, 2026
Merged

[#146] Add observee visibility#147
gbarat87 merged 4 commits into
MOODLE_400_STABLEfrom
observee-visibility

Conversation

@owenherbert-catalyst

@owenherbert-catalyst owenherbert-catalyst commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

This merge request fixes issue (#146) where the identity of the observee cannot be seen from multiple pages. This implementation also respects Moodle privacy settings.

Screenshots:

image
image

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #146 by ensuring the selected observee’s identity is visible while grading/observing, including on pages where it was previously missing, and does so using Moodle’s configured identity-field visibility rules.

Changes:

  • Show the observee’s name (via fullname()) near the top of session.php while marking.
  • Show the observee’s name (via fullname()) near the top of sessionsummary.php.
  • Optionally display secondary identity fields (email/username) based on \core_user\fields::get_identity_fields(...).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
session.php Adds an observee identity header (name + permitted identity fields) on the marking page.
sessionsummary.php Adds an observee identity header (name + permitted identity fields) on the session summary page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread session.php Outdated
Comment thread session.php Outdated
Comment thread sessionsummary.php Outdated
Comment thread sessionsummary.php Outdated
@owenherbert-catalyst

Copy link
Copy Markdown
Contributor Author

Hey @gbarat87 , can you please review this one for me when you have a moment.

Comment thread classes/observation_manager.php Outdated
@gbarat87 gbarat87 merged commit eb2c3dc into MOODLE_400_STABLE Apr 20, 2026
@gbarat87

Copy link
Copy Markdown
Contributor

Hi,

I have tested locally and it works as expected.

Guillaume

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.

3 participants