[DOCS-15040] Scala: Examples for transactions use outdated API version Created: 17/Jan/22  Updated: 13/Nov/23  Resolved: 25/Jan/22

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

Type: Bug Priority: Major - P3
Reporter: Dmitry Ryabtsev Assignee: Ian Fogelman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 2 weeks, 1 day ago
Epic Link: DOCSP-15042
Story Points: 3

 Description   

WIth v5.0 of the manual selected source code examples here demonstrate API that is not 5.0-compatible. The giveaway is the use of the Completed type which has been removed after the v2.8 of the Scala driver. An as can be seen in the Compatibility Matrix, driver v2.8 is not compatible with MongoDB v4.4 and newer.



 Comments   
Comment by Githook User [ 25/Jan/22 ]

Author:

{'name': 'ianf-mongodb', 'email': '85948430+ianf-mongodb@users.noreply.github.com', 'username': 'ianf-mongodb'}

Message: DOCS-15040 update make file with scala curl commands (#392)
Branch: v4.0
https://github.com/10gen/docs-mongodb-internal/commit/386931430f6fade7bf717f5333108e97e3e99dce

Comment by Githook User [ 25/Jan/22 ]

Author:

{'name': 'ianf-mongodb', 'email': '85948430+ianf-mongodb@users.noreply.github.com', 'username': 'ianf-mongodb'}

Message: DOCS-15040 update makefile with new scala links (#391)
Branch: v4.2
https://github.com/10gen/docs-mongodb-internal/commit/d304a6e9714940fe6120ed6fe4129069e359f394

Comment by Githook User [ 20/Jan/22 ]

Author:

{'name': 'ianf-mongodb', 'email': '85948430+ianf-mongodb@users.noreply.github.com', 'username': 'ianf-mongodb'}

Message: DOCS-15040 Updating curl URLs for scala code examples to java repo (#560)

  • DOCS-15040 Updating curl URLs for scala code examples to java repo
  • Makfile.docs update
  • SfL and corrected URLs for scala curls
Comment by Ross Lawley [ 19/Jan/22 ]

Hi ian.fogelman,

I believe its a straight change of type from `[Completed]` to `[Void]` - see:

https://github.com/mongodb/mongo-java-driver/commit/24780d53705de06d511af7e5cae18081449c9401#diff-6926ee2b9dfd3ea370a8dd7982d42f31ad767746b97f64d6cf43c9ccf2c63777

Ross

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