Graphback: PubSub engine created even when all subscriptions options on the @model are `false`

Created on 29 Sep 2020  路  7Comments  路  Source: aerogear/graphback

I think we can control this instantiation via the various configuration knobs we have.

bug good first issue Hacktoberfest triage up for grabs

All 7 comments

/cc @craicoverflow, @wtrocki
Automatically generated comment to notify maintainers

What if the user brings their own subscriptions, either through a plugin or by writing custom resolvers.
Would it be better again to detect if there is a Subscription type in the schema, and only instantiate it in this case?

Wait - those are InMemory PubSub created in DataSync without option to override them.

What if the user brings their own subscriptions, either through a plugin or by writing custom resolvers.
Would it be better again to detect if there is a Subscription type in the schema, and only instantiate it in this case?

Makes sense, but it's much better for us to advocate the usage of configuration knobs i.e I do not see the point of a user bringing in their own CRUD subscription even if all the subscription options are disabled. That's sounds like by passing our setup and in this case,the users are in the land of their own and can instantiate the pubsub engine as they see fit.

Appears to be closed by https://github.com/aerogear/graphback/pull/2139 - @machi1990 can you confirm?

Appears to be closed by #2139 - @machi1990 can you confirm?

Good catch. Yes, this has been fixed by #2139, thanks to @RinkiyaKeDad

Was this page helpful?
0 / 5 - 0 ratings