fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
57 stars 28 forks source link

Make possible define more than one organization by coop #139

Open vitormattos opened 1 year ago

vitormattos commented 1 year ago

Today if we want to put more than an organization by coop the page render as multiple rows as a new coop, not as a coop with multiple organizations.

The suggestion is to be possible define one or more organizations by coop. Maybe we can change the Yaml structure from this:

key_org_name:
  source: github|gitlab|git.coop
  login: <USERNAME_IN_THE_SOURCE>
  name: <NAME_OF_THE_COOP>
  url: <URL_OF_THE_COOP>
  description: <DESCRIPTION>
  location: <LOCATION>

to this:

key_org_name:
  - source: github|gitlab|git.coop
    login: <USERNAME_IN_THE_SOURCE>
    name: <NAME_OF_THE_COOP>
    url: <URL_OF_THE_COOP>
    description: <DESCRIPTION>
    location: <LOCATION>
  - source: github|gitlab|git.coop
    login: <USERNAME_IN_THE_SOURCE>
    name: <NAME_OF_THE_COOP>
    url: <URL_OF_THE_COOP>
    description: <DESCRIPTION>
    location: <LOCATION>
  - source: github|gitlab|git.coop
    login: <USERNAME_IN_THE_SOURCE>
    name: <NAME_OF_THE_COOP>
    url: <URL_OF_THE_COOP>
    description: <DESCRIPTION>
    location: <LOCATION>

I suggest the follow to-do list:

Original discussion:

Yes, I know. Will be necessary refactor the place that render this page.

Maybe will be necessary to change the yaml structure to don't implement a workaround but to implement a good change.

But, I think that will be best to have this discussion in a issue, not at this PR.

And, about your request, what you want that me do?

_Originally posted by @vitormattos in https://github.com/fiqus/coophub/pull/138#discussion_r1182813219_