Martin Brennan
64ba5b1d21
FIX: Group SMTP email improvements ( #11633 )
...
Fixes a rare race condition causing the `Imap::Sync` class to create an incoming email and associated post/topic, which then kicks off the PostAlerter to notify others in the PM about a reply in the topic, but for the OP which is not necessary (because the person emailing the IMAP inbox already knows about the OP). Basically, we should never be sending the group SMTP email for the first post in a topic.
Also in this PR:
* Custom attribute accessors for the to/from/cc addresses on `IncomingEmail`, to parse them from an array to a joined string so the logic for this is only in one place.
* Store extra detail against the `IncomingEmail` created in `GroupSmtpMailer`
* regex test Mail header Reply-To as string instead of Field, which fixes `warning: deprecated Object#=~ is called on Mail::Field; it always returns nil`
* Add DEBUG_IMAP to log all IMAP logs as warnings for easier debugging
* Changed the Rails logging to `ImapSyncLog` in the `GroupSmtpMailer`
2021-01-05 15:32:04 +10:00
Rafael dos Santos Silva
4f72830eb0
Update minimum required software versions ( #11617 )
...
This matches what we are using in the bundled image
2021-01-05 00:00:14 -03:00
Jeff Atwood
3a0ea9ef22
remove anon download attachment warning ( #11632 )
...
.. as it is no longer applicable for the most part
2021-01-05 08:02:41 +05:30
Jeff Atwood
762eadb9b8
Update server.en.yml -- minor copyedit ( #11631 )
...
* Update server.en.yml
* Fix the build
Co-authored-by: Arpit Jalan <arpit@techapj.com>
2021-01-05 08:02:02 +05:30
dependabot[bot]
0e04f8ac39
Build(deps-dev): Bump simplecov from 0.21.0 to 0.21.1 ( #11630 )
...
Bumps [simplecov](https://github.com/simplecov-ruby/simplecov ) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases )
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md )
- [Commits](https://github.com/simplecov-ruby/simplecov/compare/v0.21.0...v0.21.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 23:58:06 +01:00
Osama Sayegh
558e9dd310
FIX: Inline Onebox should use encoding from Content-Type header when present ( #11625 )
...
* FIX: Inline onebox should use encoding from Content-Type header when present
* Use Regexp.last_match(1)
Signed-off-by: OsamaSayegh <asooomaasoooma90@gmail.com>
2021-01-04 22:32:08 +03:00
Jarek Radosz
6a9ec7c65d
Revert "Build(deps): Bump i18n from 1.8.5 to 1.8.6 ( #11621 )" ( #11624 )
...
This reverts commit ff54d3a024
.
2021-01-04 13:44:11 +01:00
dependabot[bot]
a6bed23d85
Build(deps): Bump mini_sql from 0.3 to 1.0.1 ( #11616 )
...
Bumps [mini_sql](https://github.com/discourse/mini_sql ) from 0.3 to 1.0.1.
- [Release notes](https://github.com/discourse/mini_sql/releases )
- [Changelog](https://github.com/discourse/mini_sql/blob/master/CHANGELOG )
- [Commits](https://github.com/discourse/mini_sql/compare/v0.3...v1.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 13:09:38 +01:00
dependabot[bot]
9040bb6bd0
Build(deps): Bump faraday from 1.2.0 to 1.3.0 ( #11614 )
...
Bumps [faraday](https://github.com/lostisland/faraday ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/lostisland/faraday/releases )
- [Changelog](https://github.com/lostisland/faraday/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lostisland/faraday/compare/v1.2.0...v1.3.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:36:22 +01:00
dependabot[bot]
c3bee06ed3
Build(deps-dev): Bump listen from 3.3.3 to 3.4.0 ( #11615 )
...
Bumps [listen](https://github.com/guard/listen ) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/guard/listen/releases )
- [Commits](https://github.com/guard/listen/compare/v3.3.3...v3.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:34:03 +01:00
dependabot[bot]
cb0fa94509
Build(deps): Bump rubocop-ast from 1.3.0 to 1.4.0 ( #11620 )
...
Bumps [rubocop-ast](https://github.com/rubocop-hq/rubocop-ast ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-ast/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-ast/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-ast/compare/v1.3.0...v1.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:33:19 +01:00
Gerhard Schlager
fc9155f3ee
DEV: Lint MessageFormat strings to prevent usage of "one {foo 1 bar}" ( #11608 )
...
Follow-up to 6b53f26f
2021-01-04 12:29:20 +01:00
dependabot[bot]
ff54d3a024
Build(deps): Bump i18n from 1.8.5 to 1.8.6 ( #11621 )
...
Bumps [i18n](https://github.com/ruby-i18n/i18n ) from 1.8.5 to 1.8.6.
- [Release notes](https://github.com/ruby-i18n/i18n/releases )
- [Changelog](https://github.com/ruby-i18n/i18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ruby-i18n/i18n/compare/v1.8.5...v1.8.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:12:48 +01:00
dependabot[bot]
225778e22f
Build(deps-dev): Bump simplecov from 0.20.0 to 0.21.0 ( #11619 )
...
Bumps [simplecov](https://github.com/simplecov-ruby/simplecov ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases )
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md )
- [Commits](https://github.com/simplecov-ruby/simplecov/compare/v0.20.0...v0.21.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:11:53 +01:00
dependabot[bot]
d824682022
Build(deps): Bump ruby-progressbar from 1.10.1 to 1.11.0 ( #11613 )
...
Bumps [ruby-progressbar](https://github.com/jfelchner/ruby-progressbar ) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/jfelchner/ruby-progressbar/releases )
- [Changelog](https://github.com/jfelchner/ruby-progressbar/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jfelchner/ruby-progressbar/compare/releases/v1.10.1...releases/v1.11.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 12:11:06 +01:00
Joffrey JAFFEUX
7cf46b290d
FIX: prevents autocompoete of username to appear on right ( #11623 )
2021-01-04 10:36:54 +01:00
Joffrey JAFFEUX
258888b7c4
FIX: ensures defined expired_in is passed from write to write_entry ( #11622 )
...
This commit also makes `Cache#namespace` readable to help writing tests easier and make them more robust.
2021-01-04 10:34:44 +01:00
Joffrey JAFFEUX
1405b6859d
DEV: uses popper for autocomplete ( #11201 )
2021-01-04 09:55:47 +01:00
Roman Rizzi
024d91410d
FIX: Correctly set scroll position when viewing a tag's topic list. ( #11612 )
...
Follows up #11496 . The scroll position was not updated when scrolling up.
2020-12-31 15:40:42 -03:00
Mark VanLandingham
836cbfe7ae
UX: Move do not disturb to profile panel ( #11592 )
2020-12-31 08:39:06 -06:00
Joffrey JAFFEUX
e4dcf93238
UX: text overflow user-{primary,secondary}-navigation ( #11604 )
2020-12-30 21:34:27 +01:00
Penar Musaraj
303f229e98
DEV: Use indexes when importing SCSS from a folder ( #11591 )
...
By default, SCSS does not support globbing. This removes our magic and uses index files to import all files in a folder.
2020-12-30 15:29:10 -05:00
David Taylor
13e39d8b9f
PERF: Improve cook_url performance for topic thumbnails ( #11609 )
...
- Only initialize the S3Helper when needed
- Skip initializing the S3Helper for S3Store#cdn_url
- Allow cook_url to be passed a `local` hint to skip unnecessary checks
2020-12-30 18:13:13 +00:00
Sam
1cd6ff15dc
PERF: optimize homepage and topic performance ( #11607 )
...
These are a few small tweaks that slightly improve performance.
- we omitted 1 query from the post guardian which could cause an N+1
- cook_url has been sped up a bit
- url helper avoids re-creating sets for no reason
2020-12-30 13:08:02 +00:00
Sam
e0c952290b
FIX: increase inventory lag for s3 to 2 days ( #11606 )
...
Inventory on S3 always lagged, over the past few weeks we are noticing that
1 day of lag is not enough.
We are increasing this to 2, to ensure that we do not get false positive
reports.
2020-12-30 16:05:42 +11:00
Gerhard Schlager
6b53f26fc0
DEV: Lint MessageFormat strings to prevent usage of "one {1 foo}" ( #11605 )
2020-12-29 21:42:47 +01:00
Joffrey JAFFEUX
8af6e72675
FIX: ensures recurring works when setting a start date in future ( #11587 )
2020-12-29 20:11:18 +01:00
Discourse Translator Bot
09f9d4b281
Update translations ( #11601 )
2020-12-29 19:44:53 +01:00
Rafael dos Santos Silva
8da0b4979b
FIX: S3 CDN warning was showing wrong warning message ( #11603 )
2020-12-29 14:09:55 -03:00
Sam
53f4d54f23
PERF: add indexes to speed up profile pages ( #11598 )
...
These 2 indexes optimise performance on profile pages.
The summary page displays:
1. A list of "Top Link" - links sorted by number of clicks posted by user
2. A list of "Top Replies" - replies made by a user that go the most hearts
These two areas could devolve into full index or table scans, new indexes are there to avoid this cost on large dbs
One minor downside is that storage requirements go a tiny bit up to maintain the new indexes
2020-12-29 15:54:05 +11:00
Arpit Jalan
357d698557
DEV: add support for macOS in bundler ( #11600 )
...
see: 39ba1ae2b5
2020-12-29 15:39:50 +11:00
Sam
39ba1ae2b5
DEV: added platform support to bundler ( #11599 )
...
see: https://bundler.io/blog/2020/12/09/bundler-v2-2.html
New version of bundler includes explicit callouts for each platform supported
This means we need to bundle on all our supported platforms, the number should be fairly low as x86 linux covers most
2020-12-29 09:42:30 +05:30
dependabot[bot]
2092493ced
DEV: Bump crack from 0.4.4 to 0.4.5 ( #11579 )
...
Bumps [crack](https://github.com/jnunemaker/crack ) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/jnunemaker/crack/releases )
- [Changelog](https://github.com/jnunemaker/crack/blob/master/History )
- [Commits](https://github.com/jnunemaker/crack/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 13:57:30 +11:00
Sam
c3fedae73a
DEV: update rack-mini-profiler ( #11597 )
...
Included support for flamegraphs using speedscope!
2020-12-29 13:54:41 +11:00
dependabot[bot]
5a0c8f2b34
Build(deps): Bump unicorn from 5.7.0 to 5.8.0 ( #11576 )
...
Bumps [unicorn](https://yhbt.net/unicorn/ ) from 5.7.0 to 5.8.0.
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 23:11:59 +01:00
dependabot[bot]
491119e709
Build(deps): Bump rubocop from 1.6.1 to 1.7.0 ( #11594 )
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v1.6.1...v1.7.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 23:08:01 +01:00
dependabot[bot]
e3823504cb
Build(deps): Bump regexp_parser from 2.0.1 to 2.0.3 ( #11596 )
...
Bumps [regexp_parser](https://github.com/ammar/regexp_parser ) from 2.0.1 to 2.0.3.
- [Release notes](https://github.com/ammar/regexp_parser/releases )
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.0.1...v2.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 22:28:11 +01:00
dependabot[bot]
4890c3ad1c
Build(deps): Bump chunky_png from 1.3.15 to 1.4.0 ( #11593 )
...
Bumps [chunky_png](https://github.com/wvanbergen/chunky_png ) from 1.3.15 to 1.4.0.
- [Release notes](https://github.com/wvanbergen/chunky_png/releases )
- [Changelog](https://github.com/wvanbergen/chunky_png/blob/master/CHANGELOG.rdoc )
- [Commits](https://github.com/wvanbergen/chunky_png/compare/v1.3.15...v1.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 22:27:31 +01:00
dependabot[bot]
6a72fe4eda
Build(deps-dev): Bump binding_of_caller from 0.8.0 to 1.0.0 ( #11595 )
...
Bumps [binding_of_caller](https://github.com/banister/binding_of_caller ) from 0.8.0 to 1.0.0.
- [Release notes](https://github.com/banister/binding_of_caller/releases )
- [Commits](https://github.com/banister/binding_of_caller/compare/v0.8.0...v1.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 22:27:06 +01:00
Penar Musaraj
79fe97c2bc
DEV: Fix precompile SCSS specs ( #11590 )
2020-12-28 15:28:37 -05:00
Penar Musaraj
7f1bafcf63
DEV: Deprecate SCSS variable overrides in plugins ( #11589 )
2020-12-28 15:28:11 -05:00
dependabot[bot]
83841fef8a
Build(deps): Bump debug_inspector from 0.0.3 to 1.0.0 ( #11588 )
...
Bumps [debug_inspector](https://github.com/banister/debug_inspector ) from 0.0.3 to 1.0.0.
- [Release notes](https://github.com/banister/debug_inspector/releases )
- [Commits](https://github.com/banister/debug_inspector/compare/v0.0.3...v1.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 18:12:32 +01:00
dependabot[bot]
66bd5bccbc
Build(deps): Bump oj from 3.10.17 to 3.10.18 ( #11582 )
...
Bumps [oj](https://github.com/ohler55/oj ) from 3.10.17 to 3.10.18.
- [Release notes](https://github.com/ohler55/oj/releases )
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/ohler55/oj/compare/v3.10.17...v3.10.18 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 17:46:18 +01:00
dependabot[bot]
57501ba496
Build(deps): Bump rqrcode from 1.1.2 to 1.2.0 ( #11586 )
...
Bumps [rqrcode](https://github.com/whomwah/rqrcode ) from 1.1.2 to 1.2.0.
- [Release notes](https://github.com/whomwah/rqrcode/releases )
- [Commits](https://github.com/whomwah/rqrcode/commits/v1.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 17:46:04 +01:00
dependabot[bot]
6168cc0644
Build(deps): Bump rspec-expectations from 3.10.0 to 3.10.1 ( #11580 )
...
Bumps [rspec-expectations](https://github.com/rspec/rspec-expectations ) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/rspec/rspec-expectations/releases )
- [Changelog](https://github.com/rspec/rspec-expectations/blob/main/Changelog.md )
- [Commits](https://github.com/rspec/rspec-expectations/compare/v3.10.0...v3.10.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 17:45:51 +01:00
dependabot[bot]
7ad397cf4d
Build(deps-dev): Bump rspec-rails from 4.0.1 to 4.0.2 ( #11583 )
...
Bumps [rspec-rails](https://github.com/rspec/rspec-rails ) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/rspec/rspec-rails/releases )
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md )
- [Commits](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 17:45:41 +01:00
dependabot[bot]
e7a1bb959f
Build(deps): Bump rspec-core from 3.10.0 to 3.10.1 ( #11585 )
...
Bumps [rspec-core](https://github.com/rspec/rspec-core ) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/rspec/rspec-core/releases )
- [Changelog](https://github.com/rspec/rspec-core/blob/main/Changelog.md )
- [Commits](https://github.com/rspec/rspec-core/compare/v3.10.0...v3.10.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-28 17:19:33 +01:00
Rafael dos Santos Silva
330ef3700f
FEATURE: Add dash warning for using S3 without CDN ( #11561 )
...
Over the years we had some admins complaining that most of their costs
running Discourse is on S3 uploads.
That only happens when they are using S3 without a CDN, which is widely
considered a bad pratice for public websites, as egress bandwidth can
get expensive quite fast.
Related:
https://meta.discourse.org/t/download-avatars-locally-from-s3-shutting-down-s3-in-my-site/174001/3?u=falco
https://meta.discourse.org/t/use-webtorrent-to-load-media-objects/155873/2?u=falco
2020-12-28 12:43:48 -03:00
Jeff Atwood
c92415d402
enhance TL2 congratulations PM ( #11577 )
...
add some detail to the TL2 congratulatory PM
2020-12-24 15:40:45 -08:00
Arpit Jalan
0f005d0e86
Bump onebox gem to 2.2.1 ( #11575 )
...
- allow oneboxes with title and image
2020-12-24 10:24:59 +05:30