-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
KanBan: be able to set default board #14147
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
Merged
Merged
Changes from 20 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
2cca177
Make Backend Support Default Bords
6543 5285b30
routers
6543 0a4be1a
Frontend
6543 ea1a87f
refactor
6543 99f0798
Apply suggestions from code review
6543 6d9b0fd
Merge branch 'master' into default-board
6543 3bea260
format xorm query code
6543 bc3f578
fix&lint frontend
6543 4e2978a
Merge branch 'master' into default-board
6543 b3d6367
Merge branch 'master' into default-board
6543 7c9a4ae
Merge branch 'master' into default-board
6543 82f77b7
Merge branch 'master' into default-board
6543 78e4a2f
indentation fixes
zeripath 89ebac6
Merge branch 'master' into default-board
6543 21db43d
add test
6543 812b1ec
Merge branch 'master' into default-board
6543 27587c3
Merge branch 'master' into default-board
6543 21ec9da
Merge branch 'master' into default-board
6543 96db8b5
Merge branch 'master' into default-board
6543 20220ff
Merge branch 'master' into default-board
6543 e012a59
use "reload()" in web_src/js/features/projects.js
6543 0b5a613
Merge branch 'master' into default-board
6543 92be760
Merge branch 'master' into default-board
6543 92ce946
fix lint
6543 0b108e3
use "window.location.reload();"
6543 cffb248
Merge branch 'master' into default-board
6543 fd2ed40
Merge branch 'master' into default-board
6543 f7557ad
Merge branch 'master' into default-board
6543 a967a57
Merge branch 'master' into default-board
6543 2ac6ca6
Merge branch 'master' into default-board
6543 e6d7238
Merge branch 'master' into default-board
6543 7184ad8
Merge branch 'master' into default-board
6543 123b8c6
Merge branch 'master' into default-board
6543 0987586
dont use InternalServerError()
6543 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2020 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package repo | ||
|
||
import ( | ||
"testing" | ||
|
||
"code.gitea.io/gitea/models" | ||
"code.gitea.io/gitea/modules/test" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestCheckProjectBoardChangePermissions(t *testing.T) { | ||
models.PrepareTestEnv(t) | ||
ctx := test.MockContext(t, "user2/repo1/projects/1/2") | ||
test.LoadUser(t, ctx, 2) | ||
test.LoadRepo(t, ctx, 1) | ||
ctx.SetParams(":id", "1") | ||
ctx.SetParams(":boardID", "2") | ||
|
||
project, board := checkProjectBoardChangePermissions(ctx) | ||
assert.NotNil(t, project) | ||
assert.NotNil(t, board) | ||
assert.False(t, ctx.Written()) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.