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
e24ed9f0
Commit
e24ed9f0
authored
Oct 02, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #256 in RMS/api-main-service from RMSv2 to staging
* commit '
cffd69d9
': fixing rejected remarks
parents
16228410
cffd69d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
app/applicationlayer/cms/form/header/views.py
app/applicationlayer/cms/form/header/views.py
+3
-2
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+1
-1
config/settings/staging.py
config/settings/staging.py
+13
-13
No files found.
app/applicationlayer/cms/form/header/views.py
View file @
e24ed9f0
...
@@ -54,6 +54,7 @@ from app.applicationlayer.cms.form.header.table_filters import HeaderFilterSet
...
@@ -54,6 +54,7 @@ from app.applicationlayer.cms.form.header.table_filters import HeaderFilterSet
from
rest_framework.filters
import
SearchFilter
,
OrderingFilter
from
rest_framework.filters
import
SearchFilter
,
OrderingFilter
from
django_filters
import
rest_framework
as
filters
from
django_filters
import
rest_framework
as
filters
from
django_filters.rest_framework
import
DjangoFilterBackend
from
django_filters.rest_framework
import
DjangoFilterBackend
import
json
APPROVER_MESSAGE
=
settings
.
APPROVER_MESSAGE
APPROVER_MESSAGE
=
settings
.
APPROVER_MESSAGE
REQUESTOR_MESSAGE
=
settings
.
REQUESTOR_MESSAGE
REQUESTOR_MESSAGE
=
settings
.
REQUESTOR_MESSAGE
...
@@ -450,7 +451,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
...
@@ -450,7 +451,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
return
Response
(
return
Response
(
{
"message"
:
"Cannot archive this change request due to ongoing transaction"
},
{
"message"
:
"Cannot archive this change request due to ongoing transaction"
},
status
=
status
.
HTTP_400_BAD_REQUEST
)
status
=
status
.
HTTP_400_BAD_REQUEST
)
except
Exception
as
e
:
except
Exception
as
e
:
return
Response
(
e
,
return
Response
(
e
,
status
=
status
.
HTTP_500_INTERNAL_SERVER_ERROR
)
status
=
status
.
HTTP_500_INTERNAL_SERVER_ERROR
)
...
@@ -561,7 +562,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
...
@@ -561,7 +562,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
# partial update
# partial update
partial
=
kwargs
.
pop
(
'partial'
,
True
)
partial
=
kwargs
.
pop
(
'partial'
,
True
)
instance
=
self
.
get_object
()
instance
=
self
.
get_object
()
form_code
=
kwargs
[
'form_code'
]
form_code
=
kwargs
[
'form_code'
]
# get prefix from template header
# get prefix from template header
...
...
app/helper/email_service/sender.py
View file @
e24ed9f0
...
@@ -494,7 +494,7 @@ def routing_table_actions(args):
...
@@ -494,7 +494,7 @@ def routing_table_actions(args):
department_requestedto
=
args
[
7
]
department_requestedto
=
args
[
7
]
priority_level
=
args
[
8
]
priority_level
=
args
[
8
]
url
=
args
[
9
]
url
=
args
[
9
]
remarks
=
args
[
10
]
remarks
=
str
(
args
[
10
])
recipient
=
args
[
11
]
recipient
=
args
[
11
]
action_type
=
args
[
12
]
action_type
=
args
[
12
]
...
...
config/settings/staging.py
View file @
e24ed9f0
...
@@ -20,23 +20,23 @@ CHANNEL_LAYERS = {
...
@@ -20,23 +20,23 @@ CHANNEL_LAYERS = {
DATABASES
=
{
DATABASES
=
{
'default'
:
{
'default'
:
{
'ENGINE'
:
config
[
'
staging
'
][
'DATABASE_ENGINE'
],
'ENGINE'
:
config
[
'
STAGING
'
][
'DATABASE_ENGINE'
],
'NAME'
:
config
[
'
staging
'
][
'DATABASE_NAME'
],
'NAME'
:
config
[
'
STAGING
'
][
'DATABASE_NAME'
],
'USER'
:
config
[
'
staging
'
][
'DATABASE_USER'
],
'USER'
:
config
[
'
STAGING
'
][
'DATABASE_USER'
],
'PASSWORD'
:
config
[
'
staging
'
][
'DATABASE_PASSWORD'
],
'PASSWORD'
:
config
[
'
STAGING
'
][
'DATABASE_PASSWORD'
],
'HOST'
:
config
[
'
staging
'
][
'DATABASE_HOST'
],
'HOST'
:
config
[
'
STAGING
'
][
'DATABASE_HOST'
],
'PORT'
:
config
[
'
staging
'
][
'DATABASE_PORT'
],
'PORT'
:
config
[
'
STAGING
'
][
'DATABASE_PORT'
],
}
}
}
}
# ****************
# ****************
# PROGRAM SETTINGS
# PROGRAM SETTINGS
# ****************
# ****************
SESSION_TIMEOUT
=
config
[
'
staging
'
][
'SESSION_TIMEOUT'
]
SESSION_TIMEOUT
=
config
[
'
STAGING
'
][
'SESSION_TIMEOUT'
]
FRONT_END_URL
=
config
[
'
staging
'
][
'FRONT_END_URL'
]
FRONT_END_URL
=
config
[
'
STAGING
'
][
'FRONT_END_URL'
]
AUTH_ACCESSS_TOKEN_TIMEOUT
=
config
[
'
staging
'
][
'AUTH_ACCESSS_TOKEN_TIMEOUT'
]
AUTH_ACCESSS_TOKEN_TIMEOUT
=
config
[
'
STAGING
'
][
'AUTH_ACCESSS_TOKEN_TIMEOUT'
]
USER_DEFAULT_PASSWORD
=
config
[
'
staging
'
][
'USER_DEFAULT_PASSWORD'
]
USER_DEFAULT_PASSWORD
=
config
[
'
STAGING
'
][
'USER_DEFAULT_PASSWORD'
]
REALTIMESERVER_IP
=
config
[
'
staging
'
][
'REALTIMESERVER_IP'
]
REALTIMESERVER_IP
=
config
[
'
STAGING
'
][
'REALTIMESERVER_IP'
]
# Notification Messages
# Notification Messages
APPROVER_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'APPROVER_MESSAGE'
]
APPROVER_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'APPROVER_MESSAGE'
]
...
@@ -49,6 +49,6 @@ VENDOR_ACCEPTANCE_MESSAGE = config['NOTIFICATION_EMAIL']['VENDOR_ACCEPTANCE_MESS
...
@@ -49,6 +49,6 @@ VENDOR_ACCEPTANCE_MESSAGE = config['NOTIFICATION_EMAIL']['VENDOR_ACCEPTANCE_MESS
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
VENDOR_REJECT_MESSAGE
=
config
[
'NOTIFICATION_EMAIL'
][
'VENDOR_REJECT_MESSAGE'
]
#ADMIN PROFILE
#ADMIN PROFILE
CATCH_EMAIL
=
config
[
'
staging
'
][
'CATCH_EMAIL'
]
CATCH_EMAIL
=
config
[
'
STAGING
'
][
'CATCH_EMAIL'
]
CR_FRONT_LINK
=
config
[
'
staging
'
][
'CR_LINK'
]
CR_FRONT_LINK
=
config
[
'
STAGING
'
][
'CR_LINK'
]
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