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

Refactor: Search Footer and how it handles user input #338

Open
wants to merge 112 commits into
base: develop
Choose a base branch
from

Conversation

Lagicrus
Copy link
Contributor

@Lagicrus Lagicrus commented Jul 11, 2021

Database Migration

NO

Description

Currently, when you use the search footer and you either type a new term or select categories/indexers, the entire table rerenders (as shown below)
chrome_2021-07-10_15-11-31
Now on type this is the result
image

What I have done is address this from two angles, first I've moved it over to a functional component to better control the rerendering and to act as another example for how this works. Additionally, I've reworked the way that onChange works for each component so it doesn't trigger onInputChange which was the issue component.
As a side effect it also now doesn't lag on type as it did before.

Fixes #290
Fixes #293

@Lagicrus Lagicrus changed the title Reworks how the Search Footer works Refactor: Search Footer and how it handles user input Jul 12, 2021
@bakerboy448 bakerboy448 added the Status: Ready for Review Awaiting review label Jul 12, 2021
@Qstick
Copy link
Contributor

Qstick commented Jul 13, 2021

In testing this seems to break indexer selection. Appears indexersIds are not passed in the search request resulting in searching of all

image

@bakerboy448
Copy link
Contributor

additionally: other related UI bugs that would be nice to get squashed if possible / already dealing with those areas of code
#293
#290
#177

@Lagicrus
Copy link
Contributor Author

Lagicrus commented Jul 18, 2021

additionally: other related UI bugs that would be nice to get squashed if possible / already dealing with those areas of code
#293
#290
All these should be fixed now

@bakerboy448 bakerboy448 added Area: UI Issue is related to UI, should also add the issue to the new UI project, if it isn't a bug. and removed Status: Waiting for OP Action Required from OP Stauts: On Hold - Do Not Merge labels Jul 18, 2021
@Lagicrus
Copy link
Contributor Author

This additionally fixes #357

2021-07-24_13-35-57.mp4

chryzsh and others added 7 commits July 30, 2021 18:56
* adjust search term for individual season in ipt

* adjust search term for individual season in ipt

Co-authored-by: chryzsh <chrisrisvik@mail.com>
* first attempt at sc definition

* add dologin. seems to return html instead of json

* barebones working setup

* added category but errors on override

* fixed and tested

* guid fix

* fixed bdmv and dvd releases to report in radarr accepted format

* minor fixes

* fixed sc

* first attempt at SC categories

* category fixes for movies and music

* toggled back IsProduction

Co-authored-by: unknown <chrisrisvik@mail.com>
bakerboy448 and others added 6 commits August 30, 2021 19:43
Fixed: (TPB) Missing Magnet Download Link
Fixes Logs of Prowlarr#472

> 2021-08-28 05:59:47.8|Error|Xthor|An error occurred while processing indexer feed. https://api.xthor.tk?passkey=(removed)&category=12%2B125%2B104%2B13%2B15%2B14%2B98%2B17%2B16%2B101%2B32%2B110%2B123%2B109%2B34%2B30&accent=1

[v0.1.1.875] System.Exception: Triggered AntiSpam Protection, please delay your requests!
   at NzbDrone.Core.Indexers.Definitions.Xthor.XthorParser.CheckApiState(XthorError state) in D:\a\1\s\src\NzbDrone.Core\Indexers\Definitions\Xthor\XthorParser.cs:line 112
   at NzbDrone.Core.Indexers.Definitions.Xthor.XthorParser.ParseResponse(IndexerResponse indexerResponse) in D:\a\1\s\src\NzbDrone.Core\Indexers\Definitions\Xthor\XthorParser.cs:line 32
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.FetchPage(IndexerRequest request, IParseIndexerResponse parser) in D:\a\1\s\src\NzbDrone.Core\Indexers\HttpIndexerBase.cs:line 321
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.FetchReleases(Func`2 pageableRequestChainSelector, Boolean isRecent) in D:\a\1\s\src\NzbDrone.Core\Indexers\HttpIndexerBase.cs:line 174
RequestUri: https://api.xthor.tk?passkey=(removed)&category=12%2B125%2B104%2B13%2B15%2B14%2B98%2B17%2B16%2B101%2B32%2B110%2B123%2B109%2B34%2B30&accent=1;StatusCode: OK;ContentType: application/json;ContentLength: 133;ContentSample: {
    "error": {
        "code": 8,
        "descr": "Protection Anti-Spam: A.P.I limitee a 1 requete toutes les 2 secondes."
    }
};FeedUrl: https://api.xthor.tk?passkey=(removed)&category=12%2B125%2B104%2B13%2B15%2B14%2B98%2B17%2B16%2B101%2B32%2B110%2B123%2B109%2B34%2B30&accent=1
@bakerboy448
Copy link
Contributor

conflicts - needs rebase

@bakerboy448 bakerboy448 removed the Status: Ready for Review Awaiting review label Aug 31, 2021
bakerboy448 and others added 14 commits August 31, 2021 19:50
Currently translated at 100.0% (441 of 441 strings)

Translated using Weblate (Chinese (Simplified) (zh_CN))

Currently translated at 62.5% (276 of 441 strings)

Translated using Weblate (Hungarian)

Currently translated at 100.0% (441 of 441 strings)

Co-authored-by: Csaba <csab0825@gmail.com>
Co-authored-by: Havok Dan <havokdan@yahoo.com.br>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: angelsky11 <angelsky11@gmail.com>
Translate-URL: https://translate.servarr.com/projects/servarr/prowlarr/hu/
Translate-URL: https://translate.servarr.com/projects/servarr/prowlarr/pt_BR/
Translate-URL: https://translate.servarr.com/projects/servarr/prowlarr/zh_CN/
Translation: Servarr/Prowlarr

Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Csaba <csab0825@gmail.com>
Co-authored-by: Havok Dan <havokdan@yahoo.com.br>
Co-authored-by: angelsky11 <angelsky11@gmail.com>
@Lagicrus
Copy link
Contributor Author

Lagicrus commented Sep 5, 2021

conflicts - needs rebase

Should be fixed now

@austinwbest
Copy link
Contributor

conflicts - needs rebase

Should be fixed now

I'm kinda guessing you didn't mean to merge 100+ commits.

There may have been a force push or maybe you did a bad rebase but this I think may need some adjustment?

You are like 110 commits to many here lol

@Lagicrus
Copy link
Contributor Author

Lagicrus commented Sep 5, 2021

conflicts - needs rebase

Should be fixed now

I'm kinda guessing you didn't mean to merge 100+ commits.

There may have been a force push or maybe you did a bad rebase but this I think may need some adjustment?

You are like 110 commits to many here lol

Ye.. I told it to rebase and here we are 😔
Not sure how to fix

@bakerboy448
Copy link
Contributor

Did you fetch upstream develop before you rebased on it?

@Lagicrus
Copy link
Contributor Author

Lagicrus commented Sep 5, 2021

Believe so yes? Was I not supposed to?

@bakerboy448 bakerboy448 added the Status: Waiting for OP Action Required from OP label Nov 10, 2021
@bakerboy448 bakerboy448 added the conflict conflict - cannot merge, needs resolution label Dec 4, 2021
@bakerboy448
Copy link
Contributor

Believe so yes? Was I not supposed to?

you're supposed to, but you def didn't rebase off upstream develop it'd seemed

regardless - conflicts & needs the rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: UI Issue is related to UI, should also add the issue to the new UI project, if it isn't a bug. conflict conflict - cannot merge, needs resolution Status: Waiting for OP Action Required from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search - Title Truncates Cursor jumps to end when editing text in query search field