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

Guardian policy GET API returns empty data when the remaining pieces of data is more than 200 or when the waiting-approval data is more than 100 #2997

Closed
JoeyZhaojin opened this issue Dec 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working community

Comments

@JoeyZhaojin
Copy link

JoeyZhaojin commented Dec 11, 2023

Hi Guardian Team,

Problem description

A clear and concise description of what the bug is.
Within a single InterfaceDocumentsSource Block, when the number of data (including waiting-approval, approved, rejected) is more than 200 or the number of waiting-approval data is more than 100, the GET method of API /policies/${guardianPolicyId}/tag/${tag}/blocks returns the response with empty data (which should be the data inside the InterfaceDocumentsSource Block), and the data is also invisible from the Guardian UI.

Have tried ways like re-start, waiting for all the Guardian actions to finish, submitting data in batches, etc. This issue constantly happens when the data number exceeds the above upper bound.

It impacts the subsequent approval of those data because to approve them we first need to GET them.

Step to reproduce

Steps to reproduce the behavior:

  1. Run Guardian
  2. Submit data with higher pieces of number than 100 or 200
  3. Call GET API to get data from the InterfaceDocumentsSource Block
  4. See error (just empty data field in the response)

Expected behavior

The GET API should always return all the data in the InterfaceDocumentsSource Block.

Thank you for any thoughts.

@prernaadev01 prernaadev01 added bug Something isn't working community labels Dec 11, 2023
@JoeyZhaojin JoeyZhaojin changed the title Guardian policy GET API doesn't work when the remaining pieces of data is more than 200 or when the waiting-approval data is more than 100 Guardian policy GET API return empty data when the remaining pieces of data is more than 200 or when the waiting-approval data is more than 100 Dec 11, 2023
@JoeyZhaojin JoeyZhaojin changed the title Guardian policy GET API return empty data when the remaining pieces of data is more than 200 or when the waiting-approval data is more than 100 Guardian policy GET API returns empty data when the remaining pieces of data is more than 200 or when the waiting-approval data is more than 100 Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

4 participants