[DOCS-16222] [Server] sh.removeTagRange ignores the tagName parameter Created: 26/Jun/23  Updated: 13/Nov/23  Resolved: 20/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Nick Villahermosa
Resolution: Fixed Votes: 0
Labels: quick-win, sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-77216 sh.removeTagRange ignores the tagName... Closed
Participants:
Days since reply: 15 weeks, 5 days ago

 Description   
Original Downstream Change Summary

On the docs page https://github.com/mongodb/docs/blob/e02edf16172277368f238e8da2b81491f61bf39d/source/reference/method/sh.removeTagRange.txt#L16 and all possible references from other pages, there is mentioned a tag parameter on the sh.removeTagRange.

This 'tag' parameter has never existed, thus the docs are misleading. This part should be removed: https://github.com/mongodb/docs/blob/e02edf16172277368f238e8da2b81491f61bf39d/source/reference/method/sh.removeTagRange.txt#L65-L70 from all the docs and versions.

Description of Linked Ticket

The command removeTagRange(nss, min, max, tagName) from util_sh.js removes the range independently of the given tag name; the tagName parameter is ignored. This command (removeTagRange) is an alias for removeRangeFromZone. On the other hand, removeRangeFromZone(nss, min, max) from the mongo shell removes the range from the tag without passing this as a parameter. It can be done this way because there is a 1:N relationship between tags - ranges. One range can only belong to one tag, thus there is no need to have the tag name to remove a range.

 
The goals of this ticket:



 Comments   
Comment by Nick Villahermosa [ 20/Oct/23 ]

Backports: 7.0, 6.0, 5.0, 4.4

Generated at Thu Feb 08 08:14:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.