[SERVER-67991] clean up create_indexes.js Created: 12/Jul/22  Updated: 29/Oct/23  Resolved: 14/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-67801 createIndexes should handle empty ind... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-07-25
Participants:

 Description   

Couple of areas for improvement:

  • replace references to the var keyword with const or let
  • be specific with expected errors codes rather than just check for assert(!res.ok).


 Comments   
Comment by Githook User [ 13/Jul/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-67991 add test case for empty list of indexes
Branch: master
https://github.com/mongodb/mongo/commit/f1a87ed0a2ed04327f31cd408f20648cb4732d6f

Comment by Githook User [ 13/Jul/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-67991 clean up create_indexes.js
Branch: master
https://github.com/mongodb/mongo/commit/a61ee18449ebfa2c152b4bd96ef4f25e1d7278eb

Comment by Benety Goh [ 12/Jul/22 ]

Non-functional improvements identified while working on SERVER-67801.

Generated at Thu Feb 08 06:09:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.