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
8b68ad20
Commit
8b68ad20
authored
Jan 03, 2020
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment userformat excel
parent
9cc16204
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
20 deletions
+22
-20
03-full-api-redeploy.sh.template.SIT
03-full-api-redeploy.sh.template.SIT
+1
-1
app/applicationlayer/cms/auto_email/reminder.py
app/applicationlayer/cms/auto_email/reminder.py
+1
-0
app/applicationlayer/cms/utils_cr.py
app/applicationlayer/cms/utils_cr.py
+1
-1
app/applicationlayer/download/accounts/views.py
app/applicationlayer/download/accounts/views.py
+1
-0
app/applicationlayer/download/company/views.py
app/applicationlayer/download/company/views.py
+2
-2
app/applicationlayer/management/batchupload/views.py
app/applicationlayer/management/batchupload/views.py
+16
-16
No files found.
03-full-api-redeploy.sh.template.SIT
View file @
8b68ad20
...
@@ -11,6 +11,6 @@ cd /var/www/devrms.oneberrysystem.com/
...
@@ -11,6 +11,6 @@ cd /var/www/devrms.oneberrysystem.com/
echo "================================================================";
echo "================================================================";
echo "======================BUILDING API SERVICES=====================";
echo "======================BUILDING API SERVICES=====================";
docker-compose -f api-main-service/docker-compose.yml up -d --build
--remove-orphans
docker-compose -f api-main-service/docker-compose.yml up -d --build
echo "================================================================";
echo "================================================================";
app/applicationlayer/cms/auto_email/reminder.py
View file @
8b68ad20
...
@@ -29,6 +29,7 @@ class ReminderTriggerAPIView(views.APIView):
...
@@ -29,6 +29,7 @@ class ReminderTriggerAPIView(views.APIView):
list_of_emails
=
[]
list_of_emails
=
[]
for
data
in
today_mail
:
for
data
in
today_mail
:
if
data
.
frm_approver
.
is_action
==
True
and
data
.
form_code
.
status
==
'Pending'
:
if
data
.
frm_approver
.
is_action
==
True
and
data
.
form_code
.
status
==
'Pending'
:
# common details
# common details
...
...
app/applicationlayer/cms/utils_cr.py
View file @
8b68ad20
...
@@ -574,7 +574,7 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code,
...
@@ -574,7 +574,7 @@ def crhistory_log_bulk_delete_masterattach(queryset, entity, tbl, form_code,
''
)
''
)
tbl
.
objects
.
filter
(
id
=
test
[
'id'
])
.
delete
()
tbl
.
objects
.
filter
(
id
=
test
[
'id'
])
.
delete
()
# url = models.MasterAttachment.objects.get(id=test['file_upload'])
# url = models.MasterAttachment.objects.get(id=test['file_upload'])
# models.MasterAttachment.objects.filter(
# models.MasterAttachment.objects.filter(
# id=test['file_upload']).delete()
# id=test['file_upload']).delete()
...
...
app/applicationlayer/download/accounts/views.py
View file @
8b68ad20
...
@@ -28,6 +28,7 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
...
@@ -28,6 +28,7 @@ class UserDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
data
=
User
.
objects
.
all
()
data
=
User
.
objects
.
all
()
serializer
=
headers
(
data
=
data
,
many
=
True
)
serializer
=
headers
(
data
=
data
,
many
=
True
)
serializer
.
is_valid
(
raise_exception
=
False
)
serializer
.
is_valid
(
raise_exception
=
False
)
print
(
serializer
.
data
)
return
Response
(
serializer
.
data
)
return
Response
(
serializer
.
data
)
column_header
=
{
column_header
=
{
...
...
app/applicationlayer/download/company/views.py
View file @
8b68ad20
...
@@ -22,14 +22,14 @@ class CompanyDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
...
@@ -22,14 +22,14 @@ class CompanyDownloadRequest(XLSXFileMixin, ReadOnlyModelViewSet):
permission_classes
=
(
AllowAny
,)
permission_classes
=
(
AllowAny
,)
def
list
(
self
,
request
,
*
args
,
**
kwargs
):
def
list
(
self
,
request
,
*
args
,
**
kwargs
):
# id_number = request.user.code
# id_number = request.user.code
data
=
Company
.
objects
.
all
()
data
=
Company
.
objects
.
all
()
serializer
=
headers
(
data
=
data
,
many
=
True
)
serializer
=
headers
(
data
=
data
,
many
=
True
)
serializer
.
is_valid
(
raise_exception
=
False
)
serializer
.
is_valid
(
raise_exception
=
False
)
return
Response
(
serializer
.
data
)
return
Response
(
serializer
.
data
)
column_header
=
{
column_header
=
{
'titles'
:
[
'titles'
:
[
'Name'
,
'Name'
,
...
...
app/applicationlayer/management/batchupload/views.py
View file @
8b68ad20
...
@@ -125,7 +125,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
...
@@ -125,7 +125,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
attach_instruc
.
first
()
.
delete
()
attach_instruc
.
first
()
.
delete
()
directory
=
"uploads"
directory
=
"uploads"
path
=
os
.
path
.
join
(
settings
.
MEDIA_ROOT
,
directory
)
path
=
os
.
path
.
join
(
settings
.
MEDIA_ROOT
,
directory
)
if
not
os
.
path
.
isdir
(
path
):
if
not
os
.
path
.
isdir
(
path
):
...
@@ -224,29 +224,29 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
...
@@ -224,29 +224,29 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
'Privilege_Department_Code'
'Privilege_Department_Code'
)
)
if
departments
.
count
()
>
0
:
#
if departments.count() > 0:
company
=
[
departments
[
0
][
'Privilege_Company'
]]
#
company = [departments[0]['Privilege_Company']]
department
=
[
departments
[
0
][
'Privilege_Department'
]]
#
department = [departments[0]['Privilege_Department']]
department_code
=
[
departments
[
0
][
'Privilege_Department_Code'
]]
#
department_code = [departments[0]['Privilege_Department_Code']]
else
:
#
else:
company
=
"Oneberry Technologies"
#
company = "Oneberry Technologies"
department
=
"Sample Department"
#
department = "Sample Department"
department_code
=
"DEPARTMENT-20190101-0000000"
#
department_code = "DEPARTMENT-20190101-0000000"
departments
=
{
"Privilege_Company"
:
[
'No Department Data'
]}
#
departments = {"Privilege_Company": ['No Department Data']}
data
=
{
data
=
{
'Username'
:
[
"ob-john"
],
'Username'
:
[
"ob-john"
],
'Name'
:
[
"John Doe"
],
'Name'
:
[
"John Doe"
],
'Company'
:
company
,
'Company'
:
[
departments
[
0
][
'Privilege_Company'
]]
,
'Department'
:
department
,
'Department'
:
[
departments
[
0
][
'Privilege_Department'
]]
,
'Department_Code'
:
department_code
,
'Department_Code'
:
[
departments
[
0
][
'Privilege_Department_Code'
]]
,
'Email'
:
[
"johndoe@gmail.com"
],
'Email'
:
[
"johndoe@gmail.com"
],
'Contact_No'
:
[
"123456"
],
'Contact_No'
:
[
"123456"
],
'Application'
:
[
"cms,ams"
],
'Application'
:
[
"cms,ams"
],
'Default_app'
:
[
"cms"
],
'Default_app'
:
[
"cms"
],
'Privilege_Company'
:
company
,
'Privilege_Company'
:
[
departments
[
0
][
'Privilege_Company'
]]
,
'Privilege_Department'
:
department
,
'Privilege_Department'
:
[
departments
[
0
][
'Privilege_Department'
]]
,
'Privilege_Department_Code'
:
department_code
,
'Privilege_Department_Code'
:
[
departments
[
0
][
'Privilege_Department_Code'
]]
,
'Create_CR'
:
[
"Yes"
],
'Create_CR'
:
[
"Yes"
],
'Create_Template'
:
[
"No"
],
'Create_Template'
:
[
"No"
],
'View_All_CR'
:
[
"Yes"
],
'View_All_CR'
:
[
"Yes"
],
...
...
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