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

Add user profile field functionality. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

troywilliams
Copy link
Contributor

@troywilliams troywilliams commented Apr 7, 2021

Adds the ability to add a user profile field to the LPR.

Config
screenshot-gumbygold box-2021 04 08-09_31_17

Report
screenshot-gumbygold box-2021 04 08-09_29_12

@troywilliams troywilliams requested a review from noisyjerm April 7, 2021 21:32
@troywilliams troywilliams added the enhancement New feature or request label Apr 7, 2021
Copy link

@noisyjerm noisyjerm left a comment

Choose a reason for hiding this comment

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

Code looks good. A couple of questions added as comments.
UI works as expected, no errors displayed.
In field configuration, these options are disabled. Is that deliberate?

  • Display in the summary report
  • Display in the learner instance report
  • Display to learner

Comment on lines 101 to 107
//new measures\assignment_resubmit_count(),
new measures\assignment_status(),
new measures\attendance_sessions_summary(),
new measures\checklist_complete(),
//new measures\checklist_complete(),
new measures\course_grade(),
new measures\course_section_activity_completion(),
new measures\grade_category_activity_completion(),
//new measures\grade_category_activity_completion(),

Choose a reason for hiding this comment

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

Why have these measures been commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot about those. I will restore/uncomment. This is possibly something for the future. Create a plugin setting/config var to store enabled measures. LW doesn't use those measures, sometimes I click on Assignment resubmit count rather than Assignment status. Needs a UI Improvement.

/**
* @inheritDoc
*/
public function get_data_for_users(user_list $userlist): array

Choose a reason for hiding this comment

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

Where is get_data_for_users() used? Does it need to be added before release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, but I wil sort.

@troywilliams
Copy link
Contributor Author

@noisyjerm Should be all gravy now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants