view_query = self[:notes]
      .join(:elements, id: :element_id)
      .join(:chapters, id: :chapter_id)
      .join(:commits, id: :commit_id)
      .join(:branches, id: :branch_id)