- Issue created by @marcus_johansson
- @mrdalesmith opened merge request.
- 🇬🇧United Kingdom MrDaleSmith
First go at resolving this issue. One thing I can't work out a way of doing is stopping you having to put in a "restricted to vocabulary" prompt if you have no vocabularies that will let you use that option. Possibly not a big deal, but it's a required field you won't need.
- 🇮🇳India sarvjeetsingh
The changes successfully fix the issue by preventing empty vocabularies from being offered as options for AI taxonomy suggestions.
Steps followed:
Created a vocabulary "test" with terms and "Tags" without any terms.
Verified the empty vocabulary no longer appears in the dropdown options
Confirmed form elements for vocabulary selection are hidden when no valid vocabularies exist
Tested with populated vocabularies to ensure they still work correctly.The "before" screenshot shows the issue where empty vocabularies could be selected, while the "after" screenshot confirms that only vocabularies with at least one term are now offered, preventing the confusing AI responses described in the ticket.
before:
after:
As mentioned in the issue comments, the settings form still requires the "limited to vocabulary" prompt field even when no eligible vocabularies exist.
Additional feedback on the prompt field requirement would be valuable.
Hence keeping it in Needs review for now. - 🇩🇪Germany marcus_johansson
@mrdalesmith - I think that is fine, I see there is a merge conflict right now, could you look into that and I will merge right away? Thanks
- First commit to issue fork.
- 🇮🇳India sarvjeetsingh
Conflicts resolved, The Changes still work fine as per #5.
LGTM.
Moving it to RTBC. - 🇮🇳India prashant.c Dharamshala
Did not work for me.
1. I have 2 vocabularies Tags and Test
2. Tags has no terms
3. Test has 1 term
4. It is not listing any of these, in addition to that "Use source vocabulary" also disappeared after switching to the MR branch.It needs work.
- 🇮🇳India prabha1997
This issue has been fixed in the 1.0.x branch.
However, in the 1.1.x branch, the "Use source vocabulary" field is missing. - 🇮🇳India prabha1997
I’ve created a new issue to track this and I’m tagging it here for reference.
https://www.drupal.org/project/ai/issues/3523519 🐛 The "Use source vocabulary" field is currently missing from the AI Content Suggestions section when editing content. Active -
marcus_johansson →
committed 90a3059f on 1.1.x authored by
mrdalesmith →
Add check on whether terms exist for each vocabulary before offering it...
-
marcus_johansson →
committed 90a3059f on 1.1.x authored by
mrdalesmith →