StackExchange / StackExchange/StackExchange.Redis

Conditions for JSON fields

Open
#2,870 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.