Hey guys,
I have a mono repo, lets say it's called Application.
Within the mono repo (it's salesforce based, so basically a repo is just all the code/metadata in one repo) we have different metadata. This can include the custom classes, lightning web components (think react components), pages, layouts, profiles, objects (think tables in a database) etc.
However each metadata is part of a different module e.g. Application Module Invoices.
So the main compass component can check PR time, deployments etc easily because it's for the whole repo. But how do I track deployments or PR's related to a specific module? Do I have to curl a request each time using my pipeline when I deploy using maybe like commit message syntax e.g. "Feat(invoice): deployed new pdf changes compass: invoice" and parse it to then send a curl request saying a commit has been made or something to compass?
as you can see deployments are not matching, because deployments are tracked at the main compass component level, not the module attached to the mono repo.
Hi, @Abdullah Ahmad !
The approach that you outline is correct: Compass can have a component associated with the monorepo itself and track all activity for that repository automatically.
For each contained module, there's a monorepo setting that can be enabled and that would prevent the stats from the full monorepo to be reflected on the individual module.
This then makes it possible to send targeted events from the related CI/CD job for that individual module, as you mentioned, using the Compass API, and wiring it to the related pipeline (example). Using config-as-code can also help you structuring a similar setup.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.