forgejo/models
Alexey Terentyev 46d19c4676 Fix topics addition (Another solution) (#4031) (#4258)
* Added topics validation, fixed repo topics duplication (#4031)

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Added tests

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Fixed fmt

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Added comments to exported functions

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Deleted RemoveDuplicateTopics function

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Fixed messages

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Added migration

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* fmt migration file

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* fixed lint

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Added Copyright

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Added query solution for duplicates

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Fixed migration query

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Changed RegExp. Fixed migration

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* fmt migration file

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Fixed test for changed regexp

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Removed validation log messages

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Renamed migration file

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>

* Renamed validate function

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
2018-06-21 17:09:46 +08:00
..
fixtures Add support for FIDO U2F (#3971) 2018-05-19 17:12:37 +03:00
migrations Fix topics addition (Another solution) (#4031) (#4258) 2018-06-21 17:09:46 +08:00
access.go
access_test.go
action.go
action_list.go
action_test.go
admin.go
admin_test.go
attachment.go
attachment_test.go
branches.go
branches_test.go
consistency.go
error.go
error_oauth2.go
external_login_user.go
git_diff.go
git_diff_test.go
gpg_key.go
gpg_key_test.go
graph.go
graph_test.go
helper.go
issue.go
issue_assignees.go
issue_assignees_test.go
issue_comment.go
issue_comment_test.go
issue_indexer.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_mail.go
issue_milestone.go
issue_milestone_test.go
issue_reaction.go
issue_reaction_test.go
issue_stopwatch.go Shows total tracked time in issue and milestone list (#3341) 2018-04-29 13:58:47 +08:00
issue_stopwatch_test.go
issue_test.go
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
lfs.go
lfs_lock.go
login_source.go
mail.go
main_test.go
models.go
models_sqlite.go
models_test.go
models_tidb.go
notification.go Refactor struct's time to remove unnecessary memory usage (#3142) 2017-12-11 06:37:04 +02:00
notification_test.go
oauth2.go
org.go
org_team.go
org_team_test.go
org_test.go
pull.go
pull_test.go
release.go
repo.go
repo_activity.go
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_editor.go
repo_indexer.go
repo_issue.go
repo_list.go
repo_list_test.go
repo_mirror.go
repo_redirect.go
repo_redirect_test.go
repo_test.go
repo_unit.go
repo_watch.go
repo_watch_test.go
ssh_key.go
ssh_key_test.go
star.go
star_test.go
status.go
status_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
test_fixtures.go
token.go
token_test.go
topic.go
topic_test.go Fix topics addition (Another solution) (#4031) (#4258) 2018-06-21 17:09:46 +08:00
twofactor.go
u2f.go
u2f_test.go
unit.go
unit_tests.go
update.go
update_test.go
user.go
user_follow.go
user_follow_test.go
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
user_test.go
webhook.go
webhook_dingtalk.go
webhook_discord.go
webhook_slack.go
webhook_test.go
wiki.go
wiki_test.go