Display block once per user

Created on 3 November 2021, about 3 years ago
Updated 24 July 2023, over 1 year ago

Problem/Motivation

As a user I expect the block not be shown after I click a given option. As a developer I want to select which option will be used to flag the block as do not show.

Steps to reproduce

  1. Create a Popup block
  2. Place it on any region
  3. Visit a page repeatedly

Proposed resolution

  • DISCARDED

Remaining tasks

  • Add tests

User interface changes

  • New configuration option Viewed method to select from cookie or session

API changes

N/A

Data model changes

  • New constraint for block content to enforce a new revision is generated when the viewed method is set to cookie (only affects module's block bundle)
  • New field Flag as viewed (options list)
Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇪🇸Spain d70rr3s

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @rescudero opened merge request.
  • Status changed to Needs work over 1 year ago
  • 🇪🇸Spain d70rr3s

    Please, @rescudero, use MR1!, instead of creating a new one. To do so, use the "Get push access" button from the Issues fork section above. When you're ready, close MR4!

Production build 0.71.5 2024