aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* Code/repo search (#2582)Ethan Koenig2017-10-271-0/+1
| | | Indexed search of repository contents (for default branch only)
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-277-3/+178
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-243-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix repository search function (#2689)Morlinest2017-10-175-6/+59
| | | | | | | | | | | | | | | | * Fix and remove FIXME * Respect membership visibility * Fix/rewrite searchRepositoryByName function * Add unit tests * Add integration tests * Remove Searcher completely * Remove trailing space
* Remove repo unit index (#2621)Morlinest2017-10-021-10/+0
| | | | | | * Remove repo unit index * Fix sqlite
* Fix implementation of repo Home func (#2601)Morlinest2017-10-011-12/+12
| | | | | | * Fix implementation of repo Home func * Make fixture changes for testing
* Expand fixtures (#2571)Morlinest2017-09-227-0/+203
| | | | | | | | | | * Add more repo search tests * Add and fix /api/repo/search integration tests * Add owner to access table for organization repositories * Remove tests
* Improve issue search (#2387)Ethan Koenig2017-09-161-5/+5
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* Prevent sending emails and notifications to inactive users (#2384)David Schneiderbauer2017-09-162-1/+6
| | | | | | | | | | | | | | | | | | | | | | * Filter inactive users before sending emails or creating browser notifications Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * fix formatting issues Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * included requested changes Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com> * optimized database queries * rebasing new master and add tablenames for clarification in xorm queries * remove escaped quotationmarks using backticks Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Add missing fixture to clean gpg_key table (#2494)Lauris BH2017-09-121-0/+1
| | | | | | * Add missing fixture to clean gpg_key table * Fix possible too fast request execution in timetracker start/stop test
* Feature: Timetracking (#2211)Jonas Franz2017-09-126-3/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Make repo private to no interfere with other tests (#2467)Antoine GIRARD2017-09-061-1/+1
|
* Only check at least one email gpg key (#2266)Antoine GIRARD2017-09-052-1/+13
| | | | | | | | | | | | | | | | | | | | | | * Only require one email (possibly not yet validated) * Update message error and check validation of commit * Add integrations tests * Complete integration for import * Add pre-check/optimization * Add some test (not finished) * Finish * Fix fixtures * Fix typo * Don't guess key ID
* Fix bare-repo bugs (#2199)Ethan Koenig2017-07-272-1/+8
| | | | | | | | * Fix bare-repo bugs * Integration tests * Unused import
* Remove unit types commits and settings (#2161)Lauris BH2017-07-173-16/+22
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Fix release display and correct paging (#2080)Lauris BH2017-06-291-0/+1
|
* Consolidate boilerplate in integration tests (#1979)Ethan Koenig2017-06-171-0/+2
|
* fix collborators lack of units on orgnization repositories (#1968)Lunny Xiao2017-06-151-0/+40
| | | | | | * fix collborators lack of units on orgnization repositories * also change log level to debug
* Display draft releases (#1854)Ethan Koenig2017-06-031-0/+8
| | | | | | | | * Display draft releases * Include ctx.User in user cache * Integration test
* Fix user profile activity feed (#1848)Ethan Koenig2017-06-021-1/+1
| | | | | | * Fix user profile activity feed * gofmt, and avoid overlapping database connections
* Fix pull request compare link (#1832)Ethan Koenig2017-05-311-1/+9
| | | | | | * Fix pull request compare link * Integration test
* Fix 500 for GET /teams/:id endpoints (#1811)Ethan Koenig2017-05-261-24/+24
| | | | | | | | * Fix 500 for GET /teams/:id endpoints * Integration test for GET /team/:id * Clean up integration test
* Fix activity feed (#1779)Ethan Koenig2017-05-261-9/+0
| | | | | | | | | | | | * Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
* Fix and test for delete user (#1713)Ethan Koenig2017-05-202-3/+16
| | | | | | | | * Fix and test for delete user * Run updates in batches * Unit test
* Add units to team (#947)Lunny Xiao2017-05-182-0/+12
| | | | | | | | | | | | | | | | | | * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
* Don't recreate database in integration tests (#1697)Ethan Koenig2017-05-111-0/+1
|
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-021-2/+3
| | | | | | * Do not allow commiting to protected branch from online editor * Add editor integration tests for adding new file and not allowing to add new file to protected branch
* MySQL, Postgres integration tests in drone (#1638)Ethan Koenig2017-04-302-9/+9
| | | | | | | | | | * MySQL, Postgres integration tests in drone * Fix .drone.yml * sign drone * resign drone
* fix bug on issue view when not login (#1624)Lunny Xiao2017-04-291-0/+15
| | | | | | | | | | * fix bug on issue view when not login * hide issue watch when not login * update the tests * fix test on issue
* Status-API (#1332)Kim "BKC" Carlbäcker2017-04-211-0/+54
|
* feat: add download count field and unit testing for attachment. (#1512)Bo-Yi Wu2017-04-201-0/+71
| | | | | | | | | | | | | | * feat: add download count field and unit testing. * fix: unit testing * refactor: improve testing. * fix: update comment * add default value. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Add unit tests for issue_watchAndrey Nering2017-03-301-0/+15
|
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-201-0/+17
|
* Send notifications to partecipants in issue comments (#1217)Sandro Santilli2017-03-162-2/+14
| | | | | | | | | | | | * Send notifications to partecipants in issue comments Closes #1216 Includes test (still failing) * Do not include "labelers" to participants Fix test to expect what GetParticipants return
* Move user_follow to separate file (#1210)Ethan Koenig2017-03-112-0/+7
| | | Also add unit tests
* Consistency checks for action unit tests (#1079)Ethan Koenig2017-02-281-2/+2
|
* Move push update to post-receive and protected branch check to pre-receive ↵Lunny Xiao2017-02-251-20/+0
| | | | | | | | | | | | (#1030) * move all push update to git hook post-receive and protected branch check to git hook pre-receive * add SSH_ORIGINAL_COMMAND check back * remove all unused codes * fix the import
* Unit tests for models/repo_collaboration (#1032)Ethan Koenig2017-02-241-1/+1
|
* Bug fixes and unit tests for org_team (#1016)Ethan Koenig2017-02-232-3/+4
|
* fix: Wrong repo list on Explore page if user already loggin. (#1009)Bo-Yi Wu2017-02-222-0/+51
| | | | | | | | * fix: Wrong repo list on Explore page if user already loggin. * fix: code readable. * fix: declare variable
* Unit tests for repo watching (#963)Ethan Koenig2017-02-171-0/+1
|
* Unit tests for repo redirects (#961)Ethan Koenig2017-02-171-0/+5
|
* test: Add testing for GetUserFork function (#944)Bo-Yi Wu2017-02-152-0/+56
|
* Fix public activity showing private repos (#892)Morgan Bazalgette2017-02-113-0/+38
| | | | | | | | | | * Fix public activity showing private repos (#811) Signed-off-by: Morgan Bazalgette <the@howl.moe> * error check after setting is_private to true * Add test for UpdateRepository w/ visibility change
* Unit tests for issue_milestone (#878)Ethan Koenig2017-02-093-0/+17
|
* Fix consistency check (#866)Ethan Koenig2017-02-082-2/+2
|
* Fix broken test fixture (#859)Ethan Koenig2017-02-071-4/+4
|
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-0/+36
|
* Fix inconsistencies in unit test fixturesEthan Koenig2017-02-053-4/+8
|
* Fix inconsistencies in test fixturesEthan Koenig2017-02-042-4/+5
|