Comments

bdone’s picture

Status: Active » Needs work
StatusFileSize
new80.03 KB
new128.27 KB
new1.39 KB

changes defaults for the status exposed filter to 'active' or 'blocked', instead of yes/no. also updates the default label to "Active status".

Screen_Shot_2013-06-22_at_12.18.35_AM.png

Screen_Shot_2013-06-22_at_12.18.58_AM.png

bdone’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2024893-people-listing-active-filter-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new5.96 KB
new4.56 KB

OH, there are actually bugs in the code.

bdone’s picture

StatusFileSize
new5.96 KB
new692 bytes

thanks @dawehner. i added a minor typo fix in the new test.

damiankloip’s picture

+++ b/core/modules/views/lib/Drupal/views/Tests/Handler/FilterBooleanOperatorTest.phpundefined
@@ -98,5 +98,81 @@ public function testFilterBooleanOperator() {
+  public function testFilterGroupedExposed() {

Needs a docblock.

Otherwise, looks good to go!

dawehner’s picture

StatusFileSize
new751 bytes
new6.03 KB

There we go.

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, looks fine. I expected that to pass, as it's just a comment addition.

yesct’s picture

Issue tags: +RTBC July 1

This issue was RTBC and passing tests on July 1, the beginning of API freeze.

catch’s picture

Status: Reviewed & tested by the community » Needs review

I get the 'active/blocked' change but not 'Active status'. Why not just 'status'?

bdone’s picture

StatusFileSize
new555 bytes
new6.03 KB

@catch: i was going for consistency with views hook_views_data() declaration in core/modules/user/user.views.inc...

$data['users']['status'] = array(
    'title' => t('Active status'),
    'help' => t('Whether a user is active or blocked.'),
    ...

but, "Active" does seem more straight forward for the UI.

bdone’s picture

interfidd :)

klonos’s picture

:D

dawehner’s picture

OH i thought catch suggested to use "Status" and not "Active" ?

bdone’s picture

StatusFileSize
new555 bytes
new555 bytes

you're right! sorry about that.

bdone’s picture

StatusFileSize
new555 bytes
new11.58 KB

whoops (again), patched against wrong branch! here we go again.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

catch’s picture

Status: Reviewed & tested by the community » Needs work

#16 looks like the wrong patch.

Also why not change the user views data to 'Status' instead of 'Active status' rather than the default view in this case?

bdone’s picture

Status: Needs work » Needs review
StatusFileSize
new6 KB
new6.48 KB

Sorry about #16. Here's a re-roll with suggestions from #18, changing the field label to only 'Status'.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

I am sorry that I didn't looked at the actual patch.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.