Duplicate entry - increment number option

Implemented

Duplicate entry - increment number option

0 vote

avatar

Hi!

We have enabled the "increment number" option for duplicate entries. It is set like this:


With those settings, duplicating an entry named "test" will result in "test-2", and if there's already numbers in the name it will increment them, like "test09" will result in "test10".

I like this feature, but some more options would be helpful. We had some instances where entries named like "M365 - admin@example.com (OTP)" were changed to "M366" or "10GbE Core Switch" to "11GbE" which is unwanted of course.

I think if the numbers are only incremented when they are at the end of the name, it will be easier to spot unwanted changes.
Or even better, let users set a regex pattern to find the number to increment. For example the regex \(?\d+\)?$ would match for "test05" and "test (5)". RDM would then need to find the number inside the match and increment that. In this example, when also using " (2)" as the append text, duplicating "test" would result in "test (2)", "test (3)" etc.

Thanks!
Daniel

94128881-e349-498b-b774-22e44e4f3693.png

All Comments (4)

avatar

Hello Daniel,

Thank you for the request. What you're saying makes a lot of sense. At minimum we'll see about only incrementing when the numbers are at the end, but your suggestion to support regex patterns as well would make this feature even more interesting. I have opened a ticket.

Regards,

Hubert Mireault

avatar

Thank you!

avatar

Hello Daniel,

We have fixed the issue of the unwanted increment of numbers. We've also added the feature for custom regex pattern you requested. It will be available starting from version 2023.3.0.0 of RDM.

Regards.

Olivier Savoie

avatar

Awesome! Thank you!