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

Increase max length of org team names from 30 to 255 characters #31410

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Increase max length of org team names from 30 to 255 characters #31410

merged 3 commits into from
Jun 19, 2024

Conversation

tobiasbp
Copy link
Contributor

This PR modifies the structs for editing and creating org teams to allow team names to be up to 255 characters. The previous maximum length was 30 characters.

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 18, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 18, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jun 18, 2024
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jun 18, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 19, 2024
@silverwind
Copy link
Member

@techknowlogick do we need the migration mentioned in #31241 (comment)?

@techknowlogick
Copy link
Member

@silverwind nope, the database already has that length, this PR only modifies the validation rules for creation/editing of the team names.

@techknowlogick techknowlogick merged commit 1c26127 into go-gitea:main Jun 19, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.23.0 milestone Jun 19, 2024
@techknowlogick
Copy link
Member

Thanks @tobiasbp!

@wxiaoguang wxiaoguang added backport/v1.22 This PR should be backported to Gitea 1.22 type/enhancement An improvement of existing functionality labels Jun 19, 2024
@wxiaoguang
Copy link
Contributor

Let's backport it

GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Jun 19, 2024
…itea#31410)

This PR modifies the structs for editing and creating org teams to allow
team names to be up to 255 characters. The previous maximum length was
30 characters.
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Jun 19, 2024
wxiaoguang pushed a commit that referenced this pull request Jun 20, 2024
…) (#31421)

Backport #31410 by tobiasbp

This PR modifies the structs for editing and creating org teams to allow
team names to be up to 255 characters. The previous maximum length was
30 characters.

Co-authored-by: Tobias Balle-Petersen <tobias.petersen@unity3d.com>
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jun 20, 2024
* giteaofficial/main:
  Fix markdown math brackets render problem (go-gitea#31420)
  Reduce `air` verbosity (go-gitea#31417)
  Fix new issue/pr avatar (go-gitea#31419)
  Increase max length of org team names from 30 to 255 characters (go-gitea#31410)
silverwind added a commit to silverwind/gitea that referenced this pull request Jun 21, 2024
* origin/main: (21 commits)
  Fix deprecated Dockerfile ENV format (go-gitea#31450)
  README Badge maintenance (go-gitea#31441)
  Improve markdown textarea for indentation and lists (go-gitea#31406)
  Split common-global.js into separate files (go-gitea#31438)
  Fix the link for .git-blame-ignore-revs bypass (go-gitea#31432)
  Bump htmx to 2.0.0 (go-gitea#31413)
  Fix the wrong line number in the diff view page when expanded twice. (go-gitea#31431)
  Fix labels and projects menu overflow on issue page (go-gitea#31435)
  [Fix] Account Linking UpdateMigrationsByType  (go-gitea#31428)
  Fix markdown math brackets render problem (go-gitea#31420)
  Reduce `air` verbosity (go-gitea#31417)
  Fix new issue/pr avatar (go-gitea#31419)
  Increase max length of org team names from 30 to 255 characters (go-gitea#31410)
  [skip ci] Updated translations via Crowdin
  Refactor names (go-gitea#31405)
  Update JS dependencies, remove `eslint-plugin-jquery` (go-gitea#31402)
  Switch to upstream of `gorilla/feeds` (go-gitea#31400)
  Fix rendered wiki page link (go-gitea#31398)
  Refactor repo unit "disabled" check (go-gitea#31389)
  Refactor route path normalization (go-gitea#31381)
  ...
@silverwind
Copy link
Member

silverwind commented Jul 5, 2024

It seems no one actually tested it works. We need to be more dilligent and not assume that the contributor has actually tested their change in the absense of any automatic testing, like was the case here.

lunny pushed a commit that referenced this pull request Jul 10, 2024
Gitea 1.22.1 was supposed to allow for team names of length 255 (up from
30) after the following PR was merged in:
#31410. However, the length of
team names was still limited to 30 as described in this issue:
#31554.

One more change to _gitea_ needs to be made to allow for the longer team
names, as there is a 30 character limit here:
https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65

This PR changes that value to 255.
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Jul 10, 2024
…#31564)

Gitea 1.22.1 was supposed to allow for team names of length 255 (up from
30) after the following PR was merged in:
go-gitea#31410. However, the length of
team names was still limited to 30 as described in this issue:
go-gitea#31554.

One more change to _gitea_ needs to be made to allow for the longer team
names, as there is a 30 character limit here:
https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65

This PR changes that value to 255.
techknowlogick pushed a commit that referenced this pull request Jul 10, 2024
…31603)

Backport #31564 by @tobiasbp

Gitea 1.22.1 was supposed to allow for team names of length 255 (up from
30) after the following PR was merged in:
#31410. However, the length of
team names was still limited to 30 as described in this issue:
#31554.

One more change to _gitea_ needs to be made to allow for the longer team
names, as there is a 30 character limit here:
https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65

This PR changes that value to 255.

Co-authored-by: Tobias Balle-Petersen <tobias.petersen@unity3d.com>
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Jul 16, 2024
Gitea 1.22.1 was supposed to allow for team names of length 255 (up from
30) after the following PR was merged in:
go-gitea/gitea#31410. However, the length of
team names was still limited to 30 as described in this issue:
go-gitea/gitea#31554.

One more change to _gitea_ needs to be made to allow for the longer team
names, as there is a 30 character limit here:
https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65

This PR changes that value to 255.

(cherry picked from commit 4ea2a6de81ab6adde436d77e2743095fafa6a7a9)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants