b130e5 Re-architure pagure

Authored and Committed by Pierre-Yves Chibon 6 years ago
184 files changed. 4808 lines added. 4812 lines removed.
alembic/env.py
file modified
+1 -1
createdb.py
file modified
+5 -6
dev-data.py
file modified
+40 -36
pagure-ci/pagure_ci_server.py
file modified
+9 -8
pagure-ev/pagure_stream_server.py
file modified
+26 -13
pagure-loadjson/pagure_loadjson_server.py
file modified
+12 -10
pagure-logcom/pagure_logcom_server.py
file modified
+10 -10
pagure-milters/comment_email_milter.py
file modified
+7 -6
pagure-webhook/pagure-webhook-server.py
file modified
+13 -15
pagure/__init__.py
file modified
+0 -880
pagure/api/__init__.py
file modified
+25 -29
pagure/api/ci/jenkins.py
file modified
+13 -9
pagure/api/fork.py
file modified
+43 -38
pagure/api/group.py
file modified
+3 -4
pagure/api/issue.py
file modified
+67 -61
pagure/api/project.py
file modified
+78 -64
pagure/api/user.py
file modified
+8 -9
pagure/cli/admin.py
file modified
+47 -28
pagure/config.py
file added
+30
pagure/docs_server.py
file modified
+3 -6
pagure/flask_app.py
file added
+402
pagure/forms.py
file modified
+5 -5
pagure/hooks/__init__.py
file modified
+4 -3
pagure/hooks/default.py
file modified
+1 -1
pagure/hooks/fedmsg.py
file modified
+1 -1
pagure/hooks/files/default_hook.py
file modified
+14 -12
pagure/hooks/files/fedmsg_hook.py
file modified
+2 -1
pagure/hooks/files/pagure_block_unsigned.py
file modified
+5 -5
pagure/hooks/files/pagure_force_commit_hook.py
file modified
+5 -4
pagure/hooks/files/pagure_hook.py
file modified
+11 -10
pagure/hooks/files/pagure_hook_requests.py
file modified
+8 -7
pagure/hooks/files/pagure_hook_tickets.py
file modified
+6 -5
pagure/hooks/files/rtd_hook.py
file modified
+4 -3
pagure/hooks/irc.py
file modified
+1 -1
pagure/hooks/mail.py
file modified
+1 -1
pagure/hooks/pagure_ci.py
file modified
+4 -4
pagure/hooks/pagure_force_commit.py
file modified
+1 -1
pagure/hooks/pagure_hook.py
file modified
+6 -5
pagure/hooks/pagure_request_hook.py
file modified
+6 -4
pagure/hooks/pagure_ticket_hook.py
file modified
+6 -4
pagure/hooks/pagure_unsigned_commits.py
file modified
+1 -1
pagure/hooks/rtd.py
file modified
+1 -1
pagure/internal/__init__.py
file modified
+38 -37
pagure/lib/__init__.py
file modified
+57 -18
pagure/lib/git.py
file modified
+26 -25
pagure/lib/git_auth.py
file modified
+18 -16
pagure/lib/link.py
file modified
+1 -1
pagure/lib/notify.py
file modified
+39 -38
pagure/lib/tasks.py
file modified
+85 -88
pagure/pfmarkdown.py
file modified
+21 -21
pagure/templates/_browseheader.html
file modified
+4 -4
pagure/templates/_formhelper.html
file modified
+2 -2
pagure/templates/_render_repo.html
file modified
+8 -8
pagure/templates/add_deploykey.html
file modified
+1 -1
pagure/templates/add_group.html
file modified
+2 -2
pagure/templates/add_group_project.html
file modified
+1 -1
pagure/templates/add_token.html
file modified
+4 -4
pagure/templates/add_user.html
file modified
+1 -1
pagure/templates/blame.html
file modified
+9 -9
pagure/templates/commit.html
file modified
+7 -7
pagure/templates/commits.html
file modified
+7 -7
pagure/templates/docs.html
file modified
+2 -2
pagure/templates/edit_file.html
file modified
+3 -3
pagure/templates/edit_group.html
file modified
+1 -1
pagure/templates/edit_tag.html
file modified
+1 -1
pagure/templates/file.html
file modified
+16 -16
pagure/templates/forks.html
file modified
+2 -2
pagure/templates/group_info.html
file modified
+13 -10
pagure/templates/group_list.html
file modified
+5 -5
pagure/templates/index_auth.html
file modified
+14 -12
pagure/templates/issue.html
file modified
+38 -38
pagure/templates/issues.html
file modified
+21 -21
pagure/templates/login/login.html
file modified
+4 -3
pagure/templates/login/password_change.html
file modified
+1 -1
pagure/templates/login/password_recover.html
file modified
+1 -1
pagure/templates/login/password_reset.html
file modified
+1 -1
pagure/templates/login/user_new.html
file modified
+1 -1
pagure/templates/master.html
file modified
+10 -10
pagure/templates/new_issue.html
file modified
+6 -6
pagure/templates/new_project.html
file modified
+1 -1
pagure/templates/new_release.html
file modified
+1 -1
pagure/templates/plugin.html
file modified
+1 -1
pagure/templates/pull_request.html
file modified
+39 -38
pagure/templates/pull_request_comment.html
file modified
+2 -2
pagure/templates/pull_request_title.html
file modified
+2 -2
pagure/templates/releases.html
file modified
+2 -2
pagure/templates/remote_pull_request.html
file modified
+2 -2
pagure/templates/repo_info.html
file modified
+15 -15
pagure/templates/repo_master.html
file modified
+29 -29
pagure/templates/repo_stargazers.html
file modified
+1 -1
pagure/templates/repo_stats.html
file modified
+3 -3
pagure/templates/requests.html
file modified
+16 -16
pagure/templates/roadmap.html
file modified
+11 -11
pagure/templates/settings.html
file modified
+35 -35
pagure/templates/user_emails.html
file modified
+1 -1
pagure/templates/user_info.html
file modified
+1 -1
pagure/templates/user_issues.html
file modified
+2 -2
pagure/templates/user_list.html
file modified
+8 -7
pagure/templates/user_requests.html
file modified
+2 -2
pagure/templates/user_settings.html
file modified
+9 -9
pagure/templates/user_stars.html
file modified
+1 -1
pagure/templates/waiting.html
file modified
+3 -3
pagure/templates/waiting_post.html
file modified
+1 -1
pagure/ui/__init__.py
file modified
+41 -0
pagure/ui/app.py
file modified
+143 -132
pagure/ui/fas_login.py
file added
+101
pagure/ui/filters.py
file modified
+42 -39
pagure/ui/fork.py
file modified
+264 -235
pagure/ui/groups.py
file modified
+76 -72
pagure/ui/issues.py
file modified
+236 -215
pagure/ui/login.py
file modified
+55 -53
pagure/ui/oidc_login.py
file added
+131
pagure/ui/plugins.py
file modified
+24 -23
pagure/ui/repo.py
file modified
+467 -449
pagure/utils.py
file added
+340
runserver.py
file modified
+3 -1
tests/__init__.py
file modified
+28 -22
tests/test_pagure_admin.py
file modified
+16 -12
tests/test_pagure_exclude_group_index.py
file modified
+1 -1
tests/test_pagure_flask.py
file modified
+25 -24
tests/test_pagure_flask_api.py
file modified
+1 -8
tests/test_pagure_flask_api_auth.py
file modified
+0 -10
tests/test_pagure_flask_api_fork.py
file modified
+40 -31
tests/test_pagure_flask_api_group.py
file modified
+1 -8
tests/test_pagure_flask_api_issue.py
file modified
+53 -55
tests/test_pagure_flask_api_issue_change_status.py
file modified
+5 -12
tests/test_pagure_flask_api_issue_comment.py
file modified
+12 -18
tests/test_pagure_flask_api_issue_create.py
file modified
+1 -7
tests/test_pagure_flask_api_issue_custom_fields.py
file modified
+7 -11
tests/test_pagure_flask_api_project.py
file modified
+41 -55
tests/test_pagure_flask_api_ui_private_repo.py
file modified
+60 -58
tests/test_pagure_flask_api_user.py
file modified
+31 -48
tests/test_pagure_flask_docs.py
file modified
+4 -11
tests/test_pagure_flask_dump_load_ticket.py
file modified
+2 -14
tests/test_pagure_flask_form.py
file modified
+10 -12
tests/test_pagure_flask_internal.py
file modified
+58 -61
tests/test_pagure_flask_ui_app.py
file modified
+59 -60
tests/test_pagure_flask_ui_app_give_project.py
file modified
+20 -26
tests/test_pagure_flask_ui_app_index.py
file modified
+8 -19
tests/test_pagure_flask_ui_fork.py
file modified
+87 -94
tests/test_pagure_flask_ui_groups.py
file modified
+21 -33
tests/test_pagure_flask_ui_issues.py
file modified
+123 -130
tests/test_pagure_flask_ui_issues_acl_checks.py
file modified
+32 -45
tests/test_pagure_flask_ui_issues_templates.py
file modified
+9 -16
tests/test_pagure_flask_ui_login.py
file modified
+42 -33
tests/test_pagure_flask_ui_no_master_branch.py
file modified
+2 -15
tests/test_pagure_flask_ui_old_commit.py
file modified
+4 -11
tests/test_pagure_flask_ui_plugins.py
file modified
+2 -15
tests/test_pagure_flask_ui_plugins_default_hook.py
file modified
+2 -15
tests/test_pagure_flask_ui_plugins_fedmsg.py
file modified
+6 -14
tests/test_pagure_flask_ui_plugins_irc.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_mail.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_noff.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_pagure_ci.py
file modified
+2 -15
tests/test_pagure_flask_ui_plugins_pagure_hook.py
file modified
+9 -17
tests/test_pagure_flask_ui_plugins_pagure_request_hook.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_pagure_ticket_hook.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_rtd_hook.py
file modified
+1 -14
tests/test_pagure_flask_ui_plugins_unsigned.py
file modified
+1 -14
tests/test_pagure_flask_ui_pr_no_sources.py
file modified
+9 -19
tests/test_pagure_flask_ui_priorities.py
file modified
+59 -49
tests/test_pagure_flask_ui_quick_reply.py
file modified
+11 -20
tests/test_pagure_flask_ui_repo.py
file modified
+167 -167
tests/test_pagure_flask_ui_repo_delete_project.py
file modified
+28 -35
tests/test_pagure_flask_ui_repo_flag_commit.py
file modified
+10 -12
tests/test_pagure_flask_ui_repo_slash_name.py
file modified
+12 -22
tests/test_pagure_flask_ui_repo_view_file.py
file modified
+7 -14
tests/test_pagure_flask_ui_roadmap.py
file modified
+24 -30
tests/test_pagure_flask_ui_slash_branch_name.py
file modified
+2 -15
tests/test_pagure_flask_ui_star_project.py
file modified
+8 -16
tests/test_pagure_lib.py
file modified
+67 -63
tests/test_pagure_lib_drop_issue.py
file modified
+8 -8
tests/test_pagure_lib_git.py
file modified
+21 -27
tests/test_pagure_lib_git_diff_pr.py
file modified
+2 -2
tests/test_pagure_lib_git_get_tags_objects.py
file modified
+1 -7
tests/test_pagure_lib_gitolite_config.py
file modified
+4 -5
tests/test_pagure_lib_link.py
file modified
+3 -3
tests/test_pagure_lib_login.py
file modified
+3 -4
tests/test_pagure_lib_model.py
file modified
+6 -6
tests/test_pagure_lib_model_delete_project.py
file modified
+0 -7
tests/test_pagure_lib_notify.py
file modified
+3 -3
tests/test_pagure_lib_notify_email.py
file modified
+1 -1
tests/test_pagure_lib_watch_list.py
file modified
+1 -1
tests/test_stream_server.py
file modified
+3 -1
    Re-architure pagure
    
    - Move the session to flask.g instead of importing it everywhere
    - Move the config to its own module
    - Move the code from pagure/__init__.py to pagure.lib, pagure.utils.py
      and pagure.flask_app.py
    - Add an application factory to instanciate and create the flask app
    - Move the UI to be a blueprint
    
    Adjust the services for these changes.
    Adjust all the tests to pass with these changes.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>
    
        
file modified
+1 -1
file modified
+5 -6
file modified
+40 -36
file modified
+0 -880
file modified
+25 -29
file modified
+13 -9
file modified
+43 -38
file modified
+3 -4
file modified
+67 -61
file modified
+78 -64
file modified
+8 -9
file modified
+47 -28
file added
+30
file modified
+3 -6
file added
+402
file modified
+5 -5
file modified
+4 -3
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+4 -4
file modified
+6 -5
file modified
+1 -1
file modified
+38 -37
file modified
+57 -18
file modified
+26 -25
file modified
+18 -16
file modified
+1 -1
file modified
+39 -38
file modified
+85 -88
file modified
+21 -21
file modified
+9 -9
file modified
+7 -7
file modified
+2 -2
file modified
+16 -16
file modified
+2 -2
file modified
+38 -38
file modified
+21 -21
file modified
+10 -10
file modified
+1 -1
file modified
+15 -15
file modified
+16 -16
file modified
+11 -11
file modified
+35 -35
file modified
+41 -0
file modified
+143 -132
file added
+101
file modified
+42 -39
file modified
+264 -235
file modified
+76 -72
file modified
+236 -215
file modified
+55 -53
file modified
+24 -23
file modified
+467 -449
file added
+340
file modified
+3 -1
file modified
+28 -22
file modified
+16 -12
file modified
+25 -24
file modified
+10 -12
file modified
+167 -167
file modified
+67 -63
file modified
+21 -27
file modified
+3 -1