GithubHelp home page GithubHelp logo

Comments (3)

JoepDriesen avatar JoepDriesen commented on July 3, 2024 1

Hi,

We have resolved this issue.

Somehow a stale node_modules folder was present in our build directory on the azure server. This seemed to cause forest to use these outdated packages somehow.

After deleting this folder, everything works as expected.

from forest-express-mongoose.

arnaudbesnier avatar arnaudbesnier commented on July 3, 2024

Hi @JoepDriesen,
Thanks for your feedback.

I cannot reproduce so far with the same kind of filter conditions.
Screenshot 2019-10-28 at 08 22 33

Could share with us the logs of your server for the broken charts to see if those conditions are well transmitted and if the query looks good?

from forest-express-mongoose.

JoepDriesen avatar JoepDriesen commented on July 3, 2024

Hi,

Thanks for responding. We have downgraded our forest liana package to 3.x for the past few months, so didn't really look into this issue anymore. However, we would like this resolved now because of the new features and bugfixes :).

I have upgraded our QA environment again to "forest-express-mongoose": "^5.4.0"

The issue is only happening in our Azure environment. Local development environment seems to apply the filters correctly.

Also, this is not only an issue with the dashboard charts. It is the same issue anywhere filters are applied (i.e. when searching records with filters in the Data tab).

I have inspected the mongoDB log, and it appears the filters are not being sent correctly to mongodb:

This is a log record from mongodb after I search our "Result" collection with a filter:

{ "op" : "query", "ns" : "buffl-qa.results", "command" : { "find" : "results", "filter" : { }, "projection" : { }, "limit" : 10, "returnKey" : false, "showRecordId" : false, "lsid" : { "id" : UUID("73636803-b62a-475f-ac0e-ed253c375079") }, "$db" : "buffl-qa" }, "keysExamined" : 0, ... }

As you can see, the filter is empty. The server log show the filter arrives correctly to the forest endpoint:

2019-12-03T10:45:52.414051658Z ::ffff:172.16.1.1 - - [03/Dec/2019:10:45:52 +0000] "GET /forest/Result/count?fields%5BResult%5D=_id%2Ccampaign%2Cuser%2Ccomplete%2Cdeleted%2CcreatedAt%2Ccustom_client_identifier&fields%5Bcampaign%5D=name&fields%5Buser%5D=email&filters=%7B%22field%22%3A%22campaign%3Alanguage%22%2C%22operator%22%3A%22equal%22%2C%22value%22%3A%22Dutch%22%7D&searchExtended=0&timezone=%2B01%3A00 HTTP/1.1" 304 - "https://app.forestadmin.com/34771/data/1379457/index?filterType=and&campaign:language[0][val]=Dutch&campaign:language[0][op]=is" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0"

So as far as I can tell, something must be going wrong in the forest liana... I'm not sure where to look next. Any suggestions?

Thanks!

from forest-express-mongoose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.