Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Auto-pipeline Proxy Json Issue #1080

Merged
merged 3 commits into from
May 23, 2024
Merged

Fix Auto-pipeline Proxy Json Issue #1080

merged 3 commits into from
May 23, 2024

Conversation

CahidArda
Copy link
Contributor

Issue

Since json commands are called with redis.json.get, redis.json returned the proxy and redis.json.get simply called the json.get of the pipeline of auto pipeline executor.

as response to redis.json.get, we simply returned the pipeline of auto executor with json.get called. This also added a command to the pipeline without incrementing indexInCurrentPipeline, essentially corrupting the auto pipeline.

Solution

Added a json parameter to createAutoPipelineProxy. Returned a json proxy if command is json. Not the cleanest solution but it works.

I feel like we can go over the types in the proxy later on. It looks a bit messy.

Copy link

linear bot commented May 22, 2024

ytkimirti
ytkimirti previously approved these changes May 22, 2024
pkg/auto-pipeline.ts Outdated Show resolved Hide resolved
@ogzhanolguncu ogzhanolguncu merged commit f32ab58 into main May 23, 2024
13 of 14 checks passed
@ogzhanolguncu ogzhanolguncu deleted the DX-946 branch May 23, 2024 09:22
renovate bot added a commit to inabagumi/shinju-date that referenced this pull request May 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@upstash/redis](https://togithub.com/upstash/upstash-redis) |
[`^1.31.1` ->
`^1.31.2`](https://renovatebot.com/diffs/npm/@upstash%2fredis/1.31.1/1.31.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@upstash%2fredis/1.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@upstash%2fredis/1.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@upstash%2fredis/1.31.1/1.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@upstash%2fredis/1.31.1/1.31.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>upstash/upstash-redis (@&#8203;upstash/redis)</summary>

###
[`v1.31.2`](https://togithub.com/upstash/redis-js/releases/tag/v1.31.2)

[Compare
Source](https://togithub.com/upstash/upstash-redis/compare/v1.31.1...v1.31.2)

#### What's Changed

- Fix Auto-pipeline Proxy Json Issue by
[@&#8203;CahidArda](https://togithub.com/CahidArda) in
[upstash/redis-js#1080

**Full Changelog**:
upstash/redis-js@v1.31.1...v1.31.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants