Problem/Motivation

When Use source vocabulary's full hierarchy is enabled in Suggest taxonomy tags section the results show extra content like ```html ..... ``` which does not looks good.

Steps to reproduce

Enable ai content suggestion module and enable Suggest taxonomy tags in admin/config/ai/suggestions
Edit/Add content and open the Suggest taxonomy tags section. Enable the Use source vocabulary and Use source vocabulary's full hierarchy checkboxes.
Click on Suggest taxonomy terms
Along with the suggested taxonomy terms ```html also appear in results.

Proposed resolution

Remove the ```html from the result

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ai-3523335

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anjaliprasannan created an issue. See original summary.

anjaliprasannan’s picture

Assigned: Unassigned » anjaliprasannan

anjaliprasannan’s picture

Assigned: anjaliprasannan » Unassigned
Status: Active » Needs review
prabha1997’s picture

StatusFileSize
new42.07 KB
new39.76 KB

The 'Use source vocabulary' field only became visible after applying the MR from this issue: https://www.drupal.org/project/ai/issues/3521499.
I have tested this issue. Please review the before and after screenshots below for reference.
before
before
after
after

prashant.c made their first commit to this issue’s fork.

prashant.c’s picture

Not sure why it was kind of markdown code with ```html , the changes fixes the issue. A rebase was needed which is done. Requesting maintainers to review.

kristen pol’s picture

Title: Suggest taxonomy term results shown with ```html [AI Content Suggestions] » [AI Content Suggestions] Suggest taxonomy term results shown with ```html
Component: Other Submodules » AI Content Suggestions

We are doing some issue management housekeeping and adding/removing components.

We are removing the "Other Submodules" component and want people to categorize issues with the best module/submodule component.

Moving this issue to "AI Content Suggestions".

See #3533272: Update AI module project components for more details.

marcus_johansson made their first commit to this issue’s fork.

marcus_johansson’s picture

Version: 1.1.x-dev » 1.2.x-dev
Status: Needs review » Needs work

I gave a suggestion, check if that makes sense - otherwise I will merge as is.

anjaliprasannan’s picture

Assigned: Unassigned » anjaliprasannan
anjaliprasannan’s picture

Assigned: anjaliprasannan » Unassigned
Status: Needs work » Needs review

Updated MR. Please review.

marcus_johansson’s picture

Project: AI (Artificial Intelligence) » AI content
Version: 1.2.x-dev »
Component: AI Content Suggestions » Code