With our current architecture we're facing a crossroad, where we need to talk about how could be the best approach to handling all the git repositories and all the problems that we're having right now and the problems to come.
On one hand, this is the picture right now:
Official modules on decidim/decidim
Official modules outside decidim/decidim
Non official modules
- Census (DIBA)
- Crowdfundings (podemos-info)
- DataViz (Barcelona)
- Debates (Barcelona)
- Members (FundAction)
- Pol.is (OSP)
- Surveys (Hospitalet)
- User Export (OSP)
- Verification Census API (DIBA)
- Verification Census API (Barcelona)
- Votings (podemos-info)
Two possible roads
This is mostly how we're working right now. The only difference between what belongs on decidim/decidim right now are not technical issues but mostly administrative reasons (which company has made that development). This would involve moving all the Official modules outside decidim/decidim to Official modules on decidim/decidim.
This is simpler, specially because it allows the APIs to change on any given moment and make that change on a single PR, and all the CI and translations on the same place. Also simpler to grep.
A couple big companies that had this model are Google and Facebook. More info: https://danluu.com/monorepo/
This doesn't scale that well (lots of LOC for every module, lots of times to CI to finish).
Most of the modules of Official modules on decidim/decidim should go outside, leaving a leaner core module:
All the other modules would be on separate repositories.
Allows to make the APIs between modules more mature, allow better scaling.
This have some pain points, regarding:
- Translations: we should create a new crowdin project with their integration
- CI: configure again. Maybe with dummy apps and default configs it's a little less pain
Having somekind of generators or a skeleton on making a new gem would reduce these pain points.