nextcloud / nextcloud/text

Wrap storing steps in a transaction

Open
#3,726 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop 26 feedback feature: sync skill:backend technical debt
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Wrap this in a transaction so that reading the current version, increasing and writing steps is an atomic operation.

Should be easy with https://docs.nextcloud.com/server/latest/developer_manual/basics/storage/database.html#transactions

Originally posted by @juliushaertl in https://github.com/nextcloud/text/pull/2971#discussion_r1081033209

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the storing-steps context in pull request #2971 and read the linked Nextcloud transaction documentation. Identify where the current version is read, steps are increased, and the result is written; done means those operations run atomically within one transaction.

Written by the indexing model from the issue text.

Assessment

Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.