-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Adding private issues functionality #17711
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
Closed
Closed
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
05ec3f1
WIP
5652ea1
Add UI/backend-end handling
46f1cc7
Add toggle
0e1e744
Add NumPrivate{Closed,Open,}Issues (BEGIN)
8e63544
Respect issue's private on API
14bfc69
Fix issue Right checking
a810833
Fix issue list on poster
faadf71
Code review feedback
f7da3f2
Fix compiling
ea6a63f
Restrict changing state to poster + admin
535cec3
Fixing up some permissions
045374c
Merge branch 'main' into private-comments
4706958
Add team permission
cef707a
Merge branch 'main' into private-comments
b728100
Fix comments
108ae1f
Add migration
75c8a34
Fix header calculation
fe48cfb
Fix showing confidential button.
de88171
Fix listing issues on other places
777694a
Add permission checking to api
aca5ad2
Fix database errors
cb5ebf6
Fix api not found
ba762be
Allow API to create confidential issues
c784db7
Fix copy pasta
23be89d
Fix notifications checking (I think?)
9fd110f
Fix permission checking
8e2b43b
Simplify
87792d3
Fix mail permission checking
9c396b8
Disallow private issues on webhooks
d6edd41
Merge branch 'main' into private-comments
d4ebb38
Migration: set owner's team to see private issues
8f58908
Fix unit tests
1714bf5
Fix migration
6c1f279
Typo in field
790975f
Fix issues loading for admins
44a4b63
Load correct issues on projects
45dcc98
Actually fixup permissions
b1a1972
Fix projects with private issues
8461e94
Make linter happy
04efd7f
Merge branch 'main' into private-comments
b1915c0
Load issue on comments on API
ec998e8
Fix GetCodeCommentsCount
51ea1a2
Fix tests
69851a9
More verbose error
f8feef7
Add some more locks
312a5b4
More locks!
1ffb2f3
Simplify
69abea3
Add a lock
254c500
Make linter happy
211804b
PR's are not supported
58de704
Add tooltip data to sidebars
82f14ec
Don't leak private issues via activity tab
1fa3372
Merge branch 'main' into private-comments
27fe481
Make linter happy
e9db7ef
Remove redunant space
9a67e55
Merge branch 'main' into private-comments
74bc87a
Fix build errors
51a7ea1
Replac with better icons
9971830
Add icon into issue list
bced477
Attract some attention
cf28438
Best-effort
29323ce
Fix attachment fixtures
60a5a3c
Merge branch 'main' into private-comments
596916f
Simplify migration
dcdf3c7
Fix attachment fixtures
69bdec9
Simplify condition
8cd0fbb
Use private
6cb1a5d
Use options
e1db0e5
Merge branch 'main' into private-comments
eaa5c54
Fixup error
c082f66
Remove TODO
a1deafb
Merge branch 'main' into private-comments
3bfa133
Refactor into `CanSeeIssue` function
07d252a
Apply code review suggestions
37f0a21
Merge branch 'main' into private-comments
7253c73
Merge branch 'main' into private-comments
0436cd7
Fix errors
241d735
Apply suggestion from code-Review
9b93d30
Merge branch 'main' into private-comments
c560ddb
Merge branch 'main' into private-comments
52b58b4
Merge branch 'main' into private-comments
8a6fb51
Fix panic on projects page
d268277
Fix some more problems
f581410
Fix projects with confidential Issues
0ed31e2
Gofumpt code
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
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
Oops, something went wrong.
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.