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

Fix : Caching the foreign key column options #9828

Conversation

manishkushare
Copy link
Collaborator

Resolves #9745

@manishkushare manishkushare added run-ci CI is run only when this label is added database labels May 23, 2024
@manishkushare manishkushare self-assigned this May 23, 2024
Copy link

Copy link

@akshaysasidrn akshaysasidrn merged commit 55d5753 into feature/infinitescroll-for-foreignkeydata-tjdb May 30, 2024
5 of 7 checks passed
@akshaysasidrn akshaysasidrn deleted the manish/fk-options-loading branch May 30, 2024 11:05
akshaysasidrn added a commit that referenced this pull request Jun 4, 2024
…oolJet database. (#9785)

* feat: Added a support for infinite scroll on searching foreign key data

* feat: added debounce for search in infinite scroll and refactored the infinite scroll logic on listing Foreign key data

* fix: while searching foriegn key values in the drop down of tooljet database for varchar datatype possible search results will be returned and for other datatype strict matching is followed

* fix: review comments for optional chaining has been fixed

* fix: typo error has been fixed

* fix: client search on foreign key drop down is disabled

* stylefix: menu height is fixed now for foreign key drop down

* fix: foreign key drop down scroll bar moves to top on each render fixed

* Fix : Caching the foreign key column options  (#9828)

* Draft : Caching the fk options

* Refactored the code and use promise.all

* Used Promise.allSettled to ensure that all promises are processed regardless of whether they resolve or reject.

* Changed currentColumn to foreignKey

* Removed console

* Updated default value of cachedOptions state to empty object

* Updated the code with suggestion to uplift check condition

* Change the emptyError  copyright to No values found

* Bug fixed : on mount api request failing

* Refactored code from calculations to data by removing optional chaning

* Fix: Remove null values from the foreign key drop-down list (#9895)

* fix: filtered out null values and brought empty string to top in the foreign key drop down

* fix: review comments addressed

* fix: while creating or editing FK relation the source column drop down will not list empty column names

* stylefix: cell was not clickable on empty string

* fix: empty values are not listed on Foreign key drop down used for cell edit

* fix: empty string can be added as default in create table operation

* Fixed : Fk options are not cached when source column name is updated

---------

Co-authored-by: Akshay <[email protected]>
Co-authored-by: Manish Kushare <[email protected]>
Co-authored-by: manishkushare <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database needs testing run-ci CI is run only when this label is added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TJ DB: Foreign Key column options are loaded every time an FK cell is clicked
5 participants