Harwinder → created an issue.
Harwinder → created an issue.
Hi @all
Previous Issue Comment
#. The description of the module given in its README.md file is the following. (Emphasis is mine.)
> This module helps figure out what kind of person you are. It usually has a bunch of questions for you to answer. After you finish, it gives you a report that explains your personality traits, like if you're outgoing or shy, organized or laid-back, and so on.
Furthermore, I do not see any code that would tell the users they are shy, laid-back, etc.
Comment::
This module is currently designed to help users gain insight into their personality traits. Through a series of questions, users can complete a test that assesses their Dominance (D), Influence (I), Steadiness (S), and Conscientiousness (C) traits. Once the test is completed, users receive a detailed report indicating the percentage of each trait they possess. This information is then saved in their node with the content type "Personality Assessment Test," allowing them to reference and track their results over time.
I've made changes to my README.md & controller file. I will update the description of README.md as my module will work currently. Could you please review it?
#. In Drupal, the correct way to ask for information from users is via a form. The module does not implement any form.
The correct way to show information based on what is entered in a form is via the form submission handler. The module does not have any form submission handler.
Comment:: This module does not include any form because JavaScript is used to display questions on the page through a block. As a result, there's no need for a form in this module.
Repository Link:-
git@git.drupal.org:project/personality_assessment_test.git
Branch Name:-
1.0.x
Commit Link
https://git.drupalcode.org/project/personality_assessment_test/-/commit/...
Hi @all
I've made changes to my module based on your suggestions. I've included the link to my repository below. Could you please review it?
Repository Link:-
git@git.drupal.org:project/personality_assessment_test.git
Branch Name:-
1.0.x
Commit Link
https://git.drupalcode.org/project/personality_assessment_test/-/commit/...
Previous Issue Comment
#. It is not clear why the controller creates a new node (without checking it already exists), which is not even shown in some way to the users.
Comment:: I did not delete the previous node because I needed to back up the previous user results. Therefore, after completing the assessment, a new node is created.
#. I do not see any code that helps figure out what kind of person you are. It seems this module is a "work in progress."
Comment:: It helps figure out to users understand their personality traits. This assessment evaluates various aspects of a user's personality and provides a detailed report based on the results.
Hi @all
I modified my PHP code in my module according to your suggestion. Could you please take a look and review it?
Harwinder → created an issue.