Question Answer Plugin

This is a policy that covers all Pavilion plugins.

Sorry for the confusion. What we are saying is any high or critical severity issue identified by the fifth day will be rectified hopefully by the 7th. Then you can update the plugin ONLY and things should work again. The main takeaway is that there may be a small lag involved before a fix is issued, hence the difference in those two numbers (5 versus 7).

If the bug is SO bad that you have to remove the plugin, obviously that will require a rebuild to replace it and Discourse will get updated too. We’ll deal with those occasions when they crop up. Hopefully those will be very unusual.

4 Likes

@mbcahyono @merefield

I am getting this error when installing the plugin from git, please assist.

It seems you’re trying to install it as a theme. This is a plugin, not a theme. Please follow this guide:

5 Likes

It is so awesome to hear! Some questions if you may:

  1. Technically speaking, how should I run the tests branch from production?
  2. You said that this plugin will be rewritten. Is there a plan what is going to change and what is going to be added?

Thank you very much!

  1. It’s optional. We have our own staging site and you can test the plugin here: try.thepavilion.io

However, you could setup your own staging site and test the plugin there if you’d like to.

  1. More like code refactor. No new feature has been added.

Any plans for future? Saw a post about it a while ago on Pavilion. :slight_smile:

@mbcahyono @merefield

Can you please assist, I am getting 502 Bad Gateway error after adding below plugin hook.

hooks:
after_code:

Have you tried to comment this line and rebuild?

how can i default sort all posts on a topic to have the most voted/most liked posts on top, like stackoverflow does? @angus

1 Like

After removing the plugin the site is back to normal, how to fix this issue ? is it not compatible with latest discourse version ?

This is the first time you install any custom plugin? Just tested locally and everything works fine. This is isolated case unless someone else report the same issue.

502 usually means the frontend (Nginx) is running but the backend (Rails server/Unicorn?) is not.

What’s your app.yml looks like?

other plugins are working fine.

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-sitemap.git
          - git clone https://github.com/pmusaraj/discourse-sidebar-blocks.git
            # - git clone https://github.com/paviliondev/discourse-question-answer.git

I really like this suggestion. Will developers consider adding these features to plugins?

2 Likes

Added to my to-do list.

3 Likes

Added to the plugin:

https://github.com/paviliondev/discourse-question-answer/commit/8249bf47a94656b5beacef4e7552f9b2dc86d525

Screenshot:

DeepinScreenshot_select-area_20200703183913

3 Likes

Could you consider to add an “blacklist” tag, which can be used to disable Q&N layout for threads with that tag? (Like you have, for enabling it) :slight_smile:

1 Like

I will see if I can add this feature in the next release (around 5th next month) :slight_smile:

2 Likes

https://github.com/paviliondev/discourse-question-answer/commit/e9af336326569c1ceca4161e466070263f4e4e8e

Now you can also create comment on a question (OP):
https://github.com/paviliondev/discourse-question-answer/commit/d2b1fdc629536f0b0dbe140fa4a0de4677aa640e

Screenshot:

2 Likes

Thanks @mbcahyono :slight_smile: I’ve updated our site, and it works like it should.

I’ve spotted a small bug.

  1. Visit a QnA-formatted topic
  2. Navigate to other topics hereafter
  3. Avatars are now 25px in size, instead of 45px.

Here’s one example:

<img alt="" src="/letter_avatar_proxy/v4/letter/v/ce7236/25.png" title="...removed..." class="avatar" width="25" height="25">

And here’s the default size:

<img alt="" src="/letter_avatar_proxy/v4/letter/v/ce7236/45.png" title="...removed..." class="avatar" width="45" height="45">

(It’s not only limited to the “Letter avatar proxy” avatars. It’s also the normal avatars.)

By reloading the page (F5), it’s all good again.

I’ve created an issue on GitHub:
https://github.com/paviliondev/discourse-question-answer/issues/33

Thanks for the report but it seems I can’t reproduce the issue on my end. I will dig further if other report the same issue.