这是indexloc提供的服务,不要输入任何密码
Skip to content

reload_metadata API should take optional argument to reload Remote Schemas #3792

@tirumaraiselvan

Description

@tirumaraiselvan

The reload_metadata API does not reload Remote Schemas as it is a costly step (and might be unnecessary). For reloading remote schemas, there is the explicit reload_remote_schema API.

But there might be a need to reload_metadata while also reloading Remote Schemas. Hence, an optional argument could be provided to reload_metadata like reload_remote_schemas: true to achieve this.

Side note: While writing down this issue, I noticed a small inconsistency in the behaviour (before v1.1):

  1. Suppose you reload_metadata or reload_remote_schema in one Hasura instance, this changed the schema cache and triggered a postgres event to refresh other instances.
  2. The other instances build schema cache from scratch and hence have up-to-date schema. Whereas the originator instance may not have up-to-date remote schema or up-to-date postgres schema (as it only did a partial reload).

@lexi-lambda Is this issue moot after v1.1 because of incremental schema cache building?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/serverRelated to servere/intermediatecan be wrapped up in a weekk/enhancementNew feature or improve an existing featurep/highcandidate for being included in the upcoming sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions