cozy / cozy-drive

Cozy Drive Web App for Cozy Cloud
GNU Affero General Public License v3.0
169 stars 64 forks source link

feat: Regroup queries #3183

Closed cballevre closed 2 months ago

cballevre commented 2 months ago

The purpose of this is to have an access point to all the queries to facilitate optimisation process (cc: @paultranvan).

This brings them all together in two files :

Now QueryBuilder returns the definition encapsulated in a function to unify the way it works. However, I've had to update their use in .query({ and .fetchAndGetFromState({ because it doesn't handle functions like useQuery does.

bundlemon[bot] commented 2 months ago

BundleMon

Files updated (3) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | public/drive.(hash).js
| 1.56MB (+183B +0.01%) | 1.7MB :white_check_mark: | intents/drive.(hash).js
| 105.75KB (-116B -0.11%) | 190KB :white_check_mark: | app/drive.(hash).js
| 174.11KB (-607B -0.34%) | 300KB
Unchanged files (15) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | vendors/drive.(hash).js
| 1.78MB | 2MB :white_check_mark: | public/pdf.worker.entry.(hash).worker.js
| 345.35KB | 350KB :white_check_mark: | services/qualificationMigration/drive.js
| 279.89KB | 500KB :white_check_mark: | services/dacc/drive.js
| 260.92KB | 500KB :white_check_mark: | public/cozy-client-js.js
| 159.28KB | 160KB :white_check_mark: | public/drive.(hash).min.css
| 69.72KB | 100KB :white_check_mark: | app-drive.(hash).min.css
| 37.84KB | 56KB :white_check_mark: | intents-drive.(hash).min.css
| 33.01KB | 40KB :white_check_mark: | onlyOffice/slide.pptx
| 24.83KB | 25KB :white_check_mark: | onlyOffice/text.docx
| 5.85KB | 6KB :white_check_mark: | onlyOffice/spreadsheet.xlsx
| 5.02KB | 6KB :white_check_mark: | manifest.webapp
| 1.87KB | 2KB :white_check_mark: | index.html
| 595B | 1KB :white_check_mark: | intents/index.html
| 507B | 1KB :white_check_mark: | manifest.json
| 185B | 1KB

Total files change -540B -0.01%

Groups updated (3) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | public/**
| 2.13MB (+186B +0.01%) | - :white_check_mark: | intents/**
| 106.25KB (-114B -0.1%) | - :white_check_mark: | app/**
| 174.11KB (-607B -0.34%) | -
Unchanged groups (4) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | vendors/**
| 1.78MB | - :white_check_mark: | services/**
| 540.81KB | - :white_check_mark: | onlyOffice/**
| 35.7KB | - :white_check_mark: | img/**
| 3.41KB | -

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history | Target branch size history

paultranvan commented 1 month ago

To quote a great and wise brand : I'm lovin it.