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

Feature/obfuscation #304

Merged
merged 6 commits into from
Jan 15, 2024
Merged

Conversation

mengyewgau
Copy link
Collaborator

This PR address #281

By default, obfuscation is added, and if the checkbox is ticked, student names would be revealed

video1927682058.mp4

@mengyewgau mengyewgau self-assigned this Sep 4, 2023
@huyuxin0429 huyuxin0429 added Type: Feature A suggested idea for this project and removed feature labels Sep 4, 2023
@huyuxin0429
Copy link
Collaborator

@knmnyn Hmm I was wondering if the obfuscation functionality you request for is in masking the student names or associating the names with pseudonyms?

@huyuxin0429 huyuxin0429 requested a review from knmnyn September 8, 2023 02:41
// console.log("Masking student name now");

// Masking inside all h4 elements to get the student pairings
let h4Elements = document.querySelectorAll('h4');
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm is it possible select by a dedicated class instead of h4
this will allow the search to be more targeted

Copy link
Collaborator

Choose a reason for hiding this comment

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

likewise for other query selector functions

Comment on lines 47 to 49
// console.log("Report Fn Hit")
// console.log(window.shouldNotObfuscate)
// console.log("Local Storage", shouldNotObfuscate)
Copy link
Collaborator

@huyuxin0429 huyuxin0429 Sep 8, 2023

Choose a reason for hiding this comment

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

Try to remove unused logs if possible!

@coveralls
Copy link
Collaborator

coveralls commented Sep 19, 2023

Coverage Status

coverage: 4.203%. remained the same
when pulling baab39a on mengyewgau:feature/obfuscation
into f68650a on WING-NUS:master.

Copy link
Collaborator

@huyuxin0429 huyuxin0429 left a comment

Choose a reason for hiding this comment

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

Please remove unused logging statements

let h4Elements = document.querySelectorAll('h4');
h4Elements.forEach(h4Element => {

// Masking inside all h4 elements with id "submission_similarities_for_students" to get the student pairings
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm is "submission_similarities_for_students" id or class?

return;
}

// console.log("Masking student name now");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Removed unused logging statements

@huyuxin0429 huyuxin0429 merged commit 8bcd107 into WING-NUS:master Jan 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature A suggested idea for this project
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants