kikito
ddc8097e7d
adds feature tests for the descendant comment sorting
2015-10-30 20:28:06 +01:00
kikito
0cf592af71
Fixes two issues in comment_tree
...
* The descendants list for a comment was not being built correctly
* The root comments must be ordered “newest first”, but their
descendants must be ordered “newest last”
2015-10-30 20:06:36 +01:00
kikito
60b3c65b05
Refactor comment tree calculation using a PORO
2015-10-30 17:00:32 +01:00
kikito
bfd89ed15a
Adds current order to the comments cache in proposals and debates
2015-10-29 17:36:50 +01:00
kikito
50fdd005a4
Implements comment sorting in proposals and debates
2015-10-28 18:40:32 +01:00
kikito
26a9ca58cd
Fixes failing tests which failed due to a new form existing now
2015-10-28 17:35:59 +01:00
kikito
d6396b38b6
Adds missing comments order in management controller
2015-10-28 17:34:51 +01:00
kikito
a7daf0108b
sorts comments by creation date after sorting by confidence_score
2015-10-28 17:34:02 +01:00
kikito
b2918621ab
Refactors in children count when rendering comments
2015-10-28 17:33:24 +01:00
kikito
4aa364a561
Adds a rake task to calculate the confidence score of all the comments in the system
2015-10-28 17:23:04 +01:00
kikito
f5d9ea4357
adds confidence_score capacity to the comment model
2015-10-28 16:25:35 +01:00
kikito
da19d4d773
replace most_voted by confidence_score in comment views
2015-10-28 16:02:40 +01:00
kikito
094ec09576
Adds migration for comment.confidence_score
2015-10-28 16:00:34 +01:00
kikito
e4bfc72649
Refactors design of comments order selector into a partial with i18n
2015-10-28 15:48:48 +01:00
Alberto Garcia Cabeza
82eb0bd902
Adds comments filter for debates and proposals
2015-10-28 13:28:37 +01:00
Juanjo Bazán
f917c21c2a
Merge pull request #644 from Serabe/feature/refactor-comment-body-classes
...
Refactor comment body
2015-10-28 10:06:49 +01:00
Sergio Arbeo
52de028be6
Add helper tests
2015-10-28 00:39:57 +01:00
Raimond Garcia
e5e1191bfd
Merge pull request #650 from AyuntamientoMadrid/verification-code
...
Check letter verification codes as integers
2015-10-27 19:24:38 +01:00
Juanjo Bazán
cf4f9945e8
checks letter verification code as integers
2015-10-27 19:15:01 +01:00
Juanjo Bazán
caf2096165
Merge pull request #649 from AyuntamientoMadrid/dependencies
...
updates dependencies
2015-10-27 18:58:29 +01:00
rgarcia
da4ba8b628
updates dependencies
2015-10-27 18:49:34 +01:00
Juanjo Bazán
5a866740a1
Merge pull request #647 from Serabe/feature/update-comment-count
...
Update comments count when commenting on a debate or proposal
2015-10-27 13:44:17 +01:00
Juanjo Bazán
bd4168ef75
changes generation of letter verification code
...
to keep generating six digit numbers but avoid starting with zero because can led to errors when sent to users.
2015-10-27 13:32:38 +01:00
Sergio Arbeo
12ec1fe6f6
Update comments count when commenting on a debate or proposal
2015-10-27 01:02:39 +01:00
Sergio Arbeo
4e7493c75c
Refactor comment body
...
Refactor the body of the comment to use a couple of helpers instead of a long
list of `if`s in the html.
2015-10-26 14:51:34 +01:00
Juanjo Bazán
912deb38b2
Merge pull request #643 from Serabe/feature/paragraphs-in-comments
...
Add paragraphs to comments
2015-10-26 11:44:56 +01:00
Juanjo Bazán
301c03aa95
updates dependencies
2015-10-26 11:39:14 +01:00
Sergio Arbeo
fe55c0bdc2
Fix feature tests
2015-10-26 01:35:21 +01:00
Sergio Arbeo
3013d13b38
Add paragraphs to comments
...
Fix #600
2015-10-26 01:25:53 +01:00
Raimond Garcia
3ef5562f1a
Merge pull request #641 from AyuntamientoMadrid/management-polishing
...
Management polishing
2015-10-24 15:02:58 +02:00
Juanjo Bazán
f9bc89f953
adds spec for management localization
2015-10-23 14:22:08 +02:00
Juanjo Bazán
510d85cf97
unifies session key
2015-10-23 14:05:23 +02:00
Juanjo Bazán
bdb9e1a45e
adds spec for managed user info in management
2015-10-23 14:00:00 +02:00
Juanjo Bazán
97dcd02750
adds spec for management's managed user logout
2015-10-23 13:48:50 +02:00
Juanjo Bazán
f1bc7af462
makes manager logout to remove session user data
2015-10-23 13:37:19 +02:00
Juanjo Bazán
854499b135
adds localization to management
2015-10-23 13:36:43 +02:00
Juanjo Bazán
b672f32604
Merge pull request #639 from AyuntamientoMadrid/changes_text
...
Changes texts on error verification and faqs page
2015-10-23 13:19:32 +02:00
Juanjo Bazán
b5c1f4f237
removes uri parsing in favor of current_path
2015-10-23 13:19:03 +02:00
Juanjo Bazán
5ee95a7b5b
adds spec for managed_user
2015-10-23 13:17:03 +02:00
Enrique García
103afc9dc2
Merge pull request #640 from AyuntamientoMadrid/fix-random-test-fails
...
deactivating randomly failing scenario which required clicking twice in the same button
2015-10-23 13:11:53 +02:00
kikito
314dabc2e4
deactivating randomly failing scenario which required clicking twice in the same button
2015-10-23 13:06:00 +02:00
Enrique García
dc93866a77
Merge pull request #638 from AyuntamientoMadrid/fix-random-test-fails
...
fixes some random test failures
2015-10-23 12:58:46 +02:00
Juanjo Bazán
2a286c6b33
shows proposal view inside management layout
2015-10-23 12:56:09 +02:00
kikito
2bfd012369
fixes some random test failures
2015-10-23 12:49:51 +02:00
Alberto Garcia Cabeza
2cbfde8f66
Changes texts on error verification and faqs page
2015-10-23 12:47:04 +02:00
kikito
ac1507e85e
Fixes error when signing up new users. Fixes #624
2015-10-23 12:09:45 +02:00
Juanjo Bazán
3802bc78b5
removes comments
...
This controller is no longer used in /management
2015-10-23 11:22:23 +02:00
Juanjo Bazán
f4e9572464
shows 'choose options' text only when needed
2015-10-23 11:08:29 +02:00
Raimond Garcia
beeb396537
Merge pull request #637 from AyuntamientoMadrid/improvements_proposals
...
Changes link on welcome page
2015-10-22 14:18:59 +02:00
Alberto Garcia Cabeza
18eb03654d
Changes link on welcome page
2015-10-22 14:06:53 +02:00