2
0
Commit Graph

1908 Commits

Author SHA1 Message Date
GiteaBot
bd8ccc6849 [skip ci] Updated translations via Crowdin 2022-04-01 00:17:38 +00:00
zeripath
01c064c12d Add Goroutine stack inspector to admin/monitor (#19207)
Continues on from #19202.

Following the addition of pprof labels we can now more easily understand the relationship between a goroutine and the requests that spawn them. 

This PR takes advantage of the labels and adds a few others, then provides a mechanism for the monitoring page to query the pprof goroutine profile.

The binary profile that results from this profile is immediately piped in to the google library for parsing this and then stack traces are formed for the goroutines.

If the goroutine is within a context or has been created from a goroutine within a process context it will acquire the process description labels for that process. 

The goroutines are mapped with there associate pids and any that do not have an associated pid are placed in a group at the bottom as unbound.

In this way we should be able to more easily examine goroutines that have been stuck.

A manager command `gitea manager processes` is also provided that can export the processes (with or without stacktraces) to the command line.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-31 19:01:43 +02:00
GiteaBot
d55c02bfaa [skip ci] Updated translations via Crowdin 2022-03-31 00:18:20 +00:00
Norwin
ec002712c8 fix link to package registry docs (#19268) 2022-03-30 15:17:05 -04:00
KN4CK3R
9437883f51 Add Package Registry (#16510)
* Added package store settings.

* Added models.

* Added generic package registry.

* Added tests.

* Added NuGet package registry.

* Moved service index to api file.

* Added NPM package registry.

* Added Maven package registry.

* Added PyPI package registry.

* Summary is deprecated.

* Changed npm name.

* Sanitize project url.

* Allow only scoped packages.

* Added user interface.

* Changed method name.

* Added missing migration file.

* Set page info.

* Added documentation.

* Added documentation links.

* Fixed wrong error message.

* Lint template files.

* Fixed merge errors.

* Fixed unit test storage path.

* Switch to json module.

* Added suggestions.

* Added package webhook.

* Add package api.

* Fixed swagger file.

* Fixed enum and comments.

* Fixed NuGet pagination.

* Print test names.

* Added api tests.

* Fixed access level.

* Fix User unmarshal.

* Added RubyGems package registry.

* Fix lint.

* Implemented io.Writer.

* Added support for sha256/sha512 checksum files.

* Improved maven-metadata.xml support.

* Added support for symbol package uploads.

* Added tests.

* Added overview docs.

* Added npm dependencies and keywords.

* Added no-packages information.

* Display file size.

* Display asset count.

* Fixed filter alignment.

* Added package icons.

* Formatted instructions.

* Allow anonymous package downloads.

* Fixed comments.

* Fixed postgres test.

* Moved file.

* Moved models to models/packages.

* Use correct error response format per client.

* Use simpler search form.

* Fixed IsProd.

* Restructured data model.

* Prevent empty filename.

* Fix swagger.

* Implemented user/org registry.

* Implemented UI.

* Use GetUserByIDCtx.

* Use table for dependencies.

* make svg

* Added support for unscoped npm packages.

* Add support for npm dist tags.

* Added tests for npm tags.

* Unlink packages if repository gets deleted.

* Prevent user/org delete if a packages exist.

* Use package unlink in repository service.

* Added support for composer packages.

* Restructured package docs.

* Added missing tests.

* Fixed generic content page.

* Fixed docs.

* Fixed swagger.

* Added missing type.

* Fixed ambiguous column.

* Organize content store by sha256 hash.

* Added admin package management.

* Added support for sorting.

* Add support for multiple identical versions/files.

* Added missing repository unlink.

* Added file properties.

* make fmt

* lint

* Added Conan package registry.

* Updated docs.

* Unify package names.

* Added swagger enum.

* Use longer TEXT column type.

* Removed version composite key.

* Merged package and container registry.

* Removed index.

* Use dedicated package router.

* Moved files to new location.

* Updated docs.

* Fixed JOIN order.

* Fixed GROUP BY statement.

* Fixed GROUP BY #2.

* Added symbol server support.

* Added more tests.

* Set NOT NULL.

* Added setting to disable package registries.

* Moved auth into service.

* refactor

* Use ctx everywhere.

* Added package cleanup task.

* Changed packages path.

* Added container registry.

* Refactoring

* Updated comparison.

* Fix swagger.

* Fixed table order.

* Use token auth for npm routes.

* Enabled ReverseProxy auth.

* Added packages link for orgs.

* Fixed anonymous org access.

* Enable copy button for setup instructions.

* Merge error

* Added suggestions.

* Fixed merge.

* Handle "generic".

* Added link for TODO.

* Added suggestions.

* Changed temporary buffer filename.

* Added suggestions.

* Apply suggestions from code review

Co-authored-by: Thomas Boerger <thomas@webhippie.de>

* Update docs/content/doc/packages/nuget.en-us.md

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Thomas Boerger <thomas@webhippie.de>
2022-03-30 16:42:47 +08:00
GiteaBot
a1130d307c [skip ci] Updated translations via Crowdin 2022-03-30 00:17:38 +00:00
zeripath
523720416a Show last cron messages on monitor page (#19223)
As discussed on #19221 we should store the results of the last task message on the
crontask and show them on the monitor page.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-03-29 02:31:07 +01:00
Pilou
7371471729 New cron task: delete old system notices (#19219)
Add a new cron task which deletes the old system notices.
2022-03-28 13:54:59 +01:00
GiteaBot
f990b24cb5 [skip ci] Updated translations via Crowdin 2022-03-28 00:17:27 +00:00
GiteaBot
f8df3846f2 [skip ci] Updated licenses and gitignores 2022-03-27 00:17:35 +00:00
GiteaBot
152b5fc9e8 [skip ci] Updated translations via Crowdin 2022-03-25 00:17:35 +00:00
MeIchthys
e5aab898e0 Update issue_no_dependencies description (#19112)
To be more consistent and concise we could change the issue_no_dependencies from: `This issue currently doesn't have any dependencies. ` to `No dependencies set.` like we do for the due date and others.

Co-authored-by: delvh <dev.lh@web.de>
2022-03-23 16:46:50 +00:00
GiteaBot
88ad22f458 [skip ci] Updated translations via Crowdin 2022-03-23 00:24:20 +00:00
GiteaBot
ed94306d7e [skip ci] Updated translations via Crowdin 2022-03-21 00:24:03 +00:00
GiteaBot
7b65d3ee60 [skip ci] Updated licenses and gitignores 2022-03-20 00:24:18 +00:00
zeripath
345df3cb8b Do not send activation email if manual confirm is set (#19119)
If the mailer is configured then even if Manual confirm is set an activation email
is still being sent because `handleUserCreated` is not checking for this case.

Fix #17263

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-03-18 17:57:07 +08:00
GiteaBot
e908334e73 [skip ci] Updated translations via Crowdin 2022-03-17 00:24:18 +00:00
GiteaBot
4a560873dd [skip ci] Updated translations via Crowdin 2022-03-14 00:11:34 +00:00
GiteaBot
0b51334aa2 [skip ci] Updated licenses and gitignores 2022-03-13 00:11:52 +00:00
GiteaBot
7a92930114 [skip ci] Updated translations via Crowdin 2022-03-12 00:11:48 +00:00
GiteaBot
4601e6ef95 [skip ci] Updated translations via Crowdin 2022-03-10 00:11:57 +00:00
Otto Richter (fnetX)
d75fe7ac29 Add button for issue deletion (#19032)
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-03-09 01:38:11 +01:00
Roger Luo
4d804106e6 Feature: show issue assignee on project board (#15232)
* Show assignees in project boards.
2022-03-09 00:42:28 +08:00
GiteaBot
053cb013d4 [skip ci] Updated translations via Crowdin 2022-03-07 00:11:49 +00:00
Jimmy Praet
14231cd539 Add config option to disable "Update branch by rebase" (#18745) 2022-03-04 03:30:49 -05:00
GiteaBot
aa8b542806 [skip ci] Updated licenses and gitignores 2022-02-27 00:16:04 +00:00
GiteaBot
fac9a1289b [skip ci] Updated translations via Crowdin 2022-02-25 00:16:08 +00:00
GiteaBot
01096583c0 [skip ci] Updated translations via Crowdin 2022-02-21 00:15:46 +00:00
GiteaBot
34ed26a8ad [skip ci] Updated licenses and gitignores 2022-02-20 00:16:03 +00:00
GiteaBot
c44b52a482 [skip ci] Updated translations via Crowdin 2022-02-18 00:16:14 +00:00
GiteaBot
8992f4ada7 [skip ci] Updated translations via Crowdin 2022-02-16 00:16:06 +00:00
GiteaBot
16935d8bfe [skip ci] Updated translations via Crowdin 2022-02-15 00:15:56 +00:00
GiteaBot
678173324b [skip ci] Updated translations via Crowdin 2022-02-14 00:16:00 +00:00
GiteaBot
fcaf92b884 [skip ci] Updated translations via Crowdin 2022-02-13 00:16:01 +00:00
zeripath
688020c83c Add number in queue status to monitor page (#18712)
Add number in queue status to the monitor page so that administrators can
assess how much work is left to be done in the queues.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-02-12 13:31:26 +08:00
GiteaBot
e45259a72d [skip ci] Updated translations via Crowdin 2022-02-12 00:16:01 +00:00
Sven Seeberg
904e976b3f Add LDAP group sync to Teams, fixes #1395 (#16299)
* Add setting for a JSON that maps LDAP groups to Org Teams.
* Add log when removing or adding team members.
* Sync is being run on login and periodically.
* Existing group filter settings are reused.
* Adding and removing team members.
* Sync not existing LDAP group.
* Login with broken group map JSON.
2022-02-11 22:24:58 +08:00
GiteaBot
cdbadab7e7 [skip ci] Updated translations via Crowdin 2022-02-11 00:16:26 +00:00
Lunny Xiao
763d2b620a Fix bug for version update hint (#18701)
Co-authored-by: silverwind <me@silverwind.io>
2022-02-10 15:37:10 +01:00
GiteaBot
27a4a45dd8 [skip ci] Updated translations via Crowdin 2022-02-10 00:16:23 +00:00
zeripath
eae816b4fd Add apply-patch, basic revert and cherry-pick functionality (#17902)
This code adds a simple endpoint to apply patches to repositories and
branches on gitea. This is then used along with the conflicting checking
code in #18004 to provide a basic implementation of cherry-pick revert.

Now because the buttons necessary for cherry-pick and revert have 
required us to create a dropdown next to the Browse Source button
I've also implemented Create Branch and Create Tag operations.

Fix #3880 
Fix #17986 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-09 20:28:55 +00:00
GiteaBot
f0d2669f1c [skip ci] Updated translations via Crowdin 2022-02-09 00:16:04 +00:00
GiteaBot
a7c03d9743 [skip ci] Updated translations via Crowdin 2022-02-08 00:15:59 +00:00
wxiaoguang
dc0985c4d8 Fix the missing i18n key for update checker (#18646) 2022-02-07 15:43:53 +08:00
GiteaBot
c2faa6a966 [skip ci] Updated licenses and gitignores 2022-02-06 00:16:02 +00:00
GiteaBot
a65b2d7bb7 [skip ci] Updated translations via Crowdin 2022-02-04 00:16:04 +00:00
GiteaBot
29780056b1 [skip ci] Updated translations via Crowdin 2022-02-02 00:16:04 +00:00
GiteaBot
9e1d167996 [skip ci] Updated translations via Crowdin 2022-02-01 00:16:43 +00:00
GiteaBot
7f9ce0979d [skip ci] Updated translations via Crowdin 2022-01-31 00:05:29 +00:00
GiteaBot
1ce9598e6e [skip ci] Updated licenses and gitignores 2022-01-30 00:28:19 +00:00