-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Subgroups in Gitea #1872
Comments
Does Teams provide some or all of this functionality? What is missing from Teams? |
Teams would not provide "endless" nested groups 🙁 In any case, this would require a large rewrite of how we're handling Organizations today (GitLab put a lot of time into Subgroups...) and would not be backwards compatible (hence why Subgroups in GitLab was introduced in a Major release so breaking changes was allowed 🙂 ) |
And to better answer @razzintown, Teams can't have repositories. |
Let me know if my understanding is correct:
Since multiple teams may share a private repo, is there any other functionality missing? |
Sub-groups are not only about permissions, but structure as well. Say you have an Orga with a total of 300 repos over 30 teams, there's no way to structure that w/o proper "folders" (sub-groups). So in the end you end up with |
In any case, this would break a lot of existing stuff and be a major overhaul so I'm setting this for 2.0 for now |
This would automatically give us the pastebin/gist feature #693 as well, or any related idea, since some nested names could be reserved for those features like It could also eventually allow federation since it basically boils down to automagic merging, and using mirrors nested in reserved namespace would allow for manual conflict resolution as fallback without polluting the root namespace with lots of mirrors. |
We org our git projects into groups of bounded contexts. Where the git repo is, informs the purpose, scope, and communication channels, as well as the authorization to the project. subgorups can be valuable. |
Is there any estimable timeline when this could potentially be implemented? This would be super useful. |
@Th3Whit3Wolf No people are working on this. |
Still no update? |
dont see any |
I use Gitea for myself and Gitlab for team work. In Gitlab we have subgroups containing a lot of repos. That's what's keeping us from migrating. This possibility in Gitea would be really great. |
It is planed but nobody does work on this currently |
Ok thanks for the confirmation |
Currently this feature is already available in Github |
would also love this feature. Our team is migrating from GitLab and this is a feature we sorely miss |
I'm planing to work on virtual subgroup functionality that would not affect urls so repository names would still need to be unique but it would allow grouping repos in subgroups |
I dig how GitLab groups can be used for access control - would the virtual subgroups be similarly used? ... and I like the namespace. For example, I'd like parent Gitea groups for bounded contexts. Each context could have subgroups based on convention as GitLab has some troubles sorting out GitLab Pages' domains with subgroups. What makes subgroups difficult with Gitea? |
I agree, but I think virtual subgroups without namespaced paths is a good and easy starting point. I support that for sure but would also like to see it go further. |
With or without URL path, the important thing is to have some repositories into subgroups. |
I could understand many users really like this feature and I also like it, however, by my understanding, it is nearly impossible to implement it at the moment. There are too many blockers for it. |
So the work could start by making a list of these blocking issues. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
8 years it has been. Can we setup a bounty for that feature ? |
Would you accept a router like |
When we implement the concept and design of groups, But anyway, it's a very good start! |
Yes, in the future, we plan to support structures like org1/-/group1/subgroup1/repo1. However, initially, we may limit support to a single tier to make it easier to be implemented. |
EdgecasesNote, however, that before we implement anything like that, we must first think about the permission system. Is this worth it?It's exactly these questions that make me ask myself if this feature is really worth it? SuggestionI think at the heart of this discussion, there is a conflict between what is stated here and what is actually needed: What I think is needed instead is the following: Or am I missing something here? This UI would need to do two things:
|
I am just a user here. All I need is namespaces to repositories. I don't like gitlab's approach. it is confusing. Repositories are in organizational entities like groups. Namespaces are ok for me they are just prefixes. It can be shown as a tree. Groups are organizational structures. It can be handled elsewhere. One can give namespace permissions to groups etc. |
Maybe we can support a custom filter on the repositories list, this approach will not touch any other infrastructure. The team can add repositories or a repository filter(we can have a new name for that). And also a default filter can be assigned to a team or a user in this organization. But I don't know whether this satisfy most of your requirements. |
For individual users, there is no team, no organization, so the existing functionality is perfectly adequate. |
Several levels of grouping are not often encountered in practice. A very good start with one level, maybe even sufficient. |
one note on that notation though.. if repos belong to groups - and thats the same as "permissions" ? - then we agree repos that needs to be accessed by other groups - needs to be outside any group, or? |
No, existing functionality is not adequate, if I have 200 repositories for example. I need to organize them in sub projects. There is no groups at this time, but there may be. so I should be able to give permissions to groups. |
I know for a fact there are at least two companies that are not migrating from Gitlab to Gitea because there are no groups for organizational purposes. Groups are purely used to organize your organization's (aka development team's) repositories and one level is more than enough. This is already useful, purely so you do not have 200 repositories in a single list. Making things like permissions/issue lists/whatever a prerequisite is just scope creep and will only add more and more delays to this feature which people have been requesting for almost 8 years(!) Once the basics are implemented you can always completely redo the feature with overengineered permission systems and other bells and whistles and spend another 8 years on that if necessary, but I think getting something out quickly will make 🤷🏻♂️ |
I totally agree. Same here. We wanted to migrate and "just" needed a simple hierarchy : /project-A/component1/code_a , and having 2 level "groups" would have been nice too. Of course there were other issues (the most important one was CI token rights to push on registries), but groups were one of them |
If I wasn't clear - yes. Merely a categization of repos (1 level is fine) - so you can work with a "subset of repos" in a list - would be more than enough. |
💎 $80 bounty • Frank Villaro-Dixon💎 $100 bounty • jozek.wolochSteps to solve:
Thank you for contributing to go-gitea/gitea! Add a bounty • Share on socials
|
/attempt #1872
Options |
Hi @GamerGirlandCo , since this is a very complicated feature. Please discuss more in this issue before you can send a pull request. |
@lunny here's a checklist i made over the last few days encompassing tasks that need to be completed
|
Does this allow for recursive groups ? If so, by seeing the URLs, I guess they don't show on the URL ? Cheers |
yes it does, up to 20 levels :) and on group pages, there will be a breadcrumb showing the group's ancestors |
Thank you very much for your work! IIRC there is another blocker: how to generate and parse/handle the repo link correctly, because the "/{owner}/{repo}" format has been hard-coded everywhere for years, new design needs to handle the new path format correctly, otherwise many things won't work (for example: repo access, the markdown render) And since this task is quite challenge and the participants should be very familiar with Gitea's internals, I think if new participants could start with some easy tasks (like improving tests, refactor legacy problems), then it would help to understand more details of internals and design the new approach better. |
my implementation doesn't modify the existing URL format.
i guess that's fair. though i'd like to think that working on this for the past week (give or take) is teaching me about gitea's internals quite well :) |
Feature proposal
GitLab 9.0 now allows to create subgroups for groups/organizations, It would be great if we could do the same in Gitea.
The text was updated successfully, but these errors were encountered: