Commit Graph

31470 Commits

Author SHA1 Message Date
d96d561180 Fix defect db migration
Follow-up to fc999c04b34edb93cb3538718bcd22d295509a4a
2019-02-08 16:02:33 +01:00
7aecd3c2f5 Update app/services/user_silencer.rb
Co-Authored-By: eviltrout <robin.ward@gmail.com>
2019-02-08 08:50:50 -05:00
bc3efab816 FIX: When disagreeing with a flag that silenced a user, unsilence them
Previously it would unhide their post but leave them silenced.

This fix also cleans up some of the helper classes to make it easier
to pass extra data to the silencing code (for example, a link to the
post that caused the user to be silenced.)

This patch also refactors the auto_silence specs to avoid using
stubs.
2019-02-08 08:50:50 -05:00
44d9bc12c9 FEATURE: color-palettes component (#6992) 2019-02-08 14:01:14 +01:00
babd80dfd1 FIX: Allow subexpressions in raw handlebars helpers
Helpers registered via `registerUnbound` did not receive parameters if they were subexpressions.
For example: `{{helper1 key=(helper2 value)}}`
2019-02-08 12:58:10 +00:00
95b5c5898e FIX: Prevent duplicate params for raw template theme handlebars helpers 2019-02-08 12:54:00 +00:00
e3324737ee FIX: position invite footer button before archive (#6990) 2019-02-08 12:21:51 +01:00
e9ec5238fc DEV: Remove ignored columns 2019-02-08 12:12:38 +01:00
8a152566e3 FIX: improves positioning of footer buttons on mobile (#6989) 2019-02-08 12:09:56 +01:00
831d7d2f87 run tests on discourse-code-review (#6988) 2019-02-08 11:39:45 +01:00
e54612c914 fix tests (#6987) 2019-02-08 11:38:15 +01:00
cc496de10e FIX: Remove double quotes from etag value in API response
https://github.com/aws/aws-sdk-ruby/issues/1134
2019-02-08 14:31:19 +05:30
f849169619 UX: Modifications to admin/customize layout 2019-02-07 22:27:35 -05:00
56820a5fa5 PERF: Add text/javascript to NGINX gzip_types 2019-02-07 23:47:42 +00:00
995c87a91e Don't run specs on code-review again 2019-02-07 16:57:05 -05:00
cbedb6a1ac FEATURE: Hidden site setting to always include topic excerpt 2019-02-07 22:45:21 +01:00
2a007bafa2 FEAT: Allow image resize by width or height
`|150x` resizes to 150px wide + auto-height. `x150` resizes to 150px tall and auto-width.

Resize value can be from 1 to 999 (incl. for percentages).
2019-02-07 15:04:39 -05:00
c0ccf21970 FIX: hides topic-footer-mobile-dropdown when no content (#6985) 2019-02-07 18:37:20 +01:00
0e8dbbd8e4 Version bump to v2.3.0.beta2 v2.3.0.beta2 2019-02-07 11:06:17 -05:00
55cc5ab4b8 Update translations 2019-02-07 09:49:57 -05:00
d639cadb7a DEV: Plugin scss errors should break precompile (#6974) 2019-02-07 09:27:42 -05:00
6c195640b9 FEATURE: adds an API to register topic footer buttons 2019-02-07 14:43:33 +01:00
92c52c0724 FEATURE: displays report description when hovering activity metrics (#6983) 2019-02-07 13:33:05 +01:00
c256121833 FIX: add support for style element in SVGs 2019-02-07 12:09:06 +01:00
0c14f0d0a0 UX: Rename color scheme to color palette in UI
The word 'scheme' was very easy to get confused with 'theme', this provides a better distinction.
2019-02-07 11:04:49 +00:00
Sam
19386ec2ea FIX: old migration was loading up invalid model schema
Generally we should never be touching AR objects in migrations, this is
super risky as we may end up with invalid schema cache.

This code from 2013 did it unconditionally. This change amends it so:

1. We only load up schema if we have no choice
2. We flush the cache before and after

This makes this migration far less risky.
2019-02-07 15:16:28 +11:00
1cacfddda4 Prevent usercard badge section from overflowing 2019-02-06 22:39:10 -05:00
984f1d96b0 Add max-width so long badges don't force short badges to truncate 2019-02-06 20:51:54 -05:00
94f8c4ecac UX: Truncate (don't wrap) badges in user cards if the text is long 2019-02-06 20:18:12 -05:00
6c2fe7eaec DEV: Fix lint. 2019-02-06 23:55:05 +02:00
fc4c015bee FEATURE: Shortcut 'g s' goes to first suggested topic 2019-02-07 08:43:07 +11:00
b88aa4a592 FIX: Correctly process {{each}} in raw handlebars templates for themes 2019-02-06 21:09:21 +00:00
56a9f777cb UX: Turn off autocomplete on composer title 2019-02-06 14:37:29 -05:00
ab2c2ea605 FIX: validate Invite email against EmailValidator.email_regex (#6975) 2019-02-06 22:38:06 +05:30
ca03b2ff30 Move SCSS variables for topic post width
This allows them to be re-used by other components, for example the
upcoming review queue.
2019-02-06 11:37:59 -05:00
057d1dc077 UX: disable browser's autocomplete in search menu 2019-02-06 17:06:23 +01:00
f3cfce4a93 FEATURE: Calculate sprite-sheet based on currently active themes (#6973)
Previously there was only one sprite sheet, which always included icons from all themes even if they were disabled
2019-02-06 15:51:23 +00:00
ba9cc83d4c FIX: Destination prefix in S3 inventory configuration is incorrect 2019-02-06 20:51:28 +05:30
381793243e FIX: include error message if the "accept invite" process fails 2019-02-06 19:20:25 +05:30
ff12c4b2d4 FIX: Bucket name is missing in S3 inventory data path 2019-02-06 19:16:08 +05:30
Sam
15857b900a DEV: explicitly require Rails components
`rails/all` includes too much stuff per: https://github.com/rails/rails/blob/master/railties/lib/rails/all.rb

This commit makes it explicit what pieces of Rails Discourse depends on.

Previously the LoadError was protecting us and we were excluding components,
using the Gemfile, this method ensures that even if we add `rails` meta gem
as a dependency only the parts of Rails Discourse uses will be used.
2019-02-06 17:45:48 +11:00
Sam
fe7c10b409 DEV: fix seed-fu require for rails 6 2019-02-06 17:33:36 +11:00
Sam
4cfc201604 DEV: update logster to stable release
This update logster to the stable 2.0.1 release instead of running a pre
release
2019-02-06 16:54:42 +11:00
Sam
448ea663c3 DEV: remove seed-fu pinning from rails master
This pinning should no longer be needed
2019-02-06 16:54:06 +11:00
Sam
0098b3072e DEV: update rack-mini-profiler
This gem update fixes an issue with upcoming Rails 6

(without this fix mini profiler will not work on rails 6 and simply renders
text)
2019-02-06 16:51:45 +11:00
1a72242746 line-height adjustment 2019-02-05 21:44:06 -05:00
a52b2c9625 UX: Moving the create theme buttons, adding buttons to theme index 2019-02-05 21:40:17 -05:00
bdbf77dc38 FIX: Unpause Sidekiq before uploading backup to S3
No need to pause Sidekiq longer than really needed. Uploads to S3 can take a long time.
2019-02-05 21:22:25 +01:00
e7821a63e7 FIX: Users should able check the emails for self 2019-02-05 23:31:19 +05:30
ba724d7f25 FIX: S3 endpoint broke bucket creation in non-default region 2019-02-05 18:17:02 +01:00