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

[Research] LLM Result Page: PoiList sometimes won't update after edit report #139

Open
linyc0817 opened this issue May 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@linyc0817
Copy link
Contributor

linyc0817 commented May 10, 2024

目標

在 LLM Result Page 更改回報後,更新 LLM Result Page 上的 PoiList Data

作法

建立一個 refetchFlag 在 redux ,並在送出 edit 時,更動它。
在 LLM Result Page 用 useEffect 聽 refetchFlag ,當 refetchFlag 有變動時,讓 LLM Result 重新 fetchData

  • Bugs can focus on src/components/modal/LlmResult/index.tsx

Bugs

當在 LLM result page 更新 Pois 時,回到 LLM result Page 時 Recommend Pois 資料有機會不會更新

  • 目前觀察,第一則更新的話可以順利取到新資料。如果更新第二個,奇數次不會成功,偶數次可以
  • 懷疑會不會是 LLM Result Page ,getDoc 會抓 cache 而不是重抓新資料(getDoc 印 console 不會出來)。
    但又有時可以成功所以怪怪的!然後 RTK 貌似沒有提供 forceRefetch 的功能

測試 Process

  1. 點擊 homepage 右上機器人 icon
  2. 輸入測資:“我想要回報圖書館三樓最靠近管理二館&最靠近人社三館的飲水機很乾淨”
  3. 會看到兩則 recommend Pois
  4. 點擊更新第一個 Poi (應該會成功
  5. 點擊更新第二個 Poi (更新後清單的資料應該不會變

測試 Process 0812

  1. 使用 V1 assets on Notion
  2. 輸入測資:“小木屋二樓最靠近科學一館的公用電腦很乾淨”
  3. 會看到一則 recommend Pois
  4. 點擊更新,資料不會 update 到 recommend list 上,但關掉直接點 Poi 資料會是新的。

Bugs 影片

@linyc0817 linyc0817 added this to the Phase 2 milestone May 10, 2024
@linyc0817 linyc0817 added the bug Something isn't working label May 10, 2024
@linyc0817
Copy link
Contributor Author

linyc0817 commented May 26, 2024

Bonus

Deploy to real env

Link: https://smartcampus-research-llm.web.app/

Bug (We will receive this error every once in a while)

bug1 bug2 bug3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants