Skip to content

feat(pinia-orm): Add helper composable for collection#259

Merged
CodeDredd merged 8 commits intonext-releasefrom
add-aggregates
Aug 26, 2022
Merged

feat(pinia-orm): Add helper composable for collection#259
CodeDredd merged 8 commits intonext-releasefrom
add-aggregates

Conversation

@CodeDredd
Copy link
Copy Markdown
Owner

@CodeDredd CodeDredd commented Aug 25, 2022

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Adding composable to help more with collections like adding aggregates.

  • useCollect(models)
  • useMin(models, field)
  • useGroupBy(models, field)
  • useSortBy(models, sort)
  • usePluck(models, field)
  • useMax(models, field)
  • useSum(models, field)
  • useKeys(models)

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@CodeDredd CodeDredd added the enhancement New feature or request label Aug 25, 2022
@CodeDredd CodeDredd changed the base branch from master to next-release August 25, 2022 20:07
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 26, 2022

Codecov Report

❗ No coverage uploaded for pull request base (next-release@a1afbdd). Click here to learn what that means.
The diff coverage is 91.27%.

❗ Current head 4627851 differs from pull request most recent head 546652b. Consider uploading reports for the commit 546652b to get more accurate results

@@               Coverage Diff               @@
##             next-release     #259   +/-   ##
===============================================
  Coverage                ?   99.61%           
===============================================
  Files                   ?       78           
  Lines                   ?     4947           
  Branches                ?      430           
===============================================
  Hits                    ?     4928           
  Misses                  ?       19           
  Partials                ?        0           
Impacted Files Coverage Δ
packages/pinia-orm/src/query/Query.ts 98.74% <40.00%> (ø)
...pinia-orm/src/composables/collection/useGroupBy.ts 85.71% <85.71%> (ø)
...ges/pinia-orm/src/composables/collection/useMax.ts 90.90% <90.90%> (ø)
...ges/pinia-orm/src/composables/collection/useMin.ts 90.90% <90.90%> (ø)
...pinia-orm/src/composables/collection/useCollect.ts 100.00% <100.00%> (ø)
...es/pinia-orm/src/composables/collection/useKeys.ts 100.00% <100.00%> (ø)
...s/pinia-orm/src/composables/collection/usePluck.ts 100.00% <100.00%> (ø)
.../pinia-orm/src/composables/collection/useSortBy.ts 100.00% <100.00%> (ø)
...ges/pinia-orm/src/composables/collection/useSum.ts 100.00% <100.00%> (ø)
packages/pinia-orm/src/support/Utils.ts 99.57% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@CodeDredd CodeDredd merged commit eb2f6f5 into next-release Aug 26, 2022
@CodeDredd CodeDredd deleted the add-aggregates branch August 26, 2022 08:00
@CodeDredd CodeDredd mentioned this pull request Aug 26, 2022
CodeDredd added a commit that referenced this pull request Sep 15, 2022
…rsion (#343)

* feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240)

* feat(pinia-orm): Adding `hidden` & `visbile` in fields
- Also adding first global configuration

* refactor: add hidden decorator

* refactor(pinia-orm): change inter prop `useMutator` to `operation`

* refactor(pinia-orm): finalize meta feature
- Removed 'sanitize' since it was not used at all

* docs(pinia-orm): add hidden, visible and meta to api

* docs(pinia-orm): add description in guide

* docs(nuxt): add new config options

* docs: add hidden decorator

* docs: add missing withMeta

* test(pinia-orm): Add missing tests for better coverage (#257)

* feat(pinia-orm): Add helper composables for collection (#259)

* feat(pinia-orm): Add helper composable for collection

* refactor(pinia-orm): add build

* refactor(pinia-orm): fix tests and add sortby

* docs(pinia-orm): add api docs for helpers

* docs(pinia-orm): fix small error

* refactor(pinia-orm): remove max out of query

* test(pinia-orm): add missing coverage tests

* docs(pinia-orm): update docs and readme

* docs: add configuration to api & add missing icons (#266)

* docs: update sponsors

* perf(pinia-orm): add optional caching for same `get` requests (#272)

* feat(pinia-orm): add caching for same get requests

* feat(pinia-orm): add caching classes & improve config

* refactor(pinia-orm): add tests & making caching false by default

* refactor(pinia-orm): fix types

* docs(pinia-orm): add cache

* fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342)

* chore: update lock file

* fix(playground): Remove vue-hako since it breaks with new vueuse version
CodeDredd added a commit that referenced this pull request Sep 15, 2022
* feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240)

* feat(pinia-orm): Adding `hidden` & `visbile` in fields
- Also adding first global configuration

* refactor: add hidden decorator

* refactor(pinia-orm): change inter prop `useMutator` to `operation`

* refactor(pinia-orm): finalize meta feature
- Removed 'sanitize' since it was not used at all

* docs(pinia-orm): add hidden, visible and meta to api

* docs(pinia-orm): add description in guide

* docs(nuxt): add new config options

* docs: add hidden decorator

* docs: add missing withMeta

* test(pinia-orm): Add missing tests for better coverage (#257)

* feat(pinia-orm): Add helper composables for collection (#259)

* feat(pinia-orm): Add helper composable for collection

* refactor(pinia-orm): add build

* refactor(pinia-orm): fix tests and add sortby

* docs(pinia-orm): add api docs for helpers

* docs(pinia-orm): fix small error

* refactor(pinia-orm): remove max out of query

* test(pinia-orm): add missing coverage tests

* docs(pinia-orm): update docs and readme

* docs: add configuration to api & add missing icons (#266)

* docs: update sponsors

* perf(pinia-orm): add optional caching for same `get` requests (#272)

* feat(pinia-orm): add caching for same get requests

* feat(pinia-orm): add caching classes & improve config

* refactor(pinia-orm): add tests & making caching false by default

* refactor(pinia-orm): fix types

* docs(pinia-orm): add cache

* fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342)

* chore: update lock file

* fix(playground): Remove `vue-hako` since it breaks with new vueuse version (#343)

* feat(pinia-orm): Adding `hidden` & `visbile` in model and `_meta` field (#240)

* feat(pinia-orm): Adding `hidden` & `visbile` in fields
- Also adding first global configuration

* refactor: add hidden decorator

* refactor(pinia-orm): change inter prop `useMutator` to `operation`

* refactor(pinia-orm): finalize meta feature
- Removed 'sanitize' since it was not used at all

* docs(pinia-orm): add hidden, visible and meta to api

* docs(pinia-orm): add description in guide

* docs(nuxt): add new config options

* docs: add hidden decorator

* docs: add missing withMeta

* test(pinia-orm): Add missing tests for better coverage (#257)

* feat(pinia-orm): Add helper composables for collection (#259)

* feat(pinia-orm): Add helper composable for collection

* refactor(pinia-orm): add build

* refactor(pinia-orm): fix tests and add sortby

* docs(pinia-orm): add api docs for helpers

* docs(pinia-orm): fix small error

* refactor(pinia-orm): remove max out of query

* test(pinia-orm): add missing coverage tests

* docs(pinia-orm): update docs and readme

* docs: add configuration to api & add missing icons (#266)

* docs: update sponsors

* perf(pinia-orm): add optional caching for same `get` requests (#272)

* feat(pinia-orm): add caching for same get requests

* feat(pinia-orm): add caching classes & improve config

* refactor(pinia-orm): add tests & making caching false by default

* refactor(pinia-orm): fix types

* docs(pinia-orm): add cache

* fix(pinia-orm): `(where)has` queries are not working with 1:1 relations (#342)

* chore: update lock file

* fix(playground): Remove vue-hako since it breaks with new vueuse version

* chore: update readme

* chore: update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants