Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Tech
  3. Difficulty reusing purged category handles

Difficulty reusing purged category handles

Scheduled Pinned Locked Moved Tech
8 Posts 3 Posters 30 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K This user is from outside of this forum
    K This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    So, I'm playing around with forum structure, and I purged a category with the hope of just clearing it out and reusing it. Unfortunately, purging it from the forum doesn't seem to have cleaned up the namespace. I'm not familiar with mongodb or nosql, but from the limited exploration I've managed to do, the category handle isn't showing up.

    Is there a trick to clearing the name space?

    1 Reply Last reply
    0
    • julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      @Kichae what do you mean, you're not able to use the category handle in a new category anymore?

      1 Reply Last reply
      0
      • K This user is from outside of this forum
        K This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        Yup, exactly. If I create a new category with the same name, it will append a random ID string to the end of the handle. Trying to truncate it back to the original will trigger the following error:

        > Category handle is already taken, please choose another.

        1 Reply Last reply
        0
        • julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          @Kichae thanks, sounds like a bug, please report on GitHub.

          1 Reply Last reply
          0
          • K This user is from outside of this forum
            K This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            Will do!

            1 Reply Last reply
            0
            • julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.orgJ This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              In the meantime, you can go into your database, and delete the faulty record in the categoryhandle:cid sorted set.

              db.objects.deleteOne({ _key: "categoryhandle:cid", value: "yourhandle" }); ... or something like this.

              I take no responsibility if the mongodb command is faulty 😛

              1 Reply Last reply
              0
              • baris@community.nodebb.orgB This user is from outside of this forum
                baris@community.nodebb.orgB This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                @Kichae Fixed in https://github.com/NodeBB/NodeBB/issues/13171

                1 Reply Last reply
                0
                • julian@community.nodebb.orgJ This user is from outside of this forum
                  julian@community.nodebb.orgJ This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  Thanks @baris!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups