Commit graph

14 commits

Author SHA1 Message Date
Douglas Barbosa Alexandre
2067f677df
Fix N+1s queries while loading users 2019-08-19 17:35:46 -03:00
Camil Staps
d4078b535c
Fix public/private starrers counts in special cases 2019-08-07 20:49:37 +02:00
Camil Staps
e726ed5e12
Handle reviewer comments on !24690 2019-08-07 20:49:37 +02:00
Camil Staps
1289efcc62
Remove postgres-specific SQL from UsersStarProject 2019-08-07 20:49:17 +02:00
Camil Staps
e8bdcdf0f8
Expose time since starring on project/:id/starrers API endpoint; exclude private profiles here as well 2019-08-07 20:49:16 +02:00
Camil Staps
50f5f2e8ae
Remove private profiles from starrers view of projects 2019-08-07 20:49:16 +02:00
Camil Staps
6baff6504b
Change sorting options for starrers: name (asc/desc), most/least recent star 2019-08-07 20:49:14 +02:00
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
gfyoung
50abbd3e53 Enable frozen string in app/models/*.rb
Partially addresses #47424.
2018-07-26 16:55:41 -07:00
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: #17382
2016-05-09 18:00:28 +02:00
Gabriel Mazetto
82e916b0f2 Touch project when toggling stars to update cache 2015-12-03 16:08:08 -02:00
Dmitriy Zaporozhets
92deb451da
Annotate models
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-25 12:25:02 +03:00
Ciro Santilli
9b5c7a4d60 Add star count, view logic, more tests. 2014-07-17 22:47:16 +02:00
Ciro Santilli
714f7201d3 Add project stars. 2014-07-17 22:47:16 +02:00