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

Fix hiding of generated activities #163

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

szschaler
Copy link
Contributor

This PR fixes a bug introduced by #161. Because tools with URL-rewriting in the tool URL may not be loaded unless they have been generated, any panels provided by them can also not be loaded unless the tool has been generated. As a result, checking if a panel is a generated panel cannot rely on the panel definition in these cases. Before this fix, activities with such panels would be shown in the activities menu regardless of whether generation has taken place.

To fix this, we assume that all panels with undefined panel definitions are generated and hide the corresponding activities in the menu. This also has the nice side effect that only activities with fully defined panels are visible in the menu.

@szschaler szschaler added the bug Something isn't working label Jan 12, 2024
@szschaler szschaler self-assigned this Jan 12, 2024
Copy link
Collaborator

@barnettwilliam barnettwilliam left a comment

Choose a reason for hiding this comment

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

LGTM

@szschaler szschaler merged commit c4cc805 into main Jan 12, 2024
2 checks passed
@szschaler szschaler deleted the fix/hide-generated-activities branch January 12, 2024 16:09
barnettwilliam added a commit to mdenet/educationplatform-docker that referenced this pull request Jan 18, 2024
…l parallel build logs combined and mdenet/educationplatform#163 hiding of generated activities. Features mdenet/platformtools#155 resource management of editor instances and mdenet/educationplatform#162 tool base url rewriting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants