Closed (fixed)
Project:
MongoDB
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Mar 2014 at 12:05 UTC
Updated:
11 Nov 2014 at 14:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
skipyT commentedComment #2
skipyT commentedComment #3
skipyT commentedI added a service to store the user data, it is just a raw rewrite of the database implementation.
We should consider to move this directly in the user document perhaps.
Comment #4
slashrsm commented- we need to create indexes for this queries to perform well
- I agree we should include this into user document
- needs tests!
Comment #5
marcingy commentedYes I know php 5.4 allows short form arrays but coding standards still say use array() structure https://drupal.org/coding-standards#array
Comment #6
skipyT commentedThanks for the review. We asked chx and he told us we can use short arrays, look here also: https://drupal.org/node/2135291
Comment #7
slashrsm commentedIf he said it then I guess we know what are the rules :)
Comment #8
skipyT commentedI put back to needs review then.
Comment #9
slashrsm commentedTests...
Comment #10
marcingy commentedThe issue you refer too is actually needs work and hence not yet a coding standard ;)
Comment #11
skipyT commentedYes, I know, but I don't see the reason why we should not use the short arrays. The code is more readable, php 5.4 is already a core requirements and I'm pretty sure that the coding standards for Drupal 8 will be updated.
And chx confirmed also I can use short array syntax. We already have in the mongodb module code committed with the short array syntax. Check the routing services.
Comment #12
skipyT commented@chx: we already have this service in the mongodb module and we can close this issue. do you agree? or we modify it to ask for some tests?