StackExchange / StackExchange/StackExchange.Redis
Conditions for JSON fields
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Would it be feasible to introduce Condition.* methods equivalent to Condition.HashEqual, Condition.HashNotEqual, etc. for JSON fields?
Like so:
var tran = db.CreateTransaction();
tran.AddCondition(Condition.JsonEqual(key, "$.checkpoint", expected)); // <- this doesn't exist yet
tran.Execute();
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Condition.HashEqual and Condition.HashNotEqual entry points mentioned in the issue, then trace the transaction path reached by tran.AddCondition and tran.Execute. Define how equivalent JSON conditions should behave and verify the shown checkpoint example; the issue is done when the requested JSON condition methods are available with appropriate coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100