Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60721 articles
Browse latest View live

How do I create a whisper post?

$
0
0

@fefrei wrote:

Whispers are a staff-only feature that allows for private discussion between staff members inside a public topic.

Before whisper can be used, they need to be enabled by an administrator by checking enable whispers in site settings.

When enabled, all staff members can create a whisper by starting to create a reply as usual, selecting the :gear: icon in the toolbar and clicking Toggle whisper:

The composer will indicate that the reply is a whisper by showing (whisper) next to the title.

Posts: 3

Participants: 2

Read full topic


Is Discourse using Ruby 2.0?

$
0
0

@arrowcircle wrote:

Hi!
Today I looked at my Discourse installation and after rebuilding app image, somehow decided to check ruby version.

./launcher enter app
ruby -v
ruby 2.0.0p647 (2015-08-18 revision 51631) [x86_64-linux]

It really surprised me, because 2.0 branch is not officially supported anymore.
Am I doing something wrong? Or Discourse really use 2.0 ruby?

I started looking for PosgreSQL version and found 9.3.11. I found 9.5 template, but no info about how to upgrade to it. Is it not complete yet?

Posts: 6

Participants: 3

Read full topic

Possible to decorate ON a widget rather than before or after?

$
0
0

@stevenpslade wrote:

There is the ever useful api.decorateWidget('widget:before', dec => { }) that is perfect for adding elements before or after a widget.

I was wondering if it was possible to decorate on a widget. I want to add some dynamic style (specifically background-color) to div.extra-info-wrapper in the header-topic-info widget.

The color would be from the follow code using the attrs of the widget in question:

const topic = dec.attrs.topic;
const category = topic.get('category');
const catColor = category.get('color');

Thoughts?

Posts: 1

Participants: 1

Read full topic

How many posts are allowed in a private message and topic total?

$
0
0

@LivThePotterhead wrote:

On our forum, an old topic was repeatedly closed after I think 10000 replies, and there were about 20000+ replies.
So is it the same with private messaging?
How many posts can be in each?

Posts: 3

Participants: 2

Read full topic

Code review request for `slackdoor` plugin

$
0
0

@mcwumbly wrote:

Hey there...

I'm looking for some extra pairs of eyes on the plugin I've implemented for this feature:

Allow Slack to unfurl/expand links to “login-required” Discourse instance

Slack posts a request to yourdomain.com/slackdoor over https (assuming your site has it enabled) with an x-www-form-urlencoded body that includes a token, which is generated on their side when you set up the outgoing webook.

token=XXXXXXXXXXXXXXXXXX
team_id=T0001
team_domain=example
channel_id=C2147483705
channel_name=test
timestamp=1355517523.000005
user_id=U2147483697
user_name=Steve
text=googlebot: What is the air-speed velocity of an unladen swallow?
trigger_word=googlebot:

The request can't include an API Key or username, but a required SiteSetting for username determines which user is used to access the topic.

These are all checked before_filter methods in the Controller class:

In order to bypass the default authentication logic, I have overridden these methods in the plugin's controller:

Check out this file for the full plugin: https://github.com/mcwumbly/discourse-slackdoor/blob/master/plugin.rb

Please let me know if you see any issues with this approach... Thanks!

Posts: 1

Participants: 1

Read full topic

Reorganizing the badge page

$
0
0

@jomaxro wrote:

Continuing the discussion from Badge Discussion: Like Ratios + Spending Likes:

Back during the discussion of the new like related badges, @riking brought up how large the community category on the badge page was getting, and suggested adding a few new categories.

@codinghorror made a few quick changes, but even after the badge page redesign, the community category is still huge. Looking at badges on all site (ignoring custom Meta badges), I would like to re-suggest the following new categories:

Posting

Popular Link - Bronze
Nice Post - Bronze
Nice Topic - Bronze
Hot Link - Silver
Good Post - Silver
Good Topic - Silver
Famous Link - Gold
Great Post - Gold
Great Topic - Gold

Likes

Welcome - Bronze
Appreciated - Bronze
Out of Love - Bronze
Thank You - Bronze
Respected - Silver
My Cup Runneth Over - Silver
Gives Back - Silver
Admired - Gold
Crazy in Love - Gold
Empathetic - Gold

Promotion

Promoter - Bronze
Nice Share - Bronze
Campaigner - Silver
Good Share - Silver
Champion - Gold
Great Share - Gold

That would leave the community category to look like:

Community

1 year anniversary - Silver
Tech Support - Silver
Scribe - Gold

Posts: 1

Participants: 1

Read full topic

Unicorns timing out during certain queries

$
0
0

@Nuck wrote:

Hey guys, just got hummingbird.me onto the latest Discourse (w/ Postgres and Redis hosted on infrastructure shared with the rest of our site and just a few client-heavy plugins) but we're having some serious troubles with Unicorns timing out during certain queries. All three servers (web, postgres, redis) are running around 10% CPU and 50-60% RAM, there's plenty of query slots remaining on the postgres server, and the cache hit rates aren't unreasonable (most tables around 99%, with some with more random access like posts hovering around 50%)

Checking the Postgres logs pointed to some pretty hefty queries such as this lovely:

SELECT
a.id,
t.title, a.action_type, a.created_at, t.id topic_id,
t.closed AS topic_closed, t.archived AS topic_archived,
a.user_id AS target_user_id, au.name AS target_name, au.username AS target_username,
coalesce(p.post_number, 1) post_number, p.id as post_id,
p.reply_to_post_number,
pu.username, pu.name, pu.id user_id,
pu.uploaded_avatar_id,
u.username acting_username, u.name acting_name, u.id acting_user_id,
u.uploaded_avatar_id acting_uploaded_avatar_id,
coalesce(p.cooked, p2.cooked) cooked,
CASE WHEN coalesce(p.deleted_at, p2.deleted_at, t.deleted_at) IS NULL THEN false ELSE true END deleted,
p.hidden,
p.post_type,
p.action_code,
p.edit_reason,
t.category_id
FROM user_actions as a
JOIN topics t on t.id = a.target_topic_id
LEFT JOIN posts p on p.id = a.target_post_id
JOIN posts p2 on p2.topic_id = a.target_topic_id and p2.post_number = 1
JOIN users u on u.id = a.acting_user_id
JOIN users pu on pu.id = COALESCE(p.user_id, t.user_id)
JOIN users au on au.id = a.user_id
LEFT JOIN categories c on c.id = t.category_id
WHERE (t.deleted_at is null) AND (p.deleted_at is null and p2.deleted_at is null) AND (NOT COALESCE(p.hidden, false) OR p.user_id = -2) AND (COALESCE(p.post_type, p2.post_type) IN (1,2,3)) AND (t.visible) AND (a.action_type not in (3)) AND (a.action_type <> 14) AND (t.archetype != 'private_message') AND ((c.read_restricted IS NULL OR NOT c.read_restricted)) AND (a.user_id = 48321) AND (a.action_type in (4,5))
ORDER BY a.created_at desc
OFFSET 0
LIMIT 30

Which shows a pretty scary EXPLAIN:

                                                                                          QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=3523.95..3523.96 rows=1 width=622) (actual time=1735.823..1735.836 rows=30 loops=1)
   ->  Sort  (cost=3523.95..3523.96 rows=1 width=622) (actual time=1735.820..1735.829 rows=30 loops=1)
         Sort Key: a.created_at
         Sort Method: top-N heapsort  Memory: 46kB
         ->  Nested Loop  (cost=2.95..3523.94 rows=1 width=622) (actual time=0.231..1735.316 rows=289 loops=1)
               ->  Nested Loop  (cost=2.53..3515.50 rows=1 width=602) (actual time=0.228..1734.421 rows=289 loops=1)
                     ->  Nested Loop  (cost=2.12..3513.57 rows=1 width=582) (actual time=0.224..1733.551 rows=289 loops=1)
                           ->  Nested Loop  (cost=1.70..3506.19 rows=1 width=558) (actual time=0.201..1732.336 rows=289 loops=1)
                                 Join Filter: (COALESCE(p.post_type, p2.post_type) = ANY ('{1,2,3}'::integer[]))
                                 ->  Nested Loop Left Join  (cost=1.27..2873.24 rows=62 width=343) (actual time=0.165..1088.340 rows=289 loops=1)
                                       Filter: ((p.deleted_at IS NULL) AND ((NOT COALESCE(p.hidden, false)) OR (p.user_id = (-2))))
                                       ->  Nested Loop Left Join  (cost=0.84..1804.84 rows=128 width=91) (actual time=0.157..444.363 rows=289 loops=1)
                                             Join Filter: (c.id = t.category_id)
                                             Rows Removed by Join Filter: 6936
                                             Filter: ((c.read_restricted IS NULL) OR (NOT c.read_restricted))
                                             ->  Nested Loop  (cost=0.84..1748.15 rows=145 width=91) (actual time=0.102..441.141 rows=289 loops=1)
                                                   ->  Index Scan using idx_unique_rows on user_actions a  (cost=0.56..522.71 rows=217 width=32) (actual time=0.060..438.432 rows=297 loops=1)
                                                         Index Cond: ((action_type = ANY ('{4,5}'::integer[])) AND (user_id = 32418))
                                                   ->  Index Scan using forum_threads_pkey on topics t  (cost=0.29..5.64 rows=1 width=59) (actual time=0.007..0.008 rows=1 loops=297)
                                                         Index Cond: (id = a.target_topic_id)
                                                         Filter: ((deleted_at IS NULL) AND visible AND ((archetype)::text <> 'private_message'::text))
                                                         Rows Removed by Filter: 0
                                             ->  Materialize  (cost=0.00..2.38 rows=25 width=5) (actual time=0.000..0.005 rows=25 loops=289)
                                                   ->  Seq Scan on categories c  (cost=0.00..2.25 rows=25 width=5) (actual time=0.003..0.031 rows=25 loops=1)
                                       ->  Index Scan using posts_pkey on posts p  (cost=0.43..8.33 rows=1 width=256) (actual time=2.226..2.227 rows=1 loops=289)
                                             Index Cond: (id = a.target_post_id)
                                 ->  Index Scan using index_posts_on_topic_id_and_post_number on posts p2  (cost=0.43..10.17 rows=3 width=227) (actual time=2.226..2.227 rows=1 loops=289)
                                       Index Cond: ((topic_id = t.id) AND (post_number = 1))
                                       Filter: (deleted_at IS NULL)
                           ->  Index Scan using users_pkey on users u  (cost=0.42..7.37 rows=1 width=28) (actual time=0.002..0.003 rows=1 loops=289)
                                 Index Cond: (id = a.acting_user_id)
                     ->  Index Scan using users_pkey on users pu  (cost=0.42..1.92 rows=1 width=28) (actual time=0.001..0.002 rows=1 loops=289)
                           Index Cond: (id = COALESCE(p.user_id, t.user_id))
               ->  Index Scan using users_pkey on users au  (cost=0.42..8.44 rows=1 width=24) (actual time=0.001..0.002 rows=1 loops=289)
                     Index Cond: (id = 48321)
 Planning time: 9.415 ms
 Execution time: 1736.177 ms
(37 rows)

The first time I ran this query through explain, it gave a 20-second execution time :confused: I'm not 100% sure I'm reading this correctly (mostly because it's so absurd it made me question my senses) but is that 7 loops nested?

Any tips? I'm thinking of switching our deploy to Puma because a slow response is better than no-response-and-the-server-dies-resulting-in-other-requests-failing, but I'd rather stay vanilla.

Posts: 4

Participants: 3

Read full topic

Please require the fast_stack gem, note flamegraph is only supported on Ruby 2.0 and above

$
0
0

@DeanMarkTaylor wrote:

I'm currently seeing the message Please require the fast_stack gem, note flamegraph is only supported on Ruby 2.0 and above when rebuilding via:

cd /var/discourse
git pull
./launcher rebuild app

== Seed from /var/www/discourse/db/fixtures/999_topics.rb

I, [2016-05-15T00:54:42.867594 #38]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile'
Please require the fast_stack gem, note flamegraph is only supported on Ruby 2.0 and above
I, [2016-05-15T00:54:57.115158 #1032]  INFO -- : Writing /var/www/discourse/public/assets/vendor-6c83cefb781b3fa325bff76e9ba637bf719260cc7353ee0179cd706e79535999.js

Is the gem fast_stack missing from the base image / Discourse ?

Posts: 2

Participants: 2

Read full topic


Cheap Docker hosting?

$
0
0

@markofthedesert wrote:

Hey folks!

Apologies if this has been covered, I haven't found a clear answer. Admittedly, I am a Docker newb.

I am doing some volunteer work for a non-profit on a shoestring budget with a small user base that really likes this particular software.

I'm hoping to get a little less expensive than dedicated discourse hosting by going for dedicated docker-level hosting. Something that's not /too/ techy for maintenance needs. My goal is to not end up responsible for OS level update and security responsibilities of a service like Digital Ocean long-term. Technical setup is a non-issue as long as I can mostly walk away from it.

Can anyone point me at a provider?

Best,
Mark

Posts: 12

Participants: 8

Read full topic

Twitter share shows Post # and not topic title

$
0
0

@tobiaseigen wrote:

I don't seem to recall this issue in the past - usually when I share a discourse topic via twitter, it will prefill the tweet with the post title. Now it's prefilling with eg Post #1 which is not that meaningful.

Steps to replicate, also here on meta:

  • select the timestamp or :link: to display sharing popup
  • select twitter button
  • see the tweet with post #1 instead of the title of the topic.

Posts: 2

Participants: 2

Read full topic

Amazon onebox still failing on my discourse instance on Digitalocean

$
0
0

@envieme wrote:

Continuing the discussion from Amazon onebox fails on my site, but works here:

I have this problem of Amazon.com, Amazon.fr and Amazon.in not oneboxing on my discourse instance on DO though it works well here on meta.

On searching I found this topic but see there has been a bug fix but it doesn't seem to work in my case. When I do curl to amazon.com it shows 301 redirect and when I do curl to a amazon.com product link it returns blank.

Posts: 1

Participants: 1

Read full topic

Adding a custom intro just for the homepage

Plugin: Admin statistics digest

$
0
0

@erlend_sh wrote:

I've never been good at tracking statistics. I'm not disciplined enough to observe patterns and try to discern ongoing trends. Give me a good infographic though (aka Stats for Dummies) and I'll eat that stuff up like it's :taco: Tuesday.

Imagine every month, you receive an email from Discourse that tells you:

  • You have x more/less visitors than last month. (show overlapping graphs).

  • You have x more/less topics than last month (show overlapping graphs)

  • X topics posted in the last 30 days have no replies. That’s y% of all new topics this month, which is a z% increase/decrease from last month.
    [Click here to view all topics with no replies.]

  • These users joined some time in the past 60-30 days, and look how well they’re doing! (highlight of newly registered users that have stayed active)

  • These are your top non-staff users of the month

  • These formerly very active users are not so active any more. (especially if I’m losing a TL3 user, let me know!)

  • The 5 most active responders in the #support category were: ...

  • Your three most active categories are: Cats (32%), Dogs (15%) and Ferrets (5%)

  • Your retention rate for this month: What would be a good query here?

Most of these might also benefit from a "You have x more/less something than the average of the past year"

If we wanted to get real fancy (best suited for a 2nd iteration) there could even be a basic checklist interface for this, where the admin could check whichever items they wanted reporting on. E.g. if you really don't care about your most active categories, you'd just exclude that from the report.

More stat ideas welcome!

Posts: 4

Participants: 2

Read full topic

Highlight instead of summarize topic

$
0
0

@Pad_Pors wrote:

some suggestion for future of a discussion forum:

in a discussion, good posts with enough information are usually long. but not all the information in a post are useful.

  1. is it possible that one give like to some part of a post, then as a like is given to that part, that part becomes highlighted or bold?

  2. then as parts of post get more and more likes, they become more and more bold.

this way following a thread with lots of replies, may be even easier, as best parts are more highlighted. and i guess it will be little bit more effective than summarizing, as something like a heatmap exists. it's like when one highlights a book:

Posts: 4

Participants: 3

Read full topic

Voice discussion

$
0
0

@Pad_Pors wrote:

a raw idea for far future of a discussion forum:

i'd like to know what will happen if voice recording is also added to a discussion forum? what would be a good way to do that?

simply speaking, it'd be a mess! but there should be a way to organize sounds as well.

any idea?

p.s.: i'm not sure if meta.discourse is a good place for such discussions, pre-apologizes if it's not.

Posts: 2

Participants: 2

Read full topic


What is the difference between New User & Basic User?

Tracking oddity

$
0
0

@ckshen wrote:

Has anyone encountered this oddity with tracking? A user has posted in two threads. In one of threads, the tracking comment is 'You will receive notifications because you posted a reply in the topic.'

On the other thread, instead of the same, it says 'You will receive notification because you are tracking this topic.'

The problem is, for the 2nd thread, replies to her posts aren't notified when she clicks on her user icon.

Anyone encountered something like this? Is there some 'rebuilding' that I need to do to correct the oddity?

Thanks!

Posts: 4

Participants: 3

Read full topic

How can one install a panel with discourse?

$
0
0

@Daffy_Chu wrote:

Hello,
Just now I'm switching from Xenforo to Discourse as of forum software wise. And I have been using a web panel for website and mails called Vestacp (Used to be using cpanel) However, after searching through the forums and found some tutorials regarding running multiple website on the same machine, I still don't quite get it. So here is how I'm doing it as of now.

  1. Install VestaCP with only Apache
  2. Install Docker
  3. Install Discourse
    And here comes my problem. I'm currently following the tutorial of setting up discourse with existing apache server here
    I'm not sure of this part where he stated
    "When you come to edit app.yml, under "## which TCP/IP ports should this container expose?" you want:

"8888:80" # fwd host port 8888 to container port 80 (http)" I'm using the official discourse installing guide of using
./discourse-setup
but when I do that, I don't get a second to edit my app.yml, when I press cancel installation and edit it I don't get to resume the progress. However I have tried while it ask to continue, I stop and edit the file and changed originally 80:80 to 8888:80 but now I'm just stuck on the download. Am I doing this correct?

Does anyone know specifically how to install Discourse with another web panel? Like cpanel or VestaCP.

Thank you for your help
- DC

Posts: 4

Participants: 2

Read full topic

Digest Emails and HTTPS

$
0
0

@micpringle wrote:

Hello!

We've set up Discourse to run over HTTPS, which works just fine. However, we've recently noticed that the digest email embeds HTTP links rather than HTTPS links. I've taken a look through the admin console but can't find a setting that configures this.

Is it possible to set things up so the digest email embeds links using HTTPS instead?

Thanks,

-Mic

Posts: 4

Participants: 2

Read full topic

Out of Memory error while upgrading Discourse

Viewing all 60721 articles
Browse latest View live




Latest Images