-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ug remove future imports from explorer #620
Open
Ujjwal-Squadstack
wants to merge
187
commits into
explorerhq:master
Choose a base branch
from
squadrun:ug_remove_future_imports_from_explorer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
187 commits
Select commit
Hold shift + click to select a range
1798f4c
[CU - #1ykyu7k] feat: add new model for Query Change Log
ShravanCool 177cb92
[CU - #1ykyu7k] feat: added new view for query change logs
ShravanCool d4ffe88
[CU - #1ykyu7k] feat: added links for query change log template view
ShravanCool af283c5
[CU - #1ykyu7k] feat: added new tests for query change log view
ShravanCool 8ab406d
[CU - #1ykyu7k] feat: added migrations for query change log model
ShravanCool 8fc95b3
[CU - #1ykyu7k] refactor: code clean-up
ShravanCool 2042cba
[CU - #1ykyu7k] [CU - #1ykyu7k] feat: added test settings file
ShravanCool e7ccbf6
[CU - #1ykyu7k] refactor: code clean-up
ShravanCool f4011ef
Merge pull request #1 from squadrun/shravan/#1ykyu7k_explorer_queries…
ShravanCool bda1251
[CU - ] feat: added new functions for checking replication lag
ShravanCool 5a72a69
[CU - ] refactor: modified views and templates to include replication…
ShravanCool 6b2eebe
[CU - ] refactor: code clean-up
ShravanCool ff6bec6
[CU - ] refactor: code clean-up
ShravanCool 08c8189
[CU - ] feat: use 'ago' package to humanize timedelta
ShravanCool 5d583ff
[CU - ] feat: added package 'ago' to requirements and set-up files
ShravanCool d11aa77
[CU - ] refactor: change threshold value as a constant
ShravanCool 208ee6e
[CU - ] refactor: update warning message for replication lag
ShravanCool 9d316ad
Merge pull request #2 from squadrun/shravan/show_replication_lag_expl…
ShravanCool 46d1314
fixes py2/3 incompatibility of Query model
34ea7d6
Merge pull request #3 from squadrun/ks_py2_3_incompatibility_fix
dbd8e61
fixes deps not getting installed on package user's repo
00c87b1
Merge pull request #4 from squadrun/ks_py2_3_incompatibility_fix
0097a86
integrate clarity for explorer
9309fd5
[CU - #2a2abq2] clean up
62015a2
Merge pull request #5 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 91533b1
[CU - #2a2abq2] add custom filters
efa912c
[CU - #2a2abq2] refactor
137d1e6
Merge pull request #6 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 76cb1ee
[CU - #2a2abq2] remove duplicate block names
cd586af
Merge pull request #7 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 123f1db
[CU - #2a2abq2] get user from request
b684780
Merge pull request #8 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi eddcc24
[CU - #2a2abq2] get full name instead of short name
dc68915
Merge pull request #9 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 7fa74e7
[CU - #2a2abq2] refactor
90d7393
Merge pull request #10 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 41a264e
[CU - #2a2abq2] add username filter
61e2020
Merge pull request #11 from squadrun/srujana/#2a2abq2_integrate_clarity
srujanamanvi 53ec2cd
[CU - ] refactor: change ago dependency to 0.0.93 exact match
ShravanCool 0713ca9
Merge pull request #12 from squadrun/Shravan/fix_ago_dependency_issue
ShravanCool d2019e8
added new migration 0006 snapshot
6f0e7ef
Merge pull request #14 from squadrun/vg_migration_fix
vineetgupta0 778ba82
add info alert for revoking column access
Ujjwal-Squadstack 378a339
add info alert for revoking column access
Ujjwal-Squadstack 37f520e
Merge pull request #15 from squadrun/ug_add_info_alert_for_column_rem…
ayush--s ed51232
Merge branch 'master' of github.com:squadrun/django-sql-explorer into…
Ujjwal-Squadstack 2a19ee3
add warning alert
Ujjwal-Squadstack 764a198
Merge pull request #16 from squadrun/ug_add_info_alert_for_column_rem…
Ujjwal-Squadstack b086fcb
add paragraph
Ujjwal-Squadstack e1ea7d4
Merge pull request #17 from squadrun/ug_add_info_alert_for_column_rem…
Ujjwal-Squadstack 54d476b
new connection added
HemendraSharma04 f88756e
debug
HemendraSharma04 dea5296
debug
HemendraSharma04 0130f5e
debug
HemendraSharma04 4beb391
debug
HemendraSharma04 b6b7d94
debug
HemendraSharma04 c44c4fc
debug
HemendraSharma04 cbbd881
bug fixed
HemendraSharma04 ecb62a6
debug
HemendraSharma04 4e04375
debug
HemendraSharma04 ba05ba5
debug
HemendraSharma04 0ec574d
debug
HemendraSharma04 f64fc78
debug again
HemendraSharma04 34f84ba
debug
HemendraSharma04 715270f
debug
HemendraSharma04 16f879d
test
HemendraSharma04 8aff032
test
HemendraSharma04 6f2645e
testing
HemendraSharma04 fa02c3a
code refactored
HemendraSharma04 8364d64
final
HemendraSharma04 7795949
final modifications
HemendraSharma04 85b50a3
modified code
HemendraSharma04 50511d2
minor bug fix
HemendraSharma04 989b90d
minor bug fix
HemendraSharma04 42dcdfa
Merge pull request #18 from HemendraSharma04/master
Ujjwal-Squadstack 919d449
debug
HemendraSharma04 8bfbc3c
debug
HemendraSharma04 3171be7
debug
HemendraSharma04 a4d606f
debug
HemendraSharma04 b8c76d6
debug
HemendraSharma04 67570a8
test
HemendraSharma04 4707e55
revert template code
HemendraSharma04 3cc5e4e
template change
HemendraSharma04 839550b
view changes revert
HemendraSharma04 c0cceda
view changes revert
HemendraSharma04 04c40d5
view changes revert
HemendraSharma04 9f891f9
debug
HemendraSharma04 dd67de4
debug
HemendraSharma04 fbf7851
debug
HemendraSharma04 b1aa5b3
code refactored
HemendraSharma04 12f2fe0
debug exception
HemendraSharma04 404c18f
debug exception
HemendraSharma04 bc3eb7d
debug error
HemendraSharma04 f3d7c7c
debug error test
HemendraSharma04 cea79d8
final changes
HemendraSharma04 be0d644
final testing
HemendraSharma04 a164b36
final testing
HemendraSharma04 e59c6b7
final testing
HemendraSharma04 85764ca
final testing
HemendraSharma04 e908d3c
final testing exception handling
HemendraSharma04 80120de
final test
HemendraSharma04 da1ab6e
final test debug
HemendraSharma04 7f58938
message test
HemendraSharma04 7a21e12
message test
HemendraSharma04 4de7f0d
testing done
HemendraSharma04 ba13778
final cleanup
HemendraSharma04 326bfed
playground bug fix
HemendraSharma04 075b1be
Merge pull request #20 from HemendraSharma04/master
HemendraSharma04 a5cebaf
[CU - ] feat: added util functions to route requests to async_api db
ShravanCool aa3550f
[CU - ] feat: query requestlog tables in asyncapi db
ShravanCool 17b8a09
[CU - ] feat: add cutoff_date for requestlog queries
ShravanCool b00f5d4
[CU - ] test: added tests for method adding cutoff-date for requestlog
ShravanCool 8920e45
Merge pull request #21 from squadrun/shravan/cus-1216_add_requestlog_…
shailykhamesra d93dc06
[CU - ] feat: add where clause before group, order or limit clauses
ShravanCool 5cbd54d
[CU - ] refactor: convert iterator to list
ShravanCool 911be1e
[CU - ] refactor: use a common method to add query clauses
ShravanCool f441c6c
Merge pull request #22 from squadrun/shravan/cus-1216_add_requestlog_…
shailykhamesra 3891d28
Merge branch 'master' of github.com:squadrun/django-sql-explorer
Ujjwal-Squadstack 9c8676d
minor bug fix
HemendraSharma04 6d9a2d9
Merge branch 'squadrun:master' into hs_minor_bug_fix
HemendraSharma04 0b70c79
Merge pull request #23 from HemendraSharma04/hs_minor_bug_fix
HemendraSharma04 b5283a2
Merge branch 'master' of github.com:squadrun/django-sql-explorer
Ujjwal-Squadstack ae1f02f
[CU - ] fix: specify tablename in filter
ShravanCool d6a2a89
[CU - ] test: fix tests
ShravanCool b1e8217
Merge pull request #24 from squadrun/shravan/cus-1216_add_requestlog_…
shailykhamesra 72c1c32
:sparkles: PII masking (email and phone number) | JSON and TEXT fields
mayank-jain-1010 596e958
:sparkles: Added check to run on non-pii types
mayank-jain-1010 b5ac4d3
:hammer: Test case check
mayank-jain-1010 900e940
:hammer: Resolved comments
mayank-jain-1010 3c773b5
:hammer: Comments resolved
mayank-jain-1010 f79ff04
:hammer: Fixed test
mayank-jain-1010 50247f7
:wrench: Reverted settings
mayank-jain-1010 1731ce4
:wrench: Comments addressed
mayank-jain-1010 e314dd7
Merge pull request #25 from squadrun/Mayank/#CU-85zte7gkb/mask-pii-fr…
mayank-jain-1010 d9bcc11
[CU - ] feat: remove the cutoff date filter
ShravanCool 88b6f12
[CU - ] feat: added note regarding table info
ShravanCool 24886f0
Merge pull request #26 from squadrun/shravan/cus-1592_remove_cutoff_d…
shailykhamesra 62ddd47
player phone number masking implementation
ManikGarg008 fd76f70
added a null check
ManikGarg008 b6370f6
removed unwanted constant
ManikGarg008 e50c5e6
replaced a constant
ManikGarg008 3f2c7e0
Merge pull request #27 from squadrun/manik_#85ztjn6rh_mask_phone_number
ManikGarg008 a5eece9
added table level and runtime checks for masking pii
ManikGarg008 8ade8a1
Merge pull request #28 from squadrun/manik_#85ztjn6rh_mask_phone_number
ManikGarg008 276a0ba
Improved masking for Player PII
ManikGarg008 1a39109
Minor regexe pattern change for masking pii in username
ManikGarg008 285d880
Merge pull request #29 from squadrun/manik_#85ztn4m9d_improve_masking…
ManikGarg008 9c6ef43
fixed PII invisibility in download csv requests
ManikGarg008 e4fecf1
Merge pull request #30 from squadrun/manik_#85ztn4m9d_improve_masking…
ManikGarg008 0ed5163
Fixed Format Button
modo27 3b702fa
Merge pull request #31 from squadrun/md/#format_fix
modo27 b4907b2
fixing format
Vaibhav-Lodha 34a935f
Merge pull request #32 from squadrun/fixing_format
Vaibhav-Lodha 115bda8
added query execute for master db read only
raybittuiq d2548b2
Merge pull request #33 from squadrun/bittu-add-support-to-execute-on-…
raybittuiq ca98547
Merge branch 'master' of github.com:squadrun/django-sql-explorer
Ujjwal-Squadstack 196e319
csrf_exempt
Ujjwal-Squadstack 39a3216
Merge pull request #34 from squadrun/ug_csrf_exempt_for_django_1.10
Ujjwal-Squadstack f27f9cc
fix download_csv csrf
Ujjwal-Squadstack cd254fb
fix download_csv csrf
Ujjwal-Squadstack dc5ac56
Merge pull request #35 from squadrun/ug_csrf_exempt_for_django_1.10
ayushsquad 99cef98
Update views.py
HemendraSharma04 4089471
Update views.py
HemendraSharma04 38363b9
Update views.py
HemendraSharma04 c598a71
update for django 1.11
HemendraSharma04 0d09987
update for django 1.11
HemendraSharma04 8909d3c
update for django 1.11
HemendraSharma04 a424bfe
Merge pull request #36 from HemendraSharma04/master
HemendraSharma04 5e01ef1
fix context issue by flattening the context
HemendraSharma04 47f3781
Merge pull request #38 from squadrun/hs_fix_context_rendering_issue
HemendraSharma04 9fc7f86
fix version
HemendraSharma04 28da008
Merge pull request #39 from squadrun/hs_fix_version
HemendraSharma04 9b1aef2
make temp request log tables visible on explorer
ananay-squad10 ddbcdc5
changed to note to include pii_masked_request_headers
ananay-squad10 a1ba38a
Merge pull request #40 from squadrun/Ananay_temp_request_log_tables
ananay-squad10 3007ef8
change reverse import from django.conf.urlresolvers to django.urls
HemendraSharma04 169cd21
fix
HemendraSharma04 7a1dbeb
fix
HemendraSharma04 e248f15
fix on_delete
HemendraSharma04 4264369
fix
HemendraSharma04 780cdc4
fix
HemendraSharma04 a03c9e5
debug
HemendraSharma04 62787d1
debug
HemendraSharma04 60a6e90
rel renamed to remote_field
HemendraSharma04 cecfcf2
debug
HemendraSharma04 45cbfac
Merge pull request #41 from squadrun/hs_fix_reverse_import
HemendraSharma04 8fd4e26
remove future dependencies
Ujjwal-Squadstack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ | |
/dist | ||
*.egg-info | ||
.DS_Store | ||
tmp | ||
/build | ||
*# | ||
*~ | ||
.coverage | ||
/htmlcov/ | ||
*.orig | ||
*.orig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.5-slim | ||
|
||
# Set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the requirements file into the container at /app | ||
COPY requirements.txt /app/ | ||
COPY optional-requirements.txt /app/ | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install Django==1.11.17 | ||
RUN pip install -r requirements.txt | ||
RUN pip install -r optional-requirements.txt | ||
|
||
# Copy the entire Django project directory into the container at /app | ||
COPY . /app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: '3' | ||
services: | ||
db: | ||
image: postgres:13 | ||
environment: | ||
POSTGRES_DB: mydb | ||
POSTGRES_USER: myuser | ||
POSTGRES_PASSWORD: mypassword | ||
|
||
web: | ||
build: . | ||
command: python manage.py runserver 0.0.0.0:8000 | ||
volumes: | ||
- .:/app | ||
ports: | ||
- "8000:8000" | ||
depends_on: | ||
- db | ||
environment: | ||
DEBUG: "True" # Set to "False" in production | ||
DJANGO_DB_HOST: db | ||
DJANGO_DB_PORT: 5432 | ||
DJANGO_DB_NAME: mydb | ||
DJANGO_DB_USER: myuser | ||
DJANGO_DB_PASSWORD: mypassword | ||
links: | ||
- db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
__version_info__ = { | ||
'major': 0, | ||
'minor': 9, | ||
'micro': 2, | ||
'micro': 23, | ||
'releaselevel': 'final', | ||
'serial': 0 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,49 @@ | |
|
||
# Required | ||
EXPLORER_CONNECTION_NAME = getattr(settings, 'EXPLORER_CONNECTION_NAME', None) | ||
EXPLORER_CONNECTION_PII_NAME = getattr( | ||
settings, 'EXPLORER_CONNECTION_PII_NAME', None) | ||
EXPLORER_CONNECTION_ASYNC_API_DB_NAME = getattr( | ||
settings, 'EXPLORER_CONNECTION_ASYNC_API_DB_NAME', None) | ||
EXPLORER_MASTER_DB_CONNECTION_NAME = getattr(settings, 'EXPLORER_MASTER_DB_CONNECTION', None) | ||
|
||
# Change the behavior of explorer | ||
EXPLORER_SQL_BLACKLIST = getattr(settings, 'EXPLORER_SQL_BLACKLIST', ('ALTER', 'RENAME ', 'DROP', 'TRUNCATE', 'INSERT INTO', 'UPDATE', 'REPLACE', 'DELETE', 'CREATE TABLE', 'SCHEMA', 'GRANT', 'OWNER TO')) | ||
EXPLORER_SQL_WHITELIST = getattr(settings, 'EXPLORER_SQL_WHITELIST', ('CREATED', 'DELETED', 'REGEXP_REPLACE')) | ||
EXPLORER_SQL_BLACKLIST = getattr(settings, 'EXPLORER_SQL_BLACKLIST', ('ALTER', 'RENAME ', 'DROP', 'TRUNCATE', | ||
'INSERT INTO', 'UPDATE', 'REPLACE', 'DELETE', 'CREATE TABLE', 'SCHEMA', 'GRANT', 'OWNER TO')) | ||
EXPLORER_SQL_WHITELIST = getattr( | ||
settings, 'EXPLORER_SQL_WHITELIST', ('CREATED', 'DELETED', 'REGEXP_REPLACE')) | ||
TABLE_NAMES_FOR_PII_MASKING = getattr( | ||
settings, 'TABLE_NAMES_FOR_PII_MASKING', None) | ||
EXPLORER_DEFAULT_ROWS = getattr(settings, 'EXPLORER_DEFAULT_ROWS', 1000) | ||
EXPLORER_SCHEMA_EXCLUDE_APPS = getattr(settings, 'EXPLORER_SCHEMA_EXCLUDE_APPS', ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin')) | ||
EXPLORER_SCHEMA_EXCLUDE_APPS = getattr(settings, 'EXPLORER_SCHEMA_EXCLUDE_APPS', ( | ||
'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin')) | ||
EXPLORER_TRANSFORMS = getattr(settings, 'EXPLORER_TRANSFORMS', []) | ||
EXPLORER_PERMISSION_VIEW = getattr(settings, 'EXPLORER_PERMISSION_VIEW', lambda u: u.is_staff) | ||
EXPLORER_PERMISSION_CHANGE = getattr(settings, 'EXPLORER_PERMISSION_CHANGE', lambda u: u.is_staff) | ||
EXPLORER_RECENT_QUERY_COUNT = getattr(settings, 'EXPLORER_RECENT_QUERY_COUNT', 10) | ||
EXPLORER_PERMISSION_VIEW = getattr( | ||
settings, 'EXPLORER_PERMISSION_VIEW', lambda u: u.is_staff) | ||
EXPLORER_PERMISSION_CHANGE = getattr( | ||
settings, 'EXPLORER_PERMISSION_CHANGE', lambda u: u.is_staff) | ||
EXPLORER_RECENT_QUERY_COUNT = getattr( | ||
settings, 'EXPLORER_RECENT_QUERY_COUNT', 10) | ||
CSV_DELIMETER = getattr(settings, "EXPLORER_CSV_DELIMETER", ",") | ||
|
||
# API access | ||
EXPLORER_TOKEN = getattr(settings, 'EXPLORER_TOKEN', 'CHANGEME') | ||
# These are callable to aid testability by dodging the settings cache. | ||
# There is surely a better pattern for this, but this'll hold for now. | ||
EXPLORER_GET_USER_QUERY_VIEWS = lambda: getattr(settings, 'EXPLORER_USER_QUERY_VIEWS', {}) | ||
EXPLORER_TOKEN_AUTH_ENABLED = lambda: getattr(settings, 'EXPLORER_TOKEN_AUTH_ENABLED', False) | ||
|
||
|
||
def EXPLORER_GET_USER_QUERY_VIEWS(): return getattr( | ||
settings, 'EXPLORER_USER_QUERY_VIEWS', {}) | ||
|
||
|
||
def EXPLORER_TOKEN_AUTH_ENABLED(): return getattr( | ||
settings, 'EXPLORER_TOKEN_AUTH_ENABLED', False) | ||
|
||
|
||
# Async task related. Note that the EMAIL_HOST settings must be set up for email to work. | ||
ENABLE_TASKS = getattr(settings, "EXPLORER_TASKS_ENABLED", False) | ||
S3_ACCESS_KEY = getattr(settings, "EXPLORER_S3_ACCESS_KEY", None) | ||
S3_SECRET_KEY = getattr(settings, "EXPLORER_S3_SECRET_KEY", None) | ||
S3_BUCKET = getattr(settings, "EXPLORER_S3_BUCKET", None) | ||
FROM_EMAIL = getattr(settings, 'EXPLORER_FROM_EMAIL', '[email protected]') | ||
FROM_EMAIL = getattr(settings, 'EXPLORER_FROM_EMAIL', | ||
'[email protected]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PII_MASKING_PATTERN_REPLACEMENT_DICT = { | ||
r"(?:\+?\d{1,3}|0)?([6-9]\d{9})\b": "XXXXXXXXXXX", # For phone number | ||
r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b": "[email protected]", # For email | ||
} | ||
|
||
TYPE_CODE_FOR_JSON = 3802 | ||
TYPE_CODE_FOR_TEXT = 25 | ||
TYPE_CODE_FOR_CHAR = 1043 | ||
|
||
PLAYER_PHONE_NUMBER_MASKING_TYPE_CODES = [TYPE_CODE_FOR_CHAR] | ||
|
||
ALLOW_PHONE_NUMBER_MASKING_GROUP_ID = 10439 | ||
|
||
PATTERN_FOR_FINDING_PHONE_NUMBER = r"\+?\d{0,3}?([6-9]\d{9})(?:_\w+)?\b" | ||
PATTERN_FOR_FINDING_EMAIL = r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9 on 2022-03-25 05:46 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('explorer', '0004_querylog_duration'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='QueryChangeLog', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('old_sql', models.TextField(blank=True, null=True)), | ||
('new_sql', models.TextField(blank=True, null=True)), | ||
('run_at', models.DateTimeField(auto_now_add=True)), | ||
('query', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='explorer.Query')), | ||
('run_by_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'ordering': ['-run_at'], | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('explorer', '0005_querychangelog'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='query', | ||
name='snapshot', | ||
field=models.BooleanField(default=False, help_text='Include in snapshot task (if enabled)'), | ||
), | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧐