Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared question #1

Open
sandeepsingh11 opened this issue Sep 5, 2020 · 1 comment
Open

shared question #1

sandeepsingh11 opened this issue Sep 5, 2020 · 1 comment

Comments

@sandeepsingh11
Copy link
Owner

Some questions are shared from different branches. For example:

  • adventure->theme->steampunk scientific magic->FMA
  • action->supernatural?->steampunk scientific magic->FMA

In this case, the tail->fur property will contain the same body / text (steampunk scientific magic), but the current code will generate a different tail index for both of them. In that case, FMA will need to have 2 head values that point to each of the shared question's tail.

OR

There can be a "shared question" option in the Shunin form that, with JS, will grab the inputted tail index, populate the input field with the corresponding body text, and share that tail value, so that FMA will only contain 1 head val

@sandeepsingh11
Copy link
Owner Author

Lastest commit fixes this. There is an added field for the choices (tails) that allows for an existing tail ID to be inputted. In shunin_handler.php, it looks up the ID and populates tail->fur with the found body text.

This way, duplicate choices will share tail IDs, leading to a shared anime answer.

FUTURE: there may be cases where I shouldn't share choices as anime answers can be a "bundle" (multiple answers / animes instead of a single ans / anime). This could lead to a drop in uniqueness and these bundles could be catering to a specific series of questions. I will see this as I continue populating the json anime file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant