Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
statistics.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2013 at 21:39 UTC
Updated:
29 Jul 2014 at 21:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vijaycs85Adding schema file...
Comment #3
vijaycs85Re-rolling with tab fix.
Comment #5
vijaycs85Fixing tab issue again...
Comment #7
vijaycs85#5: 1919202-statistics-schema-5.patch queued for re-testing.
Comment #9
vijaycs85#5: 1919202-statistics-schema-5.patch queued for re-testing.
Comment #11
vijaycs85Updating labels... still no clue why patch in #5 failing...
Comment #12
vijaycs85And this is ready with label fixes ...

Comment #13
vijaycs85#11: 1919202-statistics-schema-11.patch queued for re-testing.
Comment #14
pfrenssenAssigning for review.
Comment #15
pfrenssenKeeping this assigned to me for the moment, I'm going to address these issues right away.
Comment #16
pfrenssenRemoved - double post.
Comment #17
pfrenssenAddressed remarks from #15.
Comment #18
pfrenssen@guy-schneerson just pointed out to me that the configuration keys should not be quoted. Updated patch.
Comment #19
dsnopekI've never reviewed any config schemas before, so please take this with a grain of salt - I may be totally off base with my comments here. :-)
Drupal usually uses sentence case, rather than title case, so this should be 'Popular block' with a lower-case 'b'.
However, on the block admin form, the block is actually called "Popular content". So, I'd like to propose that this label actually be 'Popular content' or 'Popular content block'.
On the block configure form, this is actually: "Number of day's top views to display" - why not make it match?
On the block configure form, this is actually: "Number of all time views to display"
On the block configure form, this is actually: "Number of most recent views to display"
I posted a comment on #1910624: [META] Introduce and complete configuration schemas in all of core asking if we really need to worry about the labels matching the admin form. You can wait until I get feedback there to actually update your patch. If they say this doesn't matter, I'll come back and mark this as RTBC.
Comment #20
dsnopekI got clarification from YesCT that the labels should match the admin form labels and I've attached a new patch which addresses this.
Comment #21
tstoecklerI think this should be "Number of day's top views to display"
Comment #22
dsnopekI don't see the difference. :-/ Or are you referring to the double single quote ('')? That's how you escape single quotes in a YAML file.
I'm going to mark this back to "needs review" under the assumption that the double single quote threw you off. If it's something else, please post another comment and mark as "needs work" again.
Thanks for the review!
Comment #23
vijaycs85Just checked with @alexpott on IRC and confirmed that we need to keep it as Yaml dumper does. So this is good to go...
Comment #24
webchickCommitted to 8.x, thanks! I'll push once testbot has caught up a bit.
Comment #25
tstoecklerRe #22: Yes that totally threw me off. I didn't know that's how YAML works. Looks weird, but hey. Sorry for the noise.