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

refactor(TeacherProjectService): Move removeNodeFromInactiveNodes() to MoveNodesService #1920

Conversation

hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Aug 26, 2024

Changes

  • Move TeacherProjectService.removeNodeFromInactiveNodes() and related functions to MoveNodesService. This is used when inactive nodes/groups are moved to the active section in the authoring tool.
  • Remove unnecessary null checks in removeNodeFromInactiveNodes()

Test

  • Verify that the null checks in removeNodeFromInactiveNodes() were not really necessary
  • In the AT, moving nodes and groups works as before, in these cases:
    • inactive to active
    • inactive to inactive

@hirokiterashima hirokiterashima added this to the Tech Debt 18 -> 17 milestone Aug 26, 2024
@hirokiterashima hirokiterashima self-assigned this Aug 26, 2024
@hirokiterashima hirokiterashima marked this pull request as ready for review August 26, 2024 23:00
Copy link
Member

@geoffreykwan geoffreykwan left a comment

Choose a reason for hiding this comment

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

Looks good.

src/assets/wise5/services/moveNodesService.ts Outdated Show resolved Hide resolved
src/assets/wise5/services/moveNodesService.ts Outdated Show resolved Hide resolved
@hirokiterashima hirokiterashima merged commit 143d0e3 into develop Aug 27, 2024
4 of 5 checks passed
@hirokiterashima hirokiterashima deleted the refactor-TeacherProjectService-moveNodeFromInactiveNodes branch August 27, 2024 17:15
@hirokiterashima
Copy link
Member Author

🎉 This issue has been resolved in version 5.156.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants