Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI functionality is scattered between OG UI and OG modules. #315

Open
ArchieDoe opened this issue Feb 2, 2017 · 9 comments
Open

UI functionality is scattered between OG UI and OG modules. #315

ArchieDoe opened this issue Feb 2, 2017 · 9 comments

Comments

@ArchieDoe
Copy link
Collaborator

ArchieDoe commented Feb 2, 2017

For example, group UI on node page (group tab) is rendered by OG module, when OG basic configs (like group type roles, permissions, etc.) are rendered by OG UI module.

Another reason is to avoid code duplication. For example, we have (or potentially have) 2 similar pages: roles overview on group type page and roles overview on specific group. To render this we basically need same code, but following current implementation it should be done in 2 separate places with different classes.

To me all UI (and adding routes) should not be accessible when UI module is disabled, as it happens with other modules, e.g. views UI or fields UI.

I suggest to move all UI related functionality, including OgAdminRoutesController and interface into OG UI module.

@ArchieDoe
Copy link
Collaborator Author

Also, decision on this part blocks me from finishing #196

@amitaibu
Copy link
Owner

amitaibu commented Feb 2, 2017

Since in D8 code is better lazy loaded then D7 I wouldn't mind moving UI stuff to OG core.

@ArchieDoe
Copy link
Collaborator Author

ArchieDoe commented Feb 2, 2017

Ok, so should we move OG UI into core then?

@amitaibu
Copy link
Owner

amitaibu commented Feb 2, 2017

I think we can do that. @pfrenssen agree?

@ArchieDoe
Copy link
Collaborator Author

Yah, @amitaibu @pfrenssen, it might be a good idea to move it into main module.
For example this Gizra#231, which is also UI PR, done inside of main module

@amitaibu
Copy link
Owner

amitaibu commented Feb 2, 2017

Lets have a dedicated PR to do that.

@pfrenssen
Copy link
Collaborator

Sounds good to me.

@MPParsley
Copy link
Collaborator

MPParsley commented Dec 21, 2018

@pfrenssen this issue could use a new title: "Remove OG UI module"

I think merging OG & OG UI makes sense, since the UI isn't just for admin purposes like for example Field UI -- it's for the actual interaction of end users with the group functionality. I think, however it should be done in a separate PR, to keep this one from being too big.

@MPParsley
Copy link
Collaborator

See @amitaibu 's remark in Gizra#243 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants