Commit Graph

32929 Commits

Author SHA1 Message Date
8c07c272f2 make rubocop happy. 2019-05-09 05:25:44 +05:30
87cd4701b8 FEATURE: option to skip posts with ignored missing uploads 2019-05-09 05:11:15 +05:30
7c0cb59741 DEV: Skip new JS flaky tests 2019-05-08 18:17:49 -03:00
9c606dd99a FIX: Return error if new topic category not found
If creating a topic via the api as an admin and the category you specify
cannot be found an error will now be returned instead of just creating
the topic with no category. This will prevent accidental public topic
creation originally intended for a private category.
2019-05-08 15:02:00 -06:00
a92c925378 Use faster Brotli compression for non-default locale files 2019-05-08 14:55:24 -04:00
d9ab722d05 Revert "Revert "PERF: Skip compressing locales for faster rebuilds (#7501)" (#7502)"
This reverts commit 6ea811c923c2d96e4d71332c300422653909d890.
2019-05-08 14:55:06 -04:00
e6cfc584d0 Revert "FIX: frozen string exception (#7506)"
This reverts commit c4b7fb2754555bb2b68113897271535e0f9aff58.
2019-05-08 17:27:09 +02:00
497c0ba418 Revert "FIX: frozen string exception (#7505)"
This reverts commit 2938e3f03394a5b7c23efb44ade88d360c7a7f7b.
2019-05-08 17:27:03 +02:00
24ca074f3f FIX: short description title on client side when empty description
follow-up 77af097c
2019-05-08 17:07:12 +02:00
e84531a6a6 FIX: Correctly clear theme stylesheet cache when changing color scheme 2019-05-08 16:02:55 +01:00
54c2f24ee9 REFACTOR: composer model (#7499) 2019-05-08 16:53:12 +02:00
2938e3f033 FIX: frozen string exception (#7505)
Initial backtrace:

```
/var/www/discourse/app/mailers/user_notifications.rb:554:in `send_notification_email'
/var/www/discourse/app/mailers/user_notifications.rb:459:in `notification_email'
/var/www/discourse/app/mailers/user_notifications.rb:318:in `user_private_message'
```

* this might fail too
2019-05-08 16:52:38 +02:00
a4eb523af6 Track Discourse user agent pageviews as crawler
Since 5bfe051e, Discourse user agents are marked as non-crawlers (to avoid accidental blacklisting). This makes sure pageviews for these agents are tracked as crawler hits.
2019-05-08 10:38:55 -04:00
4aaee7ee35 REFACTOR: change-timestamp controller (#7498) 2019-05-08 16:26:51 +02:00
c4b7fb2754 FIX: frozen string exception (#7506)
Initial backtrace:

```
/var/www/discourse/app/models/incoming_domain.rb:29:in `to_url'
/var/www/discourse/app/models/incoming_link.rb:83:in `referer'
/var/www/discourse/app/models/incoming_link.rb:106:in `referer_valid'
```
2019-05-08 16:25:54 +02:00
b409dab77f Rename flags_default_topics to reviewable_default_topics
This functionality regressed with the reviewable update. I took the
opporunity to rename it when fixing it for clarity.
2019-05-08 10:07:10 -04:00
8f2c442435 Fix tests 2019-05-08 09:58:47 -04:00
5bfe051eb9 Mark discourse user-agent as non-crawler 2019-05-08 09:45:25 -04:00
77af097ce0 FIX: add short description to title on client side 2019-05-08 15:03:33 +02:00
1569cf85df UX: better permalink feature description/warning. 2019-05-08 18:31:38 +05:30
ebc5888c95 Prefabricated trust_level_4 2019-05-08 08:57:07 -04:00
1d0565eca2 Prefabricated admin at the top level 2019-05-08 08:57:07 -04:00
cef14d81ac Prefabricated moderator at the top level 2019-05-08 08:57:07 -04:00
a473a56dc2 Prefabricated user at the top level 2019-05-08 08:57:07 -04:00
73f25311fa Prefabricated post by user 2019-05-08 08:54:37 -04:00
0578809460 Prefabricate trust_level_4 2019-05-08 08:54:37 -04:00
f984c1740f Use prefabricated user 2019-05-08 08:54:37 -04:00
86372a94d5 Prefabricated moderator at the top level 2019-05-08 08:54:37 -04:00
e3c09c666b Prefabricated admin 2019-05-08 08:54:37 -04:00
b717e23ceb FIX: Dynamically adjust scale when rendering wizard canvases
This was a typo in fd0de64
2019-05-08 13:14:28 +01:00
24346e4612 strengthen warning around crawler whitelist 2019-05-08 04:10:02 -07:00
0edf012dd9 Merge branch 'master' of github.com:discourse/discourse 2019-05-08 11:50:50 +02:00
6efc5dd202 DEV: Fix lint. 2019-05-08 12:07:52 +03:00
861023f0d6 FIX: Skip attachments in click track. 2019-05-08 11:55:31 +03:00
f530048973 Fix broken spec in 405ba00 take 2. 2019-05-08 16:07:14 +08:00
f04518fdf9 DEV: Reduce number of jobs enqueued.
Apply code review suggestion from
405ba00c08a86778a7baf28e93388201162a5347.
2019-05-08 15:58:08 +08:00
ba6904bb27 Fix broken spec in 405ba00c08a86778a7baf28e93388201162a5347. 2019-05-08 15:45:25 +08:00
c72f16d927 Follow up to 329969ea20296b74b77e8e568e63f635cefa7b3a. 2019-05-08 15:36:12 +08:00
405ba00c08 FEATURE: Create notifications on wiki edits for watching users.
* Moves creation of notification into background job.
2019-05-08 15:31:10 +08:00
46ea69a73c UX: Initialize client side category model with right search_priority.
This is strictly a UX change since the default value of the column is 0.
2019-05-08 14:16:20 +08:00
d6452963cd Revert "Revert "FIX: simpler w function check (#7496)""
This reverts commit 0c0d05e8f2163336dc0306f15f5a942014a13177.
2019-05-08 08:14:09 +02:00
6ea811c923 Revert "PERF: Skip compressing locales for faster rebuilds (#7501)" (#7502) 2019-05-08 07:54:21 +02:00
0c0d05e8f2 Revert "FIX: simpler w function check (#7496)"
This reverts commit 25703117188747e4576350961b83247d1a04c1ef.
2019-05-08 07:19:23 +02:00
22d6203eb7 DEV: Use moment-timezone with 10-year range data
We do not need to use the full timezone dataset (it is a 950kb file!), only previous/next 5 years should suffice.
2019-05-07 23:42:49 -04:00
5c0bb29461 DEV: re-enable compression for node asset compilation
#b9d82818 makes enormous improvements to our bootstrap time, however going
to still keep compress for now despite the cost and watch it for a few weeks
2019-05-08 10:24:57 +10:00
b9d8281818 PERF: Skip compressing locales for faster rebuilds (#7501)
* Do not brotli all locales in precompile

* Try without gzip

* uglify without compressing, always gzip

* skip uglify for unused locales

* FIX: Uglifier needs harmony for ES6 compatibility

* Use node uglifier if available

* Minor refactor
2019-05-08 10:22:19 +10:00
77f9fff41e DEV: correct flaky test
Hardcoding the number 1 into a test means that the test may fail if topic_id
1 is somehow seeded

This ensures we are always talking about a topic that does not exist
2019-05-08 09:31:47 +10:00
d4638ebf69 remove unnecessary cmd line step in cloud setup 2019-05-07 14:53:53 -07:00
5af7c90bab FEATURE: Hide Reviewable scores, change score filter to Priority
We found score hard to understand. It is still there behind the scenes
for sorting purposes, but it is no longer shown.

You can now filter by minimum priority (low, med, high) instead of
score.
2019-05-07 14:05:23 -04:00
5b5b5a5931 FIX: return an error if a user tries to whisper
This commit fixes a bug where a user creates a whisper post via the api
but is posted as a regular message because they don't have access to
whisper. Now a 403 unauthorized will be returned instead of the whisper
param just being ignored for regular users. Staff users should not be
affected by this change.

https://meta.discourse.org/t/a-whisper-is-posted-as-a-message-if-the-user-is-not-staff-moderator-admin-when-using-the-api/116601
2019-05-07 11:42:26 -06:00