Towards consistency for displaying test entities. Stop hiding test entities on some dashboards #23724
+6
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
There is no consistency as to whether test entities are shown on (eg. contact tabs). Some do and some don't. This makes test entities rather less useful because you can't see the results.
Eg. in the case of an event signup you don't see the participant record in the contact events tab if it is a test. But you do see the test contributions (but not in the user dashboard..).
This PR changes those that were hidden based on the "force" parameter so that test entities are not filtered out and are displayed. This provides consistency and standardisation.
In most cases the UI will already show
( test )
or make it clear in some way that the entity is a test.Before
Very inconsistent display of test entities.
After
Consistent display of test entities.
Technical Details
This has always annoyed me, using the "_force" param (which is meant for triggering an immediate search) to decide whether to show test entities in some situations. And makes for some awkward conversations when training people on CiviCRM - eg. "You'll see that it's created a test contribution but you won't see the event registration because that's a test and Civi hides those. So why can I see the contribution? Because civi doesn't hide those? But it does in the dashboard? Yes, but only for contriubutions..."
Comments