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: Remove null values from the foreign key drop-down list #9895

Conversation

ganesh8056
Copy link
Collaborator

Problem:
The Foreign key drop-down should not include null values.

Solution:
If there are any null values, remove them and if there is an empty string, put it at the top of the foreign key drop down list.

Copy link

@ganesh8056 ganesh8056 linked an issue May 28, 2024 that may be closed by this pull request
Copy link

@akshaysasidrn akshaysasidrn merged commit 48471a2 into feature/infinitescroll-for-foreignkeydata-tjdb Jun 3, 2024
99 checks passed
@akshaysasidrn akshaysasidrn deleted the bugfix/fk-dropdown-null-values-filter branch June 3, 2024 10:43
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 <akshaysasidharan93@gmail.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TJDB: Remove null values from the foreign key drop-down list
3 participants