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

Taxonomy Terms Management is broken #15590

Closed
urbanit opened this issue Mar 25, 2024 · 11 comments · Fixed by #15615
Closed

Taxonomy Terms Management is broken #15590

urbanit opened this issue Mar 25, 2024 · 11 comments · Fixed by #15615
Labels
Milestone

Comments

@urbanit
Copy link
Contributor

urbanit commented Mar 25, 2024

Describe the bug

Terms in a Taxonomy cannot be deleted and hierarchy cannot be created

To Reproduce

Steps to reproduce the behavior:

  1. Create a new site with Blog Recipe
  2. Go To Category Taxonomy
  3. Add a new term
  4. Publish
  5. Try to delete a term
  6. A notification that term is deleted appears but term is still there

Expected behavior

Terms Management should include Term Deletion, Add Child Term, Move Term as Child

@urbanit
Copy link
Contributor Author

urbanit commented Mar 25, 2024

It works on 1.8.2, broken on main branch

@Piedone
Copy link
Member

Piedone commented Mar 26, 2024

Can you share the logs? I'd guess it has something to do with the Json.NET migration.

@urbanit
Copy link
Contributor Author

urbanit commented Mar 26, 2024

For deleting term no logs are created :-(
For hierarchy, see attached...
orchard-log-2024-03-26.log

Full reproduction here: https://app.screencastify.com/v3/watch/g2Pv1BYQThXnZR3EoTsV

@MikeAlhayek
Copy link
Member

Did you try it out using the latest commit on main? I think there was an issue with STJ where remove was broken but should be fixed. Can you please confirm that the issue exists even after pulling the latest from main?

@urbanit
Copy link
Contributor Author

urbanit commented Mar 26, 2024

Exactly the same behavior... No deletion, no hierarchy, no child term addition
image

@MikeAlhayek
Copy link
Member

Guessing this is where it fails

taxonomy.As<TaxonomyPart>().Content.Remove(taxonomyItemId);

@hishamco
Copy link
Member

I think we need to fix the remove issue as we did in the admin menu

@hyzx86 @sarahelsaig I think you did a PR to fix this everywhere, right?

@hishamco
Copy link
Member

hishamco commented Mar 27, 2024

@hyzx86 this PR #15509 should fix the issue, right? or Shall I did a similar fix to the admin menu

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 27, 2024

@hishamco , No,The PR #15509 just and some method ,
looking at the logs, it looks like the problem is with the JNode class,
PR #15524 was update the JNode class,
@sarahelsaig can you take a look ?

@MikeAlhayek MikeAlhayek added this to the 1.9 milestone Mar 27, 2024
@hishamco
Copy link
Member

Shall I do a similar fix to what I did in the admin menu?

@hyzx86
Copy link
Contributor

hyzx86 commented Mar 27, 2024

Perhaps we can tweak the implementation of remove to be compatible with older api actions

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

Successfully merging a pull request may close this issue.

5 participants