Feature(s) impacted
Collections
Observed behavior
- Click on a parent collection
- Click on an item within that collection
- Forestadmin crashes with the following message "Your server encountered an error
Please check your server logs for more information. If the error persists, please let us know ."
Expected behavior
Clicking on a child item from a parent collection should navigate to the child collection details screen.
Failure Logs
2022-10-07T08:50:36.564767+00:00 app[web.1]: e[31m[forest] 🌳🌳🌳 Unexpected error: opts.attributes.filter is not a functione[39m
2022-10-07T08:50:36.564769+00:00 app[web.1]: e[31m{e[39m
2022-10-07T08:50:36.564773+00:00 app[web.1]: e[31m "stack": "TypeError: opts.attributes.filter is not a function\n at module.exports.serializeNested (/app/node_modules/jsonapi-serializer/lib/serializer-utils.js:243:32)\n at module.exports.serialize (/app/node_modules/jsonapi-serializer/lib/serializer-utils.js:182:21)\n at /app/node_modules/jsonapi-serializer/lib/serializer-utils.js:308:14\n at arrayEach (/app/node_modules/lodash/_arrayEach.js:15:9)\n at forEach (/app/node_modules/lodash/forEach.js:38:10)\n at module.exports.perform (/app/node_modules/jsonapi-serializer/lib/serializer-utils.js:292:5)\n at resource (/app/node_modules/jsonapi-serializer/lib/serializer.js:35:20)\n at module.exports.serialize (/app/node_modules/jsonapi-serializer/lib/serializer.js:57:14)\n at new module.exports (/app/node_modules/jsonapi-serializer/lib/serializer.js:65:17)\n at /app/node_modules/forest-express/dist/serializers/resource.js:239:14\n at tryCatcher (/app/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/app/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:547:31)\n at Promise._settlePromise (/app/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:604:18)\n at Promise._settlePromise0 (/app/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:649:10)\n at Promise._settlePromises (/app/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:729:18)\n at _drainQueueStep (/app/node_modules/forest-express/node_modules/bluebird/js/release/async.js:93:12)\n at _drainQueue (/app/node_modules/forest-express/node_modules/bluebird/js/release/async.js:86:9)\n at Async._drainQueues (/app/node_modules/forest-express/node_modules/bluebird/js/release/async.js:102:5)\n at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules/forest-express/node_modules/bluebird/js/release/async.js:15:14)\n at processImmediate (node:internal/timers:466:21)"e[39m
2022-10-07T08:50:36.564773+00:00 app[web.1]: e[31m}e[39m
Context
- Project name: Jeconteste
- Team name: Operation
- Environment name: Production
- Agent type & version: …
- Express Version: 4.17.1
- Database: mongodb
- Recent changes made on your end if any: imported a new schema made up of json objects