The title says it.
This is part of #1823450: [Meta] Convert core listings to Views
Comment | File | Size | Author |
---|---|---|---|
#48 | vdc-2020395.patch | 7.81 KB | dawehner |
#45 | vdc-2020395.patch | 7.88 KB | dawehner |
#38 | vdc-2020395.patch | 7.88 KB | dawehner |
#38 | interdiff.txt | 455 bytes | dawehner |
#36 | 2020395-36-views-who-s-new.patch | 8.03 KB | mr.baileys |
Comments
Comment #1
oadaeh CreditAttribution: oadaeh commentedI don't want to hold anyone up who may also be working on this, but I have started this, and I will submit a patch later today.
Comment #2
oadaeh CreditAttribution: oadaeh commentedForgot the tag.
Comment #3
fgmWorking on it.
Comment #4
Andi-D CreditAttribution: Andi-D commentedWorking on it, because fgm have other things to do.
Comment #5
Andi-D CreditAttribution: Andi-D commentedI create a new view
views.view.who_s_new
Fields:
selected filter:
sort criteria:
Also delete old block:
UserNewBlock.php
Comment #7
oadaeh CreditAttribution: oadaeh commentedThe back tics should be apostrophes.
"of" not "off"
I've attached a patch that corrects those issues.
It seems to apply and work correctly. I'm not sure what's up with the testbot failures.
Comment #8
oadaeh CreditAttribution: oadaeh commentedOi!
Comment #9
oadaeh CreditAttribution: oadaeh commentedI just noticed this. There should not be any permission checks in the view, because there are no permission checks in the original block settings.
Comment #10
dawehnerWe can now override the items per page, let's get this issue up to speed again.
Comment #11
dawehnerI consider this as a bug in the first place. Let's reroll the patch and see what happens.
Comment #13
dawehnerLet's also login a user to show first access.
Comment #14
jibranHere is the reroll. I tested the patch it worked fine. I don't know perhaps a usablity review will help. It is ready to fly just one point.
access > 1970-01-01
andaccess <> 0
old query is
SELECT uid FROM {users} WHERE status <> 0 AND access <> 0 ORDER BY created DESC LIMIT 0, 5
new query is
Comment #15
Bojhan CreditAttribution: Bojhan commentedNo screenshot to review?
Comment #16
dawehnerAdd tag, but well, there should not be a huge change.
Comment #17
oadaeh CreditAttribution: oadaeh commentedUpdated patch.
Also, I filled in the description and the tag.
A screen shot is also attached.
Comment #18
jibranPlease also share the screenshot of block configuration page.
Comment #19
jibranBlock config page.
img
I have added block category.(Maybe a followup)
And It shows up like this
I just wanted to show it under both categories maybe we can add this feature or we should mention it in field description only on category is allowed. My point is autocomplete made me think it is multi value field.
Here is another issue. (escaping much)
NW for changing block category from views to user.
Comment #20
oadaeh CreditAttribution: oadaeh commentedTwice in the picture you posted, the word category is used, which is singular, not categories, which is plural.
Also, just because a field is auto-complete, does not necessarily mean it takes multiple values. As far as I can remember, whenever I have seen an auto-complete field that accepted multiple values, it was stated so in the description by indicating how to enter multiple values.
Comment #21
mr.baileysAssigning to me to try and tackle this as part of the DrupalCon Prague Code Sprint.
Comment #22
mr.baileysNew patch, only change against #17 is the added block category (User):
Comment #24
mr.baileysSorry, wrong patch was attached to #22, this should be the correct one. The interdiff in #22 is correct (diff #17 vs this patch).
Comment #25
jibranCreated #2100959: Views secondary action links escapes html twice for escaping issue mentioned in #19.
Comment #26
oadaeh CreditAttribution: oadaeh commentedI found a reference to the removed block in user.module.
Comment #27
dawehnerThis does not seem to be a highly critical feature, see http://www.w3.org/TR/wai-aria/roles#complementary though I guess on the longrun we need to add this to either the block UI or just to
the views UI so people can configure it, if needed.
Comment #28
dawehnerPatch still applies.
Comment #29
dawehnerLet's mark this as RTBC and wait on the feedback of jbeach.
Comment #30
jessebeach CreditAttribution: jessebeach commenteddawehner brought up in chat a problematic bit of code in the user module:
So this brings up two issues.
In these three cases, the roles are inappropriate. The complementary role is meant for content that is related to the main content. Blocks displaying data about users have, most likely, nothing to do with the content on the page. And the form role on the log in block should really be on the
form
element, not that block wrapper. Not having an aria form role on a form element is not terrible.So, in the interest of getting this issue unblocked, I'm fine with removing this preprocess function and the roles it adds to various user blocks.
I would like to see a way for us to add attributes, and thus role attributes and other aria-* attribtues, to views wrappers so we can mark up content appropriately for accessibility through the GUI. I'll add that issue and link it here.
Comment #31
jessebeach CreditAttribution: jessebeach commentedCreated #2135341: Views should provide a means to add arbitrary attributes (such as aria-* attributes) to a view's wrapping element.
Comment #32
Xano28: vdc-2020395.patch queued for re-testing.
Comment #33
webchickI just did a big honkin' review of the sister issue at #2020399-54: Convert "Who's online" block to a View. There's a chance much of it applies here. We'll know in a few minutes! :)
Comment #34
webchickOops. No we won't. #26 no longer applies, and #28 is a 0 byte patch.
Comment #35
webchickTagging as an alpha target. Now that #1957276: Let users set the block instance title for Views blocks in the Block UI is in, I think we just need a re-roll and then this one is good to go.
Comment #36
mr.baileysRe-roll
Comment #38
dawehnerThank you for providing the most recent version of the patch.
Let's fix the failure.
Comment #39
jibranBack to RTBC.
Comment #40
webchickThanks!
Committed and pushed to 8.x, apart from the category change, per UX guidelines.
Comment #41
alexpottReverted d2478e9 and pushed to 8.x.
Drupal\views\Tests\DefaultViewsTest
andDrupal\comment\Tests\Views\DefaultViewRecentComments
Seems like another patch was committed in the same commit - see http://drupalcode.org/project/drupal.git/commit/f7e75db
Comment #42
alexpott38: vdc-2020395.patch queued for re-testing.
Comment #44
alexpott38: vdc-2020395.patch queued for re-testing.
Comment #45
dawehnerReuploading the last patch.
Comment #46
dawehnerBack to RTBC again.
Comment #47
alexpottNo longer applies :(
Comment #48
dawehnerMh, I should have retested.
Reupload.
Comment #49
dawehnerBack to RTBC
Comment #50
webchickGreat work!
Committed and pushed to 8.x. Thanks!