Prisma1: Subscriptions with where filter don't work

Created on 26 Apr 2018  路  7Comments  路  Source: prisma/prisma1

Bug Report

Current behavior
This is a copy of issue #1734 .
It is marked as CLOSED, however I am still able to reproduce the error following the howtographql tutorial.

Reproduction
Local prisma updated to v1.7.1
prismaver subcscription

Created subscription containing where clause (in subscription.js).
Log In user (in Playground)
Activate Subscription (in Playground - connected to localhost)
Create Post

  • Post is created, but subscription event is not published.

subscription_where_fail_1

Expected behavior?
Expected that subscription event would be published.

Commented out 'where' clause (as shown in issue #1734 ) and everything works as expected.
subscription_nowhere_1

bu0-needs-info

All 7 comments

Local prisma updated to v1.7.1

The CLI version is not the deciding factor.
The version of the Prisma server is important. What is it?

You are correct....prisma console shows the version as 1.6.3
However, the is no button graphic available on prisma console to upgrade to v1.7.1.
The documentarion i found online for updating all have referred to prisma cli

Is there another method that I'm not seeing?

I see!

It will soon be possible to upgrade your Prisma Cloud cluster to 1.7.1, this is currently being discussed here: https://github.com/graphcool/prisma-cloud-feedback/issues/136.

Let's continue the discussion there 馃槉

Hello @marktani ,

Just for clarification, the clusters mentioned in Feedback #136 are private clusters.
Whereas the clusters mentioned in this Issue are the dev clusters provided by Prisma.

Overall, I guess I'm confused.
If Prisma provided an update to v1.7.1, but doesn't allow users to upgrade using the Prisma console, how are other users updating their Prisma server?

As a side note, I was following the tutorial from howtographql regarding subscriptions.
My local prisma updated automatically to v1.7.1 - without me having to provide any npm commands.
Why wouldn't the server side be auto updated?

If I'm missing anything, please let me know.
Or if there is documentation to help with this, please direct me in the right path.

Thanks,

Thanks for the clarification, I had indeed thought you talk about private clusters.

We will soon upgrade Prisma Sandbox servers (previously called Prisma development clusters) to 1.7.1 as well - this goes hand in hand with https://github.com/graphcool/prisma-cloud-feedback/issues/136 馃檪

You can already upgrade your local Prisma server, or any Prisma server operated with Docker, to 1.7.1 following this guide: https://www.prisma.io/docs/1.7/reference/upgrade-guides/upgrading-prisma/upgrade-to-1.7-iquaecuj6b.

If you have specific questions for the upgrade process, you can bring them up in the Forum.

Why wouldn't the server side be auto updated?

Upgrading a Prisma server automatically by default is usually not what you want - because it might come with unwanted changes or disrupt your production experience. Instead, the typical flow is that you manually upgrade to the new version when the time is right 馃檪

Prisma Sandbox is a development environment, so we _do_ automatically run upgrades there.

Hello @marktani Thank You for responding!!

Based on your response, would simply me upgrading the local Prisma server resolve this issue?
Or does both local Prisma server and Prisma cloud need to be updated?

The CLI version is not the deciding factor.
The version of the Prisma server is important. What is it?

Is the CLI version different than the local Prisma server?

Is the CLI version different than the local Prisma server?

Yes. The CLI is a binary program installed to your machine. The local Prisma server is a Docker image managed in your local Docker setup. You can manage both independently from each other.

You did not share where your Prisma service is running, so I cannot answer your other questions 馃檪

You need to upgrade the Prisma server that your Prisma service is running on to benefit from the latest version.

Again, if you have specific questions for the upgrade process, you can bring them up in the Forum. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schickling picture schickling  路  3Comments

schickling picture schickling  路  3Comments

hoodsy picture hoodsy  路  3Comments

marktani picture marktani  路  3Comments

thomaswright picture thomaswright  路  3Comments