This is a template you must use to report issues.
I migrated my project from v7 to v8. I added a new Collection and a hasMany
Smart Relationship from an existing collection to the new one, like follow:
collection("ExistingCollection", {
fields: [{
field: "hasMany_NewCollection_targetField",
type: ["String"],
reference: "NewCollection._id"
}]
})
and the relationship was not showing up in the Layout Editor. Existing smart relationships are displayed, and the endpoint responsible of the new relationship is returning data, which I found confusing.
So I thought it was related to the new development workflow, as it seemed to me it was only a UI issue. Thus I migrated my project, installed the forest-cli, ran an init to setup the development environment. When I started the project, my existing collection was gone, along with few others (I believe they all have a hasMany
relationship like the one I was trying to add).
Now I’m stuck, fortunately this is only on the Development environment, and does not impact (at least for now) my Production environment.
Feature(s) impacted
Please describe in this mandatory section the feature(s) that will be discussed in this topic.
- Smart Relationships
- Layout Editor
Observed behavior
Please describe in this mandatory section the current behavior you observe.
Collections containing hasMany
Smart Relationships are hidden.
Expected behavior
Please describe in this mandatory section the behavior you are expecting.
Collections and Smart Relationships must be shown.
Context
Please provide in this mandatory section, the relevant information about your configuration:
- Project name: Pinpo Admin
- Team name: Operations
- Environment name: DEVELOPMENT
- Agent type & version: “forest-express-mongoose”: “8.6.7”
- Recent changes made on your end if any: Migrated to v8 and project to new development workflow.