You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapCatalogToAstro supports this as it resolves the path from right to left. All it needs is find the reserved keywords whenever it is placed, like below:
events/MyEvent/index.md turns in events/MyEvent/index.mdx
services/MyService/events/MyEvent/index.md turns in events/MyEvent/index.mdx
domains/MyDomain/services/MyService/events/MyEvent/index.md turns in events/MyEvent/index.mdx
The image below is an example:
But we have a bug...
Run the default example in the development mode npx eventcatalog dev
Add an empty dir domains/Orders/events/.
The watcher will try create a public/generated/events/ overriding the already created from the hydration phase. Throwing an error.
I think whatever we do here we should avoid breaking old URLs. Lets say when I move MyEvent from /events/MyEvent to domains/MyDomain/events/MyEvent it would be nice if events/MyEvent still works afterwards.
This only provides real value when we also show this relationship to the user. E.g. a dedicated section in the event page sidebar which states what domain this event belongs to, column/filter in discover/events, a section of events in this domain on the domain page, etc.
Both could be accomplished by simply adding a new frontmatter key to the event spec that allows you to define a domain which then creates the relationship 🤔
Use Case
Speaking to a few folks, so capturing this here, and curious if you would find it useful to, if you do upvote this issue.
This feature would let people document events directly inside domains.
At the moment the relationship in EventCatalog is domains > services > messages.
This new proposal would like people do domains > events.
How it would work is simple, a folder
domain/MyDomain/events
and the events would be rendered in the Catalog.Similar #545
Proposed Solution
No response
Implementation Notes
No response
Community Notes
The text was updated successfully, but these errors were encountered: