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
68c9cb25
Commit
68c9cb25
authored
Nov 13, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meta etl
parent
29901275
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
app/applicationlayer/management/batchupload/views.py
app/applicationlayer/management/batchupload/views.py
+2
-2
app/applicationlayer/utils.py
app/applicationlayer/utils.py
+1
-0
app/entities/migrations/0041_auto_20191113_1923.py
app/entities/migrations/0041_auto_20191113_1923.py
+21
-0
app/entities/models.py
app/entities/models.py
+2
-4
No files found.
app/applicationlayer/management/batchupload/views.py
View file @
68c9cb25
...
...
@@ -20,7 +20,7 @@ from app.entities.models import (
)
from
app.applicationlayer.utils
import
(
CustomPagination
,
status_message_response
,
main_threading
,
CustomPaginationUserHistory
main_threading
,
PaginationForETL
)
from
rest_framework.exceptions
import
ParseError
from
django.db.models
import
Q
...
...
@@ -35,7 +35,7 @@ from app.applicationlayer.management.batchupload.table_filters import ExtractTra
class
BatchUploadViewSet
(
viewsets
.
ModelViewSet
):
queryset
=
ExtractTransformLoad
.
objects
.
all
()
serializer_class
=
ExtractTransformLoadSerializer
pagination_class
=
CustomPaginationUserHistory
pagination_class
=
PaginationForETL
lookup_field
=
'code'
filter_backends
=
(
DjangoFilterBackend
,
SearchFilter
,
OrderingFilter
)
filterset_class
=
ExtractTransformLoadFilter
...
...
app/applicationlayer/utils.py
View file @
68c9cb25
...
...
@@ -53,6 +53,7 @@ class CustomPagination(PageNumberPagination):
'results'
:
data
[
'results'
]
})
class
PaginationForETL
(
PageNumberPagination
):
page_size
=
100
max_page_size
=
3000
...
...
app/entities/migrations/0041_auto_20191113_1923.py
0 → 100644
View file @
68c9cb25
# Generated by Django 2.2 on 2019-11-13 19:23
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'entities'
,
'0040_auto_20191113_1505'
),
]
operations
=
[
migrations
.
AlterModelTable
(
name
=
'extracttransformload'
,
table
=
'extract_transform_load'
,
),
migrations
.
AlterModelTable
(
name
=
'userhistory'
,
table
=
'extract_transform_load_user_history'
,
),
]
app/entities/models.py
View file @
68c9cb25
...
...
@@ -255,8 +255,7 @@ class ExtractTransformLoad(AuditClass):
)
class
Meta
:
db_table
=
'csv_filenames'
db_table
=
'extract_transform_load'
def
__str__
(
self
):
return
f
'{self.file_name}'
...
...
@@ -272,7 +271,6 @@ class ExtractTransformLoad(AuditClass):
self
.
save
()
class
UserHistory
(
AuditClass
):
file_name
=
models
.
ForeignKey
(
ExtractTransformLoad
,
...
...
@@ -290,7 +288,7 @@ class UserHistory(AuditClass):
deleted
=
models
.
BooleanField
(
default
=
False
)
class
Meta
:
db_table
=
'user_history'
db_table
=
'
extract_transform_load_
user_history'
class
User
(
AbstractUser
):
...
...
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