Commit Graph

1861 Commits (3138417c632370b7c62af2c79e1bc840a68e43d3)

Author SHA1 Message Date
Lauris BH bd6f24b4ab
Add deleted_branch table fixture ()
* Add deleted_branch table fixture

* Fix deleted branches tests

* Remove unneeded global variable
Lauris BH 240609432b Issue content should not be updated when closing with comment ()
Guillaume Dube 8798cf4e3b Set session and indexers' data files rel to AppDataPath ()
* Set session and indexers' data files rel to AppDataPath

The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.

* fix bug
Morlinest 95637e046f Fix order of comments ()
Ethan Koenig e6a97b6675 Use api.TrackedTime in API ()
* Use api.TrackedTime in API

* APIFormat() method

* Rename function
cstyles b0b24a2dbb Use RelAvatarLink() in GetActAvatar() ()
Lauris BH 82fc50f4ee Fix Git LFS object/repo link storage in database and small refactoring ()
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
Morlinest ddb7f59ef4 Add search mode option to /api/repo/search ()
* Add repo type option to /api/repo/search

* Add tests and fix result of collaborative filter in specific condition

* Fix/optimize search & tests

* Improve integration tests

* Fix lint errors

* Fix unit tests

* Change and improve internal implementation of repo search

* Use NonexistentID

* Make search api more general

* Change mirror and fork search behaviour

* Fix tests & typo in comment
Lauris BH 6a107e57f6 Add checks for commits with missing author and time ()
* Add checks for commits with missing author and time

* Fix validate commits with emails if it has no Author
Gibheer bc84110989 don't check minimum key size when disabled ()
* cleanup old comments for ed25519

These comments were added when x/crypto/ed25519 could not yet handle
ed25519. It does now, so it should be removed.
Also the key type is now replaced with the proper constant.

* move the minimum key size config before the check

This moves the actual config lookup before any check is done. This
avoids problems with calling to ssh-keygen which doesn't support the
expected output format and returning an error, when the check is disabled.
Lauris BH eca05b09aa Add commit count caching ()
* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it
Bwko 3ab580c8d6 Add branch overiew page ()
* Add branch overiew page

* fix changed method name on sub menu

* remove unused code
Lunny Xiao 796be03e9b fix discord hook bug ()
Lunny Xiao 6eeadb2082 Hide unactive on explore users and some refactors ()
* hide unactive on explore users and some refactors

* fix test for removed Organizations

* fix test for removed Organizations

* fix imports

* fix logic bug

* refactor the toConds

* Rename TestOrganizations to TestSearchUsers and add tests for users

* fix other tests

* fix other tests

* fix watchers tests

* fix comments and remove unused code
harry 81d1e54a49 Use identicon image for default gravatar. ()
* Use identicon image for default gravatar.

* Fixed tests.
Lunny Xiao 985a39590b Use buffersize to reduce database connection when iterate ()
* use buffersize to reduce database connection when iterate

* fix typo

* add default value on app.ini comment
Jonas Bröms 847272a70d Only update mirror last update after successful sync ()
Morlinest ccd3577970 Fix repository search function ()
* Fix and remove FIXME

* Respect membership visibility

* Fix/rewrite searchRepositoryByName function

* Add unit tests

* Add integration tests

* Remove Searcher completely

* Remove trailing space
Lauris BH c7f4f07765 Integration test for activity page ()
* Integration test for activity page

* Small code refactoring for acitvity page

* Move activity stats calculation logic to model
Lauris BH f3833b7ce4 Create new branch from branch selection dropdown ()
* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition
Lauris BH 1ec4dc6c1d Fix so that user can still fork his own repository to owned organizations ()
* Fix so that user can still fork his own repository to his organizations

* Fix to only use owned organizations

* Add integration test for forking own repository to owned organization
Lauris BH f42dbdbae5 Add Activity page to repository ()
* Add Activity page to repository

* Add request data for activity

* Add issue data for activity

* Add user unit right checks

* Add releases to activity

* Log repository unit loading error
Lauris BH 8863e74f2a Fix organization watch migration ()
Patrick G e89bb7ef6a Allow custom SSH user in UI for built-in SSH server () ()
* Allow custom SSH user in UI for built-in SSH server ()

* Some fixes

* Did make fmt

* Updated according to review

- Renamed config to BUILTIN_SSH_SERVER_USER
- Removed unnecessary default string value for config item

* Updated according to review

* Fixed some minor issues
Lunny Xiao 514006a2e5 Fix orgnization user watch repository ()
* remove orgnization watch repositories

* fix migration

* fix typo and missing change

* remove unused code
Morlinest dff26e25ca Remove redudant functions and code ()
* Remove redudant functions and code
Morlinest c2346e4469 Add repository search unit and integration tests ()
* Add more repo search tests

* Fix repo search tests

* Always test returned repos length

* Add test with lower pagesize limit (test more pages)

* Add and fix /api/repo/search integration tests

* Simplify unit tests code

* Simplify and unify integration tests code

* Improve test coverage

* Temporary fix tests due to bugs in current repo search implementation

* Revert removing not nil Searcher

* Add more checks to tests

* Simplify privacy checks in /api/repo tests

* Temporary remove privacy check from repo search tests
David Schneiderbauer ebac051e72 Rewrite migrations to not depend on future code changes ()
* v38 migration used an outdated version of RepoUnit model ()

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* v38 migration used an outdated version of RepoUnit model ()

* change repoUnit model in migration

* fix v16 migration repo_unit table

* fix lint error

* move type definition inside function

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix lint error

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Fix time tracking migration

* Refactor code

* Fix migration from Gogs

* add error check

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* Additiomal fixes for migrations

* Fix timetracking migration

* Add back nil check
Julian Scholle 92123fe82a GPG key email verification no longer case sensitive () ()
* GPG key email verification no longer case sensitive ()

* case insensitive GPG key email verification now cached ()

Signed-off-by: Julian Scholle <julian.scholle@googlemail.com>
Kazuki Sawada ffab139c91 table `pull_request` wasn't updated correctly ()
* Fix: table `pull_request` won't be updated correctly

* Update also status column when manually merged
Ethan Koenig aa962deec0 Replace deprecated Id method with ID ()
Morlinest a79af9cf6f Fix index column deletion ()
Ethan Koenig 4b2c8ca533 Use session when creating user ()
Morlinest a04718a2a6 Remove repo unit index ()
* Remove repo unit index

* Fix sqlite
Lunny Xiao a8717e5e3a Use AfterLoad instead of AfterSet on Structs ()
* use AfterLoad instead of AfterSet on Structs

* fix the comments on AfterLoad

* fix the comments on action AfterLoad
Morlinest 1ad902d529 Fix implementation of repo Home func ()
* Fix implementation of repo Home func

* Make fixture changes for testing
David Schneiderbauer 26e49b8e3d Fix doubled issue tab introduced in migration v16 ()
* fix duplicate issue tab as UnitTypeIssue and UnitTypeExternalTracker are existing at the same time

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Morlinest cc84ca40d7 Remove redudant issue LoadAttributes() calls ()
Lunny Xiao dd55534b82 Reduce usage of allcols on update ()
* reduce usage of allcols on update

* fix bug and tests
Ethan Koenig fa28de820e Make indexer code more reusable ()
Lauris BH 2db424c3f1 Fix broken migration to add can_push field back to table ()
Morlinest 9a75a5d59b Use custom type and constants to hold order by options ()
Morlinest ca68a75b5b Expand fixtures ()
* Add more repo search tests

* Add and fix /api/repo/search integration tests

* Add owner to access table for organization repositories

* Remove tests
David Schneiderbauer 1eedd983ea Complete push webhooks ()
* implemented missing 'delete' push webhooks

moreover created ActionDeleteBranch and ActionDeleteTag

* add CommitRepoAction tests for tag/branch creation/deletion

* fixed error where push webhook not called if is new branch or tag
removed unnecessary code

* moved prepare unit test environment into separate method to be used across unit tests

* add missing if clause in pushUpdate

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Lunny Xiao 0d80af649a Add init support of orgmode document type on file view and readme ()
* add init support of orgmode document type on file view and readme

* fix imports

* fix imports and readmeExist

* fix imports order

* fix format

* remove unnecessary convert
Rémi Saurel 66bc0ac251 Fix sending mail with a non-latin display name. ()
* Fix sending mail with a non-latin display name. 

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>

* Take into account the possibility that setting.MailService.From is in `name <email@address>` format. 

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
Lauris BH 6718ea6ff1 Fix can_push value to false in protected_branch ()
Lauris BH 7a0297819d Sync releases table with tags on push and for mirrors ()
* Sync releases table with tags on push and for mirrors

* Code style fixes

* Fix api to return only releases

* Optimize release creation and update
Minimize posibility of race conditions

* Fix release lower tag name updating

* handle tag reference update by addionally comparing commit id