Skip to content

Affiliations Refactoring

Luis Arias requested to merge feature/affiliations into develop

This MR adds support for correctly model joining relations between projects and spaces on one hand and spaces, challenges and programs on the other. The following screenshot illustrates both owner relations (one object can create another) and affiliation relations in the platform.

image

  • spaces, programs and challenges can have affiliates
  • affiliates may be projects or spaces
  • use creation relations and project affiliates when calculating needs / members
  • affiliatable and affilate model concerns
  • attach / detach (space | project) method name pattern
  • explicit initial state also in attach method name
  • replace challenges_projects relation with affiliation
  • challenges_projects data migration
  • implement space -> challenge creation relation (spaces can create challenges)

Fixes: https://gitlab.com/JOGL/JOGL/-/issues/622

Edited by Luis Arias

Merge request reports