Support org/user level projects#22235
Conversation
|
Can we rename projects to boards? That naming is very confusing imho |
|
Wasn't there even a PR already for that? Something like #22237? |
Codecov Report
@@ Coverage Diff @@
## main #22235 +/- ##
=======================================
Coverage ? 47.93%
=======================================
Files ? 1047
Lines ? 143029
Branches ? 0
=======================================
Hits ? 68558
Misses ? 66279
Partials ? 8192
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
make LG-TM work |
delvh
left a comment
There was a problem hiding this comment.
Ah… Too late again.
But still, here is what I reviewed before this PR was merged:
| } else { | ||
| if ctx.ContextUser.IsOrganization() { | ||
| ctx.Org.Organization = (*org_model.Organization)(ctx.ContextUser) | ||
| ctx.Data["Org"] = ctx.Org.Organization | ||
| } |
There was a problem hiding this comment.
| } else { | |
| if ctx.ContextUser.IsOrganization() { | |
| ctx.Org.Organization = (*org_model.Organization)(ctx.ContextUser) | |
| ctx.Data["Org"] = ctx.Org.Organization | |
| } | |
| } else if ctx.ContextUser.IsOrganization() { | |
| ctx.Org.Organization = (*org_model.Organization)(ctx.ContextUser) | |
| ctx.Data["Org"] = ctx.Org.Organization |
| Title string `xorm:"INDEX NOT NULL"` | ||
| Description string `xorm:"TEXT"` | ||
| OwnerID int64 `xorm:"INDEX"` | ||
| Owner *user_model.User `xorm:"-"` | ||
| RepoID int64 `xorm:"INDEX"` |
There was a problem hiding this comment.
| Title string `xorm:"INDEX NOT NULL"` | |
| Description string `xorm:"TEXT"` | |
| OwnerID int64 `xorm:"INDEX"` | |
| Owner *user_model.User `xorm:"-"` | |
| RepoID int64 `xorm:"INDEX"` | |
| Title string `xorm:"INDEX UNIQUE(title_owner_repo) NOT NULL"` | |
| Description string `xorm:"TEXT"` | |
| OwnerID int64 `xorm:"INDEX UNIQUE(title_owner_repo)"` | |
| Owner *user_model.User `xorm:"-"` | |
| RepoID int64 `xorm:"INDEX UNIQUE(title_owner_repo)"` |
I think this constraint makes sense.
However, if we add it, we should probably mark this PR as breaking as it would require to rename existing duplicated titles (that should not have ever been used already)
| m.Get("", repo.Projects) | ||
| m.Get("/{id}", repo.ViewProject) | ||
| m.Group("", func() { | ||
| m.Group("", func() { //nolint:dupl |
| } else { | ||
| if ctx.ContextUser.IsOrganization() { |
| if teamUnit.Type != tp { | ||
| continue | ||
| } | ||
| if teamUnit.AccessMode > maxAccess { |
There was a problem hiding this comment.
| if teamUnit.Type != tp { | |
| continue | |
| } | |
| if teamUnit.AccessMode > maxAccess { | |
| if teamUnit.Type == tp && teamUnit.AccessMode > maxAccess { |
?
|
@delvh just send a pull rever to this ... |
Fix #13405