Aiven-Open / Aiven-Open/klaw

bug(coral/core): The `search` param in some endpoints matches on data which is not displayed

未关闭
#1,821 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Backend bug Frontend
主要语言
Java
星标
195
派生
77
平均合并
8 天 9 小时
30 天内合并 PR
1

描述

# What happened?

In this example, the data displayed in the table after getting the response from `/environments/kafka?pageNo=1&searchEnvParam=PR` seems incorrect, as the first row doesn't seem to match the search term. However, it *does* seem to match data that is not displayed in the table:
Screenshot 2023-09-29 at 13 54 02

I haven't tested this throughly, so we need to ascertain that it is really what is happening here. (@aindriu-aiven probably can help)

# What did you expect to happen?

The table only displays rows if the data which is *rendered* matches the search term.

This is a bit of a sticky problem. We can either:
- render all data that is susceptible to be matched in the table. Problem: this might overload the table with data which is not relevant to the current page
- do an additional front-end filter on the data returned by the calls with a `search` param to ensure that only the matching data that is actually rendered is passed to the table component. Problem: bulky, uncomfortable prone to further bugs (if our filtering accidentally filters out something that should not be). And needs to be fixed in many places.
- another solution I can't think of immediately

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。