Skip to content

Remove unused legacy js code from participant tagging - #1565

Merged
ihalaij1 merged 1 commit into
apluslms:masterfrom
sayravai:codeql_92
Nov 13, 2026
Merged

ihalaij1 merged 1 commit into
apluslms:masterfrom
sayravai:codeql_92

Conversation

@sayravai

Copy link
Copy Markdown
Contributor

Description

What?

CodeQL warned about a potential XSS issue so I investigated this and found, that the vulnerable code was actually never reached and could be removed (along with some related code). The old code was left in place after my earlier PR which changed the logic with which student tags are removed. Earlier it was possible to select multiple students from the list, then from one of the students, click on a tag and remove it from all currently selected students. This was quite confusing so I changed it so, that there is a separate "global" button to remove a tag from selected students, and the context-sensitive menus opening when clicking on a single tag only affect that particular one. This PR removes all the related legacy code, including one whole html template that was no longer needed as it is now created in javascript.

This change should not have any effect on the UI. One e2e test failed for me, but that was unrelated to this.

Fixes #1564

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Playwright tests.
  • Other test. (Add a description below)
  • Manual testing.

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

  • Chrome
  • Firefox
  • This pull request cannot be tested in the browser.

Think of what is affected by these changes and could become broken

Translation

Programming style

  • Did you follow our style guides?
  • Did you use Python type hinting in all functions that you added or edited? (type hints for function parameters and return values)

Have you updated the README or other relevant documentation?

  • documents inside the doc directory.
  • README.md.
  • Aplus Manual.
  • Other documentation (mention below which documentation).

Is it Done?

  • Reviewer has finished the code review
  • After the review, the developer has made changes accordingly
  • Customer/Teacher has accepted the implementation of the feature

Clean up your git commit history before submitting the pull request!

@ihalaij1 ihalaij1 self-assigned this Nov 11, 2026
@ihalaij1
ihalaij1 self-requested a review November 11, 2026 10:27
@ihalaij1 ihalaij1 moved this from Todo to In progress in A+ sprints Nov 11, 2026
@ihalaij1 ihalaij1 moved this from In progress to Under review in A+ sprints Nov 11, 2026

@ihalaij1 ihalaij1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

I deleted two orphaned translations.

@ihalaij1
ihalaij1 merged commit c9ec5ec into apluslms:master Nov 13, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Under review to Done in A+ sprints Nov 13, 2026
@sayravai

Copy link
Copy Markdown
Contributor Author

Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

DOM text reinterpreted as HTML

2 participants