Quasar Tree returning too much data when all items are selected
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with the Quasar Tree component's selection and returned-value behavior, then compare it with the vue-treeselect valueConsistsOf examples linked in the issue. Verify how selecting a branch currently expands to its descendants and define completion as returning selected branches instead when all their children are selected, without requiring every leaf in the result.
Written by the indexing model from the issue text.
Description
I'm using the Quasar Tree to have a compact control in which to include Regions, Countries, and States from around the world, for a search criteria. I'm currently using the vue-treeselect to do this
https://vue-treeselect.js.org/#node
However, I would prefer to use the Quasar Tree, but the data that is being returned is far more verbose than vue-treeselect, and results in a significantly more complicated SQL query when returned to the server.
vue-treeselect, simply returns ["All"] when the root node is checked, or ["Europe", "NorthAmerica"] when only those items are selected.
The problem I'm having with Quasar's Tree component, is that it's returning every Country and State in Europe and North America instead. Obviously this includes 50 states for the USA alone, so a lot more data is being generated than necessary. And instead of the server simply saying "where Region = 'NorthAmerica'" it is instead having to do "where State='Alabama' or State='Alaska' or State='Arizona'" etc., which is very inefficient, and puts unnecessary stress on the database server.
The vue-treeselect component achieves this using a "valueConsistsOf" prop.
https://vue-treeselect.js.org/#prevent-value-combining
If you quickly play with this link, you can see how the Quasar Tree effectively uses "Leaf priority", whereas it would be much more efficient for most people to use the "Branch priority" option, which is the default option for vue-treeselect.
- Dominant language
- JavaScript
- Stars
- 27.2k
- Forks
- 3.7k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quasarframework/quasar
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
quasarframework/quasar#18614 ·
Maintainers usually reply within 3 days
-
QTabs: overflow arrows never show when QTabs mounts inside a scaling QDialog (regression since 2.29.0)Possibly taken @farisbasha claimed this 2 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
quasarframework/quasar#18611 ·
Maintainers usually reply within 3 days
-
area/ui kind/feature 💡
Difficulty 5/5 Over a week Newbie friendliness 20/100
quasarframework/quasar#18252 · 2 comments · 2 reactions ·
Maintainers usually reply within 3 days
-
area/cli kind/feature 💡
Difficulty 4/5 3-5 days Newbie friendliness 35/100
quasarframework/quasar#18060 · 4 comments · 7 reactions ·
Maintainers usually reply within 3 days
-
Add TypeScript generics to component typesMay be free again @yusufkandemir claimed this 1011 days ago, and no pull request is open. Openkind/feature 💡
quasarframework/quasar#16935 · 17 reactions · 1 assignee ·
Maintainers usually reply within 3 days
All issues in quasarframework/quasar
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Life-Framework/Life-Framework#7017 ·
Maintainers usually reply within 1 day
-
e/DevOps enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Accenture/sfmc-devtools#2795 ·
Maintainers usually reply within 1 day
-
agent/guide documentation help wanted stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kubestellar/console-kb#4003 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FilOzone/synapse-sdk#1201 · 1 comment ·
Maintainers usually reply within 1 day