Rock icon indicating copy to clipboard operation
Rock copied to clipboard

Dynamic Report block changes Is Equal to Contains in Data View

Open cabal95 opened this issue 4 years ago • 0 comments

Description

When using the Dynamic Report block, it modifies the original Data View filter criteria from Is Equal to become Contains. I chose Is Equal because I specifically wanted it to be Equal. If I wanted it give users the ability to do a sub string search I would specifically choose Contains.

Steps to Reproduce

  1. Go to demo site.
  2. Create a new Person Data View with a filter of Last Name Is Equal To Decker
  3. Create a new Person Report and put the Person Name field on.
  4. Add a Dynamic Report block to a page and configure it to use the report you just created.
  5. BEFORE YOU SAVE, notice that the filter is seen as a "Equal To" type of filter.
  6. Click Save.
  7. Edit block settings again.
  8. Notice the filter is now shown as a "Contains" type of filter.
  9. Go back to your Data View and notice it has actually changed the type of the search in the Data View.
  10. Change it back to "Equal To" and save Data View.
  11. Go back to the dynamic report and reload the page.
  12. Go look at the Data View and notice it again changed it back to "Contains".
  13. Claw your face in frustration.
  14. Buy some make up to cover all those scratches.

Expected behavior:

The Dynamic Report block should only be changing the specific content of what is being searched for, not the type of search that is being performed.

Actual behavior:

Your carefully crafted Data View is suddenly not doing what you told users it would do.

Versions

  • Rock Version: 10.2, 10.3-alpha
  • Client Culture Setting: en-US

┆Attachments: image.png | image.png

cabal95 avatar Jun 02 '20 20:06 cabal95