Repository navigation
Teams and Ownership: a new feature in the Polylith tool #471
DavidVujic
announced in
Announcements
Replies: 1 comment
|
Docs will be added shortly. In the meantime, have a look at the description for this PR #468 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When presenting Polylith, one of the most common questions is:
The answer usually is that it is something the Teams need to agree on. What ownership means and how to implement it in practice.
My recommendation about Team Ownership within Software Development in general is that it's not about the lines of code. It is about the thing being deployed (the service, the app or command line tool). Even with a multi-repo microservices setup, where different teams own the individual repos, there are usually shared libraries without any dedicated owner.
In Polylith, all code is shared. The bricks can be seen as mini-libraries if you like. It wouldn't make sense here if one team owns a set of bricks. But it might make sense to have ownership of projects. A project is the thing being deployed, using the bricks it needs.
The latest version of the
polytool has added support for this use case, and it is possible to have automated triggers based on the configured teams.Example configuration (in
workspace.tomlor if you prefer, inpyproject.toml):The
poly diffcommand is the recommended way to steer the CI workflows, such as what project(s) to deploy based on the changes in code. The command has now a new option:--teams. This command will output the Teams affected by the changes.The output can be used to send automated notifications to the teams in Slack, Teams or any of your favorite communication tool. It can be used to automate the requested reviewers for a Pull Request. For GitHub, you can add an action that sets the reviewers based on the teams.
The poly command:
The
--shortis the CI friendly option that will output a comma-separated list of team names.I hope this will be a useful addition to the daily work for organization with several teams with areas of responsibilities or ownership!
All reactions