Code Monkey home page Code Monkey logo

questions's Introduction

Questions & Answers

Engage and Learn: Our 'Q&A' module empowers users to seek and share knowledge. Ask burning questions, receive insightful answers from the community, and enhance discussions by upvoting the best responses. Join the collaborative journey of discovering valuable information and solutions.

questions's People

Contributors

jooooaah avatar luke- avatar mbumpalumpa avatar semir1212 avatar yurabakhtin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

questions's Issues

Add migrations uninstall

When deactivating the module, the tables remain because the migrations/uninstall.php is not present.

Enable moderation of Questions and Answers

Ideally the module would enable:

a) appointment of moderators, in settings, if desired
b) if appointed, moderators would be able to delete or edit Answers to ensure they are fitting and appropriate.

This would enable mistakes, poor-wording, grammar, or misinformation to be remedied.

If an answer was edited, that should be displayed too.

Editor not loaded correctly

v 1.0.1

  • Install Q&A and e.g. Polls
  • Disable ability to create "Posts"
  • Open Space (with a user account that can not create normal posts), click on input field for "Question" in editor without clicking anywhere else

--> Instead of the Q&A Editor the Polls editor loaded.

Search Rebuild Problem

root@free43:/srv/www/htdocs/doku3# php yii.php search/rebuild
Rebuild search index: ................Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: humhub\modules\questions\models\Question::answers'

in /srv/humhub/protected/vendor/yiisoft/yii2/base/Component.php:154

Stack trace:
#0 /srv/humhub/protected/vendor/yiisoft/yii2/db/BaseActiveRecord.php(296): yii\base\Component->__get()
#1 /srv/humhub/protected/humhub/modules/content/components/ContentActiveRecord.php(210): yii\db\BaseActiveRecord->__get()
#2 /srv/www/htdocs/doku3/modules/questions/models/Question.php(130): humhub\modules\content\components\ContentActiveRecord->__get()
#3 /srv/humhub/protected/humhub/modules/search/engine/ZendLuceneSearch.php(72): humhub\modules\questions\models\Question->getSearchAttributes()
#4 /srv/humhub/protected/humhub/modules/content/Events.php(120): humhub\modules\search\engine\ZendLuceneSearch->add()
#5 [internal function]: humhub\modules\content\Events::onSearchRebuild()
#6 /srv/humhub/protected/vendor/yiisoft/yii2/base/Event.php(312): call_user_func()
#7 /srv/humhub/protected/vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger()
#8 /srv/humhub/protected/humhub/modules/search/engine/Search.php(97): yii\base\Component->trigger()
#9 /srv/humhub/protected/humhub/modules/search/commands/SearchController.php(39): humhub\modules\search\engine\Search->rebuild()
#10 [internal function]: humhub\modules\search\commands\SearchController->actionRebuild()
#11 /srv/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#12 /srv/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#13 /srv/humhub/protected/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction()
#14 /srv/humhub/protected/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction()
#15 /srv/humhub/protected/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction()
#16 /srv/humhub/protected/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction()
#17 /srv/humhub/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest()
#18 /srv/www/htdocs/doku3/yii.php(38): yii\base\Application->run()
#19 {main}

Internal server error during uninstall/deactivate

yii\base\UnknownMethodException: Calling unknown method: humhub\modules\questions\models\QuestionAnswer::hardDelete() in /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/base/Component.php:300
Stack trace:
#0 /var/www/intranet/htdocs/protected/modules/questions/models/Question.php(121): yii\base\Component->__call()
#1 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/db/ActiveRecord.php(754): humhub\modules\questions\models\Question->beforeDelete()
#2 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/db/ActiveRecord.php(724): yii\db\ActiveRecord->deleteInternal()
#3 /var/www/intranet/htdocs/protected/humhub/modules/content/components/ContentActiveRecord.php(558): yii\db\ActiveRecord->delete()
#4 /var/www/intranet/htdocs/protected/modules/questions/Module.php(108): humhub\modules\content\components\ContentActiveRecord->hardDelete()
#5 /var/www/intranet/htdocs/protected/modules/questions/Module.php(91): humhub\modules\questions\Module->deleteRecords()
#6 /var/www/intranet/htdocs/protected/humhub/components/ModuleManager.php(468): humhub\modules\questions\Module->disable()
#7 /var/www/intranet/htdocs/protected/humhub/modules/admin/controllers/ModuleController.php(154): humhub\components\ModuleManager->removeModule()
#8 [internal function]: humhub\modules\admin\controllers\ModuleController->actionRemove()
#9 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#10 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#11 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#12 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction()
#13 /var/www/intranet/htdocs/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest()
#14 /var/www/intranet/htdocs/index.php(25): yii\base\Application->run()
#15 {main}

No send Button and other in that area visible

  1. When you move from STREAM (click) directly to the Tab Q&A the send button will not be visible.
    Error message: An unexpected server error occurred. ...

  2. When you click on STREAM then POST and then Q&A the send button is visible

  3. The same when you go STREAM then to Q&A tab and then to POST and then back to Q&A

It would be better if the Send button would appear already when you click STREAM and then the Q&A tab.

Screen Shot 2023-09-15 at 11 11 18 PM

Additionally it says "Message can not be blank" even you have entered a message when doing what is described in "3" Somehow the send button that shows up is not the one needed to send a Q and A and the field seems to be the Post field and not the Q & A field and therefore it says that this field can't be blank. - As it looks like you can't enter text into the Q&A field when doing 2. and 3. and when doing 1. you can enter text but you can't send it ;-)

Screen Shot 2023-09-15 at 11 17 57 PM

Add menu entry and page view showing all Questions

Currently, if a User or Moderator wants to view a question they have to scroll through the feed.

It would be very useful to:
a) have a 'Questions' entry in the left-hand panel of a space
b) when opening that view display all questions (contracted, with the ability to expand them individually)

This would enable a much more speedy and efficient way for both Users and Moderators to interact with Questions and to see if a question was already answered, and to find useful information in a structured way (also bridging the gap somewhat between 'Questions' module and a 'FAQ').

Links "provide an answer" and "view all answers" are target=_blank

When viewing a question in the activity stream, clicking on "Provide an answer" or "View all answers" opens a new HumHub window. This breaks the UX for at least the PWA, but most likely also for browser-based usage.

It would be better to remove the target=_blank to keep users contained within their current browser window.

Enable grouping of Questions

If #13 was implemented, it would be useful to allow Questions to be grouped where there are a lot.

In the Questions page view they would then appear in sections, sorted by group name, with a group name header.

'Topics' could be used to start with, though some may argue for a separate system if they are already using Topics for a different scheme overall.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.