930073 Move the code in pagure/lib/__init__.py into pagure/lib/query.py

Authored and Committed by Pierre-Yves Chibon 6 years ago
137 files changed. 8709 lines added. 8660 lines removed.
alembic/versions/f16ab75e4d32_sshkeys.py
file modified
+1 -1
dev-data.py
file modified
+25 -24
files/api_key_expire_mail.py
file modified
+3 -2
pagure-ev/pagure_stream_server.py
file modified
+6 -5
pagure-milters/comment_email_milter.py
file modified
+3 -3
pagure/api/__init__.py
file modified
+6 -6
pagure/api/ci/jenkins.py
file modified
+2 -2
pagure/api/fork.py
file modified
+22 -22
pagure/api/group.py
file modified
+5 -5
pagure/api/issue.py
file modified
+29 -27
pagure/api/project.py
file modified
+32 -26
pagure/api/user.py
file modified
+25 -25
pagure/cli/admin.py
file modified
+26 -22
pagure/doc_utils.py
file modified
+2 -2
pagure/docs_server.py
file modified
+3 -3
pagure/flask_app.py
file modified
+12 -12
pagure/forms.py
file modified
+2 -2
pagure/hooks/__init__.py
file modified
+6 -6
pagure/hooks/default.py
file modified
+3 -2
pagure/hooks/files/repospannerhook
file modified
+4 -4
pagure/hooks/pagure_ci.py
file modified
+1 -1
pagure/hooks/pagure_hook.py
file modified
+6 -5
pagure/hooks/pagure_request_hook.py
file modified
+1 -0
pagure/hooks/pagure_ticket_hook.py
file modified
+2 -1
pagure/hooks/pagure_unsigned_commits.py
file modified
+1 -0
pagure/internal/__init__.py
file modified
+21 -19
pagure/lib/__init__.py
file modified
+0 -5580
pagure/lib/git.py
file modified
+54 -44
pagure/lib/git_auth.py
file modified
+4 -3
pagure/lib/lib_ci.py
file modified
+3 -3
pagure/lib/link.py
file modified
+4 -4
pagure/lib/model.py
file modified
+1 -1
pagure/lib/notify.py
file modified
+3 -3
pagure/lib/query.py
file added
+5591
pagure/lib/tasks.py
file modified
+45 -41
pagure/lib/tasks_mirror.py
file modified
+4 -4
pagure/lib/tasks_services.py
file modified
+7 -7
pagure/pfmarkdown.py
file modified
+9 -9
pagure/ui/app.py
file modified
+52 -48
pagure/ui/clone.py
file modified
+2 -2
pagure/ui/fas_login.py
file modified
+8 -8
pagure/ui/filters.py
file modified
+9 -9
pagure/ui/fork.py
file modified
+45 -43
pagure/ui/groups.py
file modified
+18 -14
pagure/ui/issues.py
file modified
+67 -53
pagure/ui/login.py
file modified
+14 -10
pagure/ui/oidc_login.py
file modified
+7 -7
pagure/ui/plugins.py
file modified
+0 -1
pagure/ui/repo.py
file modified
+42 -38
pagure/utils.py
file modified
+3 -2
tests/__init__.py
file modified
+9 -8
tests/test_pagure_admin.py
file modified
+21 -21
tests/test_pagure_exclude_group_index.py
file modified
+15 -16
tests/test_pagure_flask.py
file modified
+23 -23
tests/test_pagure_flask_api.py
file modified
+2 -1
tests/test_pagure_flask_api_fork.py
file modified
+117 -118
tests/test_pagure_flask_api_group.py
file modified
+10 -10
tests/test_pagure_flask_api_issue.py
file modified
+128 -129
tests/test_pagure_flask_api_issue_change_status.py
file modified
+13 -14
tests/test_pagure_flask_api_issue_comment.py
file modified
+24 -25
tests/test_pagure_flask_api_issue_create.py
file modified
+1 -2
tests/test_pagure_flask_api_issue_custom_fields.py
file modified
+12 -13
tests/test_pagure_flask_api_pr_flag.py
file modified
+23 -24
tests/test_pagure_flask_api_project.py
file modified
+56 -56
tests/test_pagure_flask_api_project_update_watch.py
file modified
+3 -4
tests/test_pagure_flask_api_ui_private_repo.py
file modified
+66 -66
tests/test_pagure_flask_api_user.py
file modified
+48 -48
tests/test_pagure_flask_docs.py
file modified
+5 -6
tests/test_pagure_flask_dump_load_ticket.py
file modified
+16 -17
tests/test_pagure_flask_internal.py
file modified
+53 -54
tests/test_pagure_flask_ui_app.py
file modified
+46 -46
tests/test_pagure_flask_ui_app_browse.py
file modified
+22 -22
tests/test_pagure_flask_ui_app_give_project.py
file modified
+12 -12
tests/test_pagure_flask_ui_app_index.py
file modified
+1 -1
tests/test_pagure_flask_ui_app_userdash.py
file modified
+13 -13
tests/test_pagure_flask_ui_clone.py
file modified
+3 -3
tests/test_pagure_flask_ui_fork.py
file modified
+72 -73
tests/test_pagure_flask_ui_groups.py
file modified
+1 -1
tests/test_pagure_flask_ui_issue_pr_link.py
file modified
+8 -8
tests/test_pagure_flask_ui_issues.py
file modified
+145 -146
tests/test_pagure_flask_ui_issues_acl_checks.py
file modified
+43 -43
tests/test_pagure_flask_ui_issues_open_access.py
file modified
+65 -65
tests/test_pagure_flask_ui_issues_private.py
file modified
+16 -17
tests/test_pagure_flask_ui_issues_read_only.py
file modified
+7 -8
tests/test_pagure_flask_ui_issues_templates.py
file modified
+2 -3
tests/test_pagure_flask_ui_login.py
file modified
+23 -23
tests/test_pagure_flask_ui_no_master_branch.py
file modified
+1 -1
tests/test_pagure_flask_ui_old_commit.py
file modified
+3 -2
tests/test_pagure_flask_ui_plugins.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_default_hook.py
file modified
+6 -6
tests/test_pagure_flask_ui_plugins_fedmsg.py
file modified
+1 -1
tests/test_pagure_flask_ui_plugins_irc.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_mail.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_mirror.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_noff.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_pagure_ci.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_pagure_hook.py
file modified
+1 -1
tests/test_pagure_flask_ui_plugins_pagure_no_new_branch.py
file modified
+1 -1
tests/test_pagure_flask_ui_plugins_pagure_request_hook.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py
file modified
+7 -1
tests/test_pagure_flask_ui_plugins_rtd_hook.py
file modified
+0 -1
tests/test_pagure_flask_ui_plugins_unsigned.py
file modified
+0 -1
tests/test_pagure_flask_ui_pr_no_sources.py
file modified
+12 -13
tests/test_pagure_flask_ui_priorities.py
file modified
+35 -36
tests/test_pagure_flask_ui_quick_reply.py
file modified
+7 -7
tests/test_pagure_flask_ui_remote_pr.py
file modified
+22 -23
tests/test_pagure_flask_ui_repo.py
file modified
+113 -114
tests/test_pagure_flask_ui_repo_delete_project.py
file modified
+16 -17
tests/test_pagure_flask_ui_repo_flag_commit.py
file modified
+13 -14
tests/test_pagure_flask_ui_repo_milestones.py
file modified
+7 -8
tests/test_pagure_flask_ui_repo_slash_name.py
file modified
+3 -3
tests/test_pagure_flask_ui_repo_view_file.py
file modified
+1 -2
tests/test_pagure_flask_ui_roadmap.py
file modified
+14 -15
tests/test_pagure_flask_ui_slash_branch_name.py
file modified
+1 -1
tests/test_pagure_flask_ui_star_project.py
file modified
+4 -4
tests/test_pagure_lib.py
file modified
+709 -711
tests/test_pagure_lib_add_user_to_project.py
file modified
+29 -29
tests/test_pagure_lib_drop_issue.py
file modified
+32 -33
tests/test_pagure_lib_git.py
file modified
+58 -59
tests/test_pagure_lib_git_auth.py
file modified
+3 -3
tests/test_pagure_lib_git_diff_pr.py
file modified
+7 -7
tests/test_pagure_lib_git_get_tags_objects.py
file modified
+3 -3
tests/test_pagure_lib_gitolite_config.py
file modified
+25 -26
tests/test_pagure_lib_link.py
file modified
+7 -7
tests/test_pagure_lib_login.py
file modified
+0 -1
tests/test_pagure_lib_model.py
file modified
+17 -17
tests/test_pagure_lib_model_delete_project.py
file modified
+5 -5
tests/test_pagure_lib_notify.py
file modified
+21 -21
tests/test_pagure_lib_notify_email.py
file modified
+12 -12
tests/test_pagure_lib_star_project.py
file modified
+53 -53
tests/test_pagure_lib_task_mirror.py
file modified
+19 -18
tests/test_pagure_lib_task_services.py
file modified
+16 -16
tests/test_pagure_lib_watch_list.py
file modified
+40 -40
tests/test_pagure_repospanner.py
file modified
+4 -4
tests/test_pagure_utils.py
file modified
+6 -6
tests/test_stream_server.py
file modified
+8 -8
tests/test_tasks.py
file modified
+2 -2
    Move the code in pagure/lib/__init__.py into pagure/lib/query.py
    
    This will help untangling some of the circular imports we have in our
    code.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>
    
        
file modified
+25 -24
file modified
+3 -2
file modified
+6 -6
file modified
+2 -2
file modified
+22 -22
file modified
+5 -5
file modified
+29 -27
file modified
+32 -26
file modified
+25 -25
file modified
+26 -22
file modified
+2 -2
file modified
+3 -3
file modified
+12 -12
file modified
+2 -2
file modified
+6 -6
file modified
+3 -2
file modified
+1 -1
file modified
+6 -5
file modified
+21 -19
file modified
+0 -5580
file modified
+54 -44
file modified
+4 -3
file modified
+3 -3
file modified
+4 -4
file modified
+1 -1
file modified
+3 -3
file added
+5591
file modified
+45 -41
file modified
+4 -4
file modified
+7 -7
file modified
+9 -9
file modified
+52 -48
file modified
+2 -2
file modified
+8 -8
file modified
+9 -9
file modified
+45 -43
file modified
+18 -14
file modified
+67 -53
file modified
+14 -10
file modified
+7 -7
file modified
+0 -1
file modified
+42 -38
file modified
+3 -2
file modified
+9 -8
file modified
+21 -21
file modified
+23 -23
file modified
+113 -114
file modified
+709 -711
file modified
+58 -59
file modified
+17 -17
file modified
+21 -21
file modified
+6 -6
file modified
+8 -8
file modified
+2 -2