Skip to content

Commit

Permalink
Remove XmlRpcLog() model
Browse files Browse the repository at this point in the history
Kiwi TCMS will no longer log RPC calls to the database. We feel
like this is not very useful and it adds a small performance penalty.

We can document how to do custom logging separately or if many people
are using this functionality then it can be reverted back!
  • Loading branch information
atodorov committed Jul 18, 2018
1 parent 80cefa8 commit 1429ca5
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 200 deletions.
7 changes: 0 additions & 7 deletions docs/source/modules/tcms.xmlrpc.admin.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/modules/tcms.xmlrpc.handlers.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/modules/tcms.xmlrpc.models.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/modules/tcms.xmlrpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ Submodules

.. toctree::

tcms.xmlrpc.admin
tcms.xmlrpc.decorators
tcms.xmlrpc.forms
tcms.xmlrpc.handlers
tcms.xmlrpc.models
tcms.xmlrpc.serializer
tcms.xmlrpc.utils

2 changes: 0 additions & 2 deletions tcms/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@
'tcms.xmlrpc.api.user',
'tcms.xmlrpc.api.version',
]
# RPC handlers which can log RPC calls to the database
MODERNRPC_HANDLERS = ['tcms.xmlrpc.handlers.XMLRPCHandler', 'tcms.xmlrpc.handlers.JSONRPCHandler']

SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'

Expand Down
2 changes: 1 addition & 1 deletion tcms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Index and static zone
url(r'^$', core_views.index, name='core-views-index'),
url(r'^xml-rpc/', RPCEntryPoint.as_view(protocol=XMLRPC_PROTOCOL), name='xml-rpc'),
url(r'^xml-rpc/', RPCEntryPoint.as_view(protocol=XMLRPC_PROTOCOL)),
url(r'^json-rpc/$', RPCEntryPoint.as_view(protocol=JSONRPC_PROTOCOL)),

# Ajax call responder
Expand Down
35 changes: 0 additions & 35 deletions tcms/xmlrpc/admin.py

This file was deleted.

67 changes: 0 additions & 67 deletions tcms/xmlrpc/handlers.py

This file was deleted.

20 changes: 20 additions & 0 deletions tcms/xmlrpc/migrations/0002_remove_xmlrpclog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 2.0.7 on 2018-07-18 13:52

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('xmlrpc', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='xmlrpclog',
name='user',
),
migrations.DeleteModel(
name='XmlRpcLog',
),
]
16 changes: 0 additions & 16 deletions tcms/xmlrpc/models.py

This file was deleted.

55 changes: 0 additions & 55 deletions tcms/xmlrpc/tests/test_logging.py

This file was deleted.

0 comments on commit 1429ca5

Please sign in to comment.