Problem/Motivation
Port Organic Groups to Drupal 8.
Check #2591017: [og] Organic Groups for progress.
This seems to be more up to date (#48) https://github.com/amitaibu/og
An initial port is available on GitHub at https://github.com/Gizra/og/tree/8.x-1.x
Remaining tasks
User interface changes
API changes
Original report by wadmiraal
Hi all.
We're in the middle of planning/developing a new Drupal distribution that heavily relies on OG. But with Drupal 8 nearing code freeze, we're seriously thinking starting to port our current code base to Drupal 8 and continue development on the 8.x branch.
However, being so dependent on OG, we first want to know if you guys have started planning/working on OG 8.x
Comments
Comment #1
Grayside CreditAttribution: Grayside commentedComment #2
amitaibuDevelopment hasn't started yet, I plan to find sponsors for this task as its a big one...
Comment #3
wadmiraal CreditAttribution: wadmiraal commentedI imagine... We'll stick to D7 for now. When D8 gets out, we might be able to give you a hand with the port, though ;-)
Comment #4
Pancho@wadmiraal: If you're planning to build upon a considerable number of contrib modules, and you don't plan to do the 8.x porting yourself, it might take another 18 or even 24 months until your distribution's dependencies are stable enough.
It's only now - 24 months after Drupal 7.0 - that some major distributions come up with a Drupal 7 port.
If on the other hand you only need a few major contrib modules and plan to add the rest by custom modules, then you should be able to get things done by the end of 2013.
Comment #5
wadmiraal CreditAttribution: wadmiraal commented@Pancho
You make a valid point. Our goal is not necessarily to have something rock-solid by the end of 2013 - it would still be an alpha release that shortly after Drupal 8 gets out. We don't depend on many contrib modules, but the ones we do are fairly large and complex (like OG). We'll stick to D7 for now.
Comment #6
Pancho#5: Funny, but from your explanations (few, large contrib projects, no tight release plan), aiming for a D8 bleeding edge Distro by Q1 or Q2/2014 sounds like a good perspective...
Comment #7
wadmiraal CreditAttribution: wadmiraal commentedBut if the large contrib projects don't even have a -dev release by Q1, the distro won't have the necessary functionality :-)
Comment #8
silkogelman CreditAttribution: silkogelman commentedWhat's OG 8.x's current status?
How can we help? (maybe help finding sponsors / testing and such?)
Comment #9
moshe weitzman CreditAttribution: moshe weitzman commentedThere is a sandbox port at https://drupal.org/sandbox/webflo/2281207
Comment #10
amitaibu... and another effort here -- https://github.com/arosboro/og-8.x
I'll create an official repo on Github soon, so collaboration would be easy.
Comment #11
RoySegall CreditAttribution: RoySegall commentedI'll join in if you don't mind. I can see that last commit in the repo that amitai showed here was last updated in Nov 20, 2013 and the code is not fully compatible with the new structure. I created another repo in here - https://github.com/roysegall/og. I'll try to work on this but think other projects will consume the time for that.
Comment #12
rgchi CreditAttribution: rgchi commented@moshe-weitzman Thanks for the sand box link.
@roysegall May I begin testing on this repo in a D8 vagrant set up (https://github.com/geerlingguy/drupal-dev-vm)?
Comment #13
RoySegall CreditAttribution: RoySegall commented@rg_chi Sure but there need to be a code update since a lot of change from the last time especially the entity declaration.
Comment #14
mglaman@RoySegall, I forked your repo and I'll try to set aside some time to update the entity declarations and create some PRs
Comment #15
mradcliffeI'd like to hack on this in Amsterdam. Anyone else interested?
Comment #16
RoySegall CreditAttribution: RoySegall commentedLove that idea. Count me in.
Comment #17
AndrzejG CreditAttribution: AndrzejG commentedBeta 1 of D8 is launched. OG 8 are badly needed. Please do a step forward.
Comment #18
RoySegall CreditAttribution: RoySegall commentedI'm already working on this. If you at DrupalCon you more then welcome to join.
Comment #19
huma2000 CreditAttribution: huma2000 commentedGreat RoySegall, looking fordward for the first alpha of the project!
Comment #20
huma2000 CreditAttribution: huma2000 commentedStarted a sandbox Project where I will be using it and testing, will report bugs, the Project is https://www.drupal.org/sandbox/huma2000/2359075
Comment #21
joachim CreditAttribution: joachim commentedIt would be useful to think about some of the issues and difficulties that came up on 7.x-2.x that couldn't be resolved because they would have caused API breakages.
One that springs to mind is the confusion with whether group types are a single bundle, or all the bundles of an entity type. IIRC there's a few places in the API where this is mixed up a bit.
Another is the way that permissions are handled separately from the group membership.
Comment #22
RoySegall CreditAttribution: RoySegall commented@huma2000 - no need for a new repo, you can fork mine and make PR against it.
Comment #23
amitaibu> One that springs to mind is the confusion with whether group types are a single bundle
Single bundle. Where in the d7 code do you see differently?
> Another is the way that permissions are handled separately from the group membership.
You mean you would expect to have
$og_membership->hasAccess('foo')
, right?Comment #24
mglamanCan the issue be updated highlighting the GitHub repo to fork, and status progress (core issues, etc.).
Our product relies on OG and having it ready for 8.0.x is critical. Willing to donate quite a bit of time for work.
Comment #25
joachim CreditAttribution: joachim commented> Single bundle. Where in the d7 code do you see differently?
#1997378: [meta] Inconsistencies between groups as entity types and groups as bundles
> You mean you would expect to have $og_membership->hasAccess('foo'), right?
Probably :)
On D7, it feels like there are two parallel systems in play: the membership entity on the one hand, and the member's permissions and access on the other.
Comment #26
huma2000 CreditAttribution: huma2000 commentedI'm also happy to donate some for helping the OG development if needed.
Comment #27
RoySegall CreditAttribution: RoySegall commentedLater i'll open issues in the github repo so people would know which issues we need in order to get the basic OG module(without the other sub-modules) ready for drupal 8. This include the relation ship between groups and group content, permissions etc. etc.
Comment #28
huma2000 CreditAttribution: huma2000 commentedGreat news, I also think now is the momento to refactor the og module and solve all the problems from d7 versión and maybe expand it a bit, but lets go step by step!
Comment #29
mglamanRoySegall, cool!
One question on workflow, keeping community members involved. Commerce uses GitHub and PRs for 8.x development, but keeps issues on D.o for tracking in commit messages and to lead newcomers to the development. When a PR is opened, ticket is "CNR", when merged "Fixed."
My fear of having the issues only on GitHub is that we'll lose volunteers. We'll also lose the "8.x Metaplan" tracking ability found on issues like
Which we should identify Core issues that block some of the OG functionality. I really believe D8 will cut down OG's complexity, which is what I'm excited for. I also believe many projects/services rely on OG and that will make it a major player in D8 migrations.
Comment #30
RoySegall CreditAttribution: RoySegall commentedWell... I did some minor brief on og.module file and i came up with couple of issues: https://github.com/RoySegall/og/issues. I think/know and feel there's more - feel free to open. Good luck!
Comment #31
pfrenssenComment #32
pfrenssenI also think we should not open tickets in Github, but instead all tickets regarding the D8 port should be created here. First step would be to create a new version tag, so we can tag issues with 8.x-2.x-dev.
Comment #33
Anonymous (not verified) CreditAttribution: Anonymous commentedany news with the official d8 port?
Comment #34
zerolab CreditAttribution: zerolab at Torchbox commentedHi,
Do you have a roadmap to Drupal 8? Is it sponsorship or more developer resource?
What are the blockers?
Thank you,
Dan
Comment #35
RoySegall CreditAttribution: RoySegall commentedTime is most needed asset. and developers.
Comment #36
zerolab CreditAttribution: zerolab at Torchbox commentedThank you for your reply, RoySegall.
Understood. Time is probably one thing we struggle most as well.
Is there an official roadmap and high level vision for developers to look at?
Comment #37
RoySegall CreditAttribution: RoySegall commentedWhere i left we i all the data structure ready for work - og membership, roles etc. etc. OG have a huge(!) amount of tests and the module upgrader can convert those tests so we can start work by a TDD workflow. We might need to move around files and update the name of the classes we extends but basically people can start work.
I don't have a complete roadmap just make it working. After i'll finish porting message and message notify i can get back to OG and define road maps with some namedropping: dependency injection, services, UX, UI(OG ui need a massive UX and UI) etc. etc.
Comment #38
mamta.suri CreditAttribution: mamta.suri commentedJust checking if there are any updates. Thanks!
Comment #39
RoySegall CreditAttribution: RoySegall commentedNothing new at this point but i'll try to get back to this one. If not keep working make the current code work with D8 since we had a couple of API changes.
Comment #40
dpiRelated: Github: Development roadmap for OG 8.x
Comment #41
platinum1 CreditAttribution: platinum1 commentedChecking for updates too. Thank you :-)
Comment #42
mamta.suri CreditAttribution: mamta.suri commentedJust wondering if there are any updates?
Comment #43
RoySegall CreditAttribution: RoySegall commentedWe working on the getting the fundamentals and complex for OG so other people could join without losing their minds.
Comment #44
webankit CreditAttribution: webankit commentedComment #45
mxh;)
Comment #46
dakalaSorry, this isn't directly related to porting OG to Drupal 8. But I'm experimenting with a different solution to user groups using only taxonomy. Here's the sandbox: https://www.drupal.org/sandbox/dakala/2322071
Comment #47
crobicha CreditAttribution: crobicha as a volunteer commentedTook quite a bit of searching, but it looks like this is the most active port: https://github.com/amitaibu/og
Comment #48
silkogelman CreditAttribution: silkogelman as a volunteer commentedHere's the link to the Organic Groups issue at Drupal 8 Contrib Porting Tracker:
#2591017: [og] Organic Groups
Comment #49
clemens.tolboomComment #50
pfrenssenClosing this as a duplicate of the "official" D8 contrib tracker issue which has more up-to-date information and is shown prominently on the project homepage: #2591017: [og] Organic Groups.
Comment #51
clemens.tolboomUntil the project page https://www.drupal.org/project/og contains a D8 section/link to the 'official' issue this issue is too important to close.
Comment #52
mccrodp CreditAttribution: mccrodp as a volunteer and at Open source, open mind commentedIt's down at the bottom of the project page (like all the contrib tracker issues):
Comment #53
clemens.tolboomHoly crap ... what a UX :(
I search the text for a D8 section.
Comment #54
sgarcata CreditAttribution: sgarcata commentedwhere do I find the current (Sept 2018) status of Organic Groups?
Comment #55
clemens.tolboom@sgarcata check this issue summary which refers to an issue for the contrib tracker project
Comment #56
sgarcata CreditAttribution: sgarcata commentedthanks clemens.tolboom... I didn't see anything there... searched on "Organic groups" - nothing found; searched on "group" - errored out.