Comments (3)
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.
Hi @JoepDriesen,
Thanks for your feedback.
I cannot reproduce so far with the same kind of filter conditions.
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.
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)
- TypeError: Class constructor ObjectId cannot be invoked without 'new' HOT 4
- export ResourceSerializer in type definition
- Forest Admin UI incorrectly display nested field HOT 2
- Is this still supported? HOT 2
- Update document example from documentation doesn't seem to work HOT 1
- TypeError: RecordsRemover is not a constructor HOT 3
- Forest Admin Dashboard display mongoose mixed data type as [object,object]
- Forestadmin with Typescript project and MongoDB Atlas Free Plan
- Should be able to specify location of .forestadmin-schema.json HOT 1
- Non-Date types that store Date values cannot be rendered as a time-based Chart HOT 1
- Nested Enum types do not have values in the schema and crash the Create page in the UI HOT 7
- Smart relationship does not query the route HOT 4
- Smart actions - primaryKeys not generated in forestadmin schema HOT 2
- Smart Relationships are all empty in 7.8.4 and after
- Weird behaviour with certain model names HOT 1
- Having trouble connecting HOT 2
- Impossible to delete values in array field
- Can't user react components for smart views
- Vulnerability Notice on moment-timezone. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forest-express-mongoose.