Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
b7cda0b7
Commit
b7cda0b7
authored
Oct 02, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'RMSv2' of
http://42.61.118.105:7990/scm/rms/api-main-service
into gladys-dev2
parents
0300b216
b2f0857c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
17 deletions
+13
-17
app/applicationlayer/management/account/views.py
app/applicationlayer/management/account/views.py
+2
-2
app/applicationlayer/management/application/views.py
app/applicationlayer/management/application/views.py
+1
-1
app/applicationlayer/management/company/views.py
app/applicationlayer/management/company/views.py
+2
-2
app/applicationlayer/management/department/views.py
app/applicationlayer/management/department/views.py
+2
-2
app/applicationlayer/management/module/views.py
app/applicationlayer/management/module/views.py
+2
-2
app/applicationlayer/management/user/views.py
app/applicationlayer/management/user/views.py
+1
-1
app/applicationlayer/utils.py
app/applicationlayer/utils.py
+2
-6
app/businesslayer/changerequest/change_request_template.py
app/businesslayer/changerequest/change_request_template.py
+1
-1
No files found.
app/applicationlayer/management/account/views.py
View file @
b7cda0b7
...
...
@@ -148,7 +148,7 @@ class UserViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
USER
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
new_instance
,
''
)
...
...
@@ -192,7 +192,7 @@ class UserViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
UPDATE
.
value
,
enums
.
LogEntitiesEnum
.
USER
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
old_instance
,
new_instance
)
...
...
app/applicationlayer/management/application/views.py
View file @
b7cda0b7
...
...
@@ -94,7 +94,7 @@ class ApplicationViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
UPDATE
.
value
,
enums
.
LogEntitiesEnum
.
APPLICATION
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
old_instance
,
new_instance
)
...
...
app/applicationlayer/management/company/views.py
View file @
b7cda0b7
...
...
@@ -72,7 +72,7 @@ class CompanyViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
COMPANY
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
new_instance
,
''
)
...
...
@@ -95,7 +95,7 @@ class CompanyViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
COMPANY
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
old_instance
,
new_instance
)
...
...
app/applicationlayer/management/department/views.py
View file @
b7cda0b7
...
...
@@ -73,7 +73,7 @@ class DepartmentViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
DEPARTMENT
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
new_instance
,
''
)
...
...
@@ -95,7 +95,7 @@ class DepartmentViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
DEPARTMENT
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
old_instance
,
new_instance
)
...
...
app/applicationlayer/management/module/views.py
View file @
b7cda0b7
...
...
@@ -150,7 +150,7 @@ class ModuleViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
UPDATE
.
value
,
enums
.
LogEntitiesEnum
.
MODULE
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
old_instance
,
new_instance
)
...
...
@@ -173,7 +173,7 @@ class ModuleViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
MODULE
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
new_instance
,
''
)
...
...
app/applicationlayer/management/user/views.py
View file @
b7cda0b7
...
...
@@ -59,7 +59,7 @@ class UsersManagementViewSet(viewsets.ModelViewSet):
log_save
(
enums
.
LogEnum
.
DELETED
.
value
,
enums
.
LogEntitiesEnum
.
USER
.
value
,
new_instance
[
'id'
]
,
instance
.
id
,
new_instance
,
''
)
...
...
app/applicationlayer/utils.py
View file @
b7cda0b7
...
...
@@ -23,13 +23,9 @@ def model_to_dict(instance):
mySerializer
.
Meta
.
model
=
instance
.
__class__
dataPre
=
mySerializer
(
instance
)
.
data
return
mySerializer
(
instance
)
.
data
strData
=
json
.
dumps
(
dataPre
)
return
strData
except
expression
as
identifier
:
except
Exception
as
e
:
return
'Serialization Error'
...
...
app/businesslayer/changerequest/change_request_template.py
View file @
b7cda0b7
...
...
@@ -87,7 +87,7 @@ def tmp_add_edit_delete(tmp_request_body,
log_save
(
enums
.
LogEnum
.
ADD
.
value
,
enum_type
,
new
_instance
[
'id'
],
old
_instance
[
'id'
],
''
,
new_instance
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment