Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forum.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Feb 2013 at 21:19 UTC
Updated:
29 Jul 2014 at 21:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vijaycs85Adding schema file...
Comment #2
sandipmkhairnar commentedupdating schema as per code style in http://drupal.org/node/1905070#codestyle and verified in config_inspector
Comment #3
vijaycs85Thanks @sandipmkhairnar, patch looks good except it needs a new line at the end.
Comment #4
sandipmkhairnar commentedThanks @vijaycs85, updated patch as per the comment.
Comment #5
rteijeiro commentedReviewing and updated SprintWeekend tag.
Comment #6
tstoecklerThis should end in a period.
This should end in a period.
Containers is not a string, but a sequence.
This might be a little picky, but I think this deserves a comment as well. Unless you're some kind of forum.module expert this is very hard to understand, and I doubt many people are...
This (as well as the actual config) should contain a comment referencing _forum_get_topic_order() because this is near impossible to understand without it.
The vocabulary ID is a string, not an integer. It is currently '0', by default, but it really should be ''.
I think this should be 'Forum vocabulary ID' for clarity.
This should end in a period.
Comment #7
tstoecklerCrosspost, didn't mean to unassign.
Comment #8
rteijeiro commentedI think that:
'vocabulary' => 'forums'
Should be 'string' not 'integer'. Am I right?
It's the one and only error I have found.
Comment #9
sandipmkhairnar commentedThanks to @tstoeckler and @rteijeiro for comments. Corrected labels as per comment.

Comment #10
csg commentedContainers store taxonomy term ID's, so the type is integer instead of string.
Comment #11
rteijeiro commentedIt seems that it's solved:
Ending in period.
Now containers is sequence.
Now vocabulary is string and it's label is changed.
But I am not sure if there should be the comments mentioned in http://drupal.org/node/1919176#comment-7155320
I marked it as "needs review" so tstoeckler should review it better than me :)
Comment #12
csg commentedIt seems the last review is for #9, so #10 has not been reviewed yet.
Comment #13
tstoecklerI still think we could use some inline comments here, but since we haven't done that for most of the other schema files I won't be a stickler.
I'm not sure about the taxonomy term ID. It is currently stored as an integer in the DB, but we don't really enforce that in the entity system. I.e. someone could make taxonomy terms use the ConfigStorageController and use machine names for taxonomy terms. So maybe we should use string here. On the other hand the actual data is an integer, so I *think* it is correct to use integer.
I am (tentatively) marking this RTBC, and, thus, relaying this question to the core committers.
Comment #14
webchickCommitted to 8.x, thanks! Will push once testbot's caught up a bit.