meumobi / AMS.Report

1 stars 1 forks source link

can't retrieve all entries, freeze browser #9

Closed vdias38 closed 5 years ago

vdias38 commented 5 years ago

Expected behaviour

Tell us what should happen

Actual behaviour

sites

Steps to reproduce

  1. log in as admin
  2. select reporting menu link
  3. the report freeze and browser memory increase

Expected responses

danconte72 commented 5 years ago

On reproducing the error:

vendor.js:1 FIREBASE WARNING: Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ".indexOn": "date" at /reports to your security rules for better performance.
danconte72 commented 5 years ago

I've update database rules to

{
  "rules": {
      ".read": "auth !== null",
      ".write": "auth !== null",
      "reports": {
        ".indexOn": ["group", "date"]
      }
   }
}

And freeze it not happens again