Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3674

Simplify transaction options in convenient API doc example code

    • Hide

      DRIVERS-2606:
      Teams will need to update their documentation examples for transactions. After each language ticket is merged, the assignee should then open a new DOCSP ticket with a "Server" component to inform the docs team to pull in the updated examples.

      The above pertains to language-specific examples that are rendered in the MongoDB manual. Any docs owned by the language team can be directly updated.

      Show
      DRIVERS-2606 : Teams will need to update their documentation examples for transactions. After each language ticket is merged, the assignee should then open a new DOCSP ticket with a "Server" component to inform the docs team to pull in the updated examples. The above pertains to language-specific examples that are rendered in the MongoDB manual. Any docs owned by the language team can be directly updated.
    • None
    • Needed
    • Hide

      The PyMongo example under Transactions API in the server manual can be updated with the simplified Step 3:

      # Step 3: Use with_transaction to start a transaction, execute the callback, and commit (or abort on error)
      session.with_transaction(callback) 
      Show
      The PyMongo example under Transactions API in the server manual can be updated with the simplified Step 3: # Step 3: Use with_transaction to start a transaction, execute the callback, and commit ( or abort on error) session.with_transaction(callback)
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-2606, please see that ticket for a detailed description.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            dbeng-pm-bot TPM Jira Automations Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None