freeCodeCamp / freeCodeCamp/devdocs

Bug: Lag / Stack Overflow on Phoenix Search Result

オープン
#1,689 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
bug/search
主要言語
Ruby
スター
39.5k
フォーク
2.6k
平均マージ
4日 32分
マージ済み PR(30日)
13

説明

**Describe the bug**
Stack overflow on long search result.

**To Reproduce**
Steps to reproduce the behavior:

1. Add Phoenix as a source.
2. Search for `testing-librar` (problem occurs when typing the second `r`)

Result:

Page lags for a while, then an error shows in the console. I can continue to interact with the page, but every action takes several seconds, until I delete the search term and the page becomes responsive again.

It freezes every time I search with `testing-librar` but does not reliably freeze when finding the same search result by searching for other terms.

**Expected behavior**
No lagging, text in search results is trimmed.
A clear and concise description of what you expected to happen.

**Screenshots**
![Screen Shot 2022-01-10 at 11 35 35](https://user-images.githubusercontent.com/23065557/148803220-20922967-6641-443d-85a5-7ce052c76221.png)

**Desktop (please complete the following information):**
- OS: macOS Big Sur
- Browser: Firefox 95.0.1

**Additional context**
I recently started trying DevDocs for the first time. I added a few sources, and tried searching for a few terms, but it's otherwise a fresh state.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Phoenix をソースとして追加し、`testing-librar` を検索して問題を再現します。特に 2 つ目の `r` を入力する際に、ブラウザーコンソールでスタックオーバーフローが発生していないか確認します。検索が応答性を維持し、長い結果テキストが報告されたエラーなしでトリミングされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby
領域
performance, search
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。