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

type-filter for changes does not work #177

Open
ChMThiel opened this issue Nov 7, 2024 · 0 comments
Open

type-filter for changes does not work #177

ChMThiel opened this issue Nov 7, 2024 · 0 comments

Comments

@ChMThiel
Copy link

ChMThiel commented Nov 7, 2024

A call to storeClient.listChanges("user_group", null, null) does list all changes for all kind of tuples - not only the changes for type user_group.

Using the same functionality directly from dev.openfga.sdk.api.client.OpenFgaClientworks:

OpenFgaClient directFga = new OpenFgaClient(new ClientConfiguration()
    .storeId(storeClient.get().await().indefinitely().getId())
    .authorizationModelId(authorizationModelClient.get().await().indefinitely().getId()));
directFga.readChanges(new ClientReadChangesRequest().type("user_group")).get()
    .getChanges()
    .forEach(System.out::println);

...returns changes for user_groups only

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

No branches or pull requests

1 participant