Skip to content

task: The need to refresh the schema cache in the SDK #1586

@ogenstad

Description

@ogenstad

Component

Python SDK

Task Description

The Infrahub SDK supports storing the current schema in a local cache to avoid doing extra lookups, it also supports refreshing the cache using a refresh:bool parameter to many functions. However I don't believe there's a good way to determine if a refresh is actually needed if the schema on the server has changed for any given branch.

It would be good to be able to compare a local schema hash against what we have on the server to determine if the cached version is up to date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/newcomersGood for newcomerstype/taskBody of work related to an epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions