[SERVER-53202] Check for removed parameters in IDL compatibility checker script Created: 03/Dec/20  Updated: 29/Oct/23  Resolved: 17/Feb/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Ali Mir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2021-01-25, Repl 2021-02-08, Repl 2021-02-22
Participants:

 Description   

We should be checking whether each parameter in the old command exists in the new command and hasn't become unstable in the new command. If the parameter is optional in the old command, it should be optional in the new command as well. This corresponds to the following pseudocode:

for each command old_cmd:
    for each parameter old_param in old_cmd:
        if old_param.unstable:
            # No guarantees, even if !new_param.unstable.
            continue
 
        new_param :=
            get parameter from new_cmd with old_param's name
 
        assert new_param exists and !new_param.unstable
        if old_param.optional:
            assert new_param.optional



 Comments   
Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-53202 Check for removed parameters in IDL compatibility checker script
Branch: master
https://github.com/mongodb/mongo/commit/892221532ded1f74e5286b556c02088628159c08

Generated at Thu Feb 08 05:30:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.