Skip to content

Discussion: leftover changes from the built-in Discussion block #370

Backlog

Description

@farhan

Found while reviewing openedx/openedx-platform#38749, which removed the built-in Discussion block. Checked at xblocks-core 7dc8ff8a against the built-in files on platform master before the removal (9d80ff8e9f^).

Platform change not fully ported

  • Discussion service to enable permission and access provider openedx-platform#37912 changed the block to call is_discussion_enabled(). src/xblock_discussion/block.py:184 still uses self.discussion_config.is_discussion_enabled without (). The method object is always truthy, so the inline discussion renders even when ENABLE_DISCUSSION_SERVICE is False.
  • The same PR made is_visible and the enabled check return False when the runtime has no discussion_config_service. block.py:112 and :184 use the service without that guard, so they raise AttributeError instead. has_permission (:142) still has the guard.

Tests

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions