-
Notifications
You must be signed in to change notification settings - Fork 54
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
QA #661
QA #661
Conversation
99fe857
to
3d8634f
Compare
ff8782a
to
32a8d1c
Compare
37c1cb5
to
1159b84
Compare
@@ -42,7 +37,7 @@ | |||
DATE_FORMAT = os.environ.get('DATE_FORMAT', "%d %b, %Y %H:%M") | |||
LOGIN_HELPER_TEXT = os.environ.get('LOGIN_HELPER_TEXT', None) | |||
IS_DEV_SERVER = str_to_bool(os.environ.get('IS_DEV_SERVER', False)) | |||
|
|||
SQL_DEBUG = str_to_bool(os.environ.get('SQL_DEBUG', False)) |
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.
add to doc or remove
Squest/settings.py
Outdated
@@ -126,23 +123,22 @@ | |||
# Database | |||
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases | |||
|
|||
DJANGO_DATABASE_NAME = os.environ.get("DJANGO_DATABASE_NAME", 'default') | |||
DJANGO_DATABASE_ENGINE = os.environ.get("DJANGO_DATABASE_ENGINE", 'django.db.backends.mysql') |
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.
doc
|
||
if request.user.has_perm('service_catalog.list_support'): | ||
context['total_support_opened'] = all_supports.filter(state='OPENED').count() | ||
context['total_support_opened'] = all_supports.filter(state=SupportState.OPENED).count() |
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.
remove admin_data.py
docs/manual/administration/extras.md
Outdated
|
||
- **name:** Name of your hook | ||
- **Model:** Target model object that will be linked to the hook (`Request` or an `Instance`) | ||
- **State:** State of the selected `model`. The hook will be triggered when an instance of the select model type will switch to this selected state |
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.
to be reviews as model doesn't exist anymore
{ | ||
'name': 'Instance hook ', | ||
'view_name': 'service_catalog:instancehook_list', | ||
'icon': 'fas fa-file-code', |
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.
far
@@ -143,5 +143,5 @@ def ajax_load_attribute(request): | |||
|
|||
options = [(transformer.attribute_definition.id, transformer.attribute_definition.name) for transformer in | |||
all_available_attribute_to_target_rg.all()] | |||
return render(request, 'service_catalog/settings/global_hooks/state-dropdown-list-option.html', | |||
return render(request, 'generics/ajax.html', |
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.
ajax_option
operations = [ | ||
|
||
migrations.RunSQL('UPDATE service_catalog_instance SET state = 1 WHERE state = "SUBMITTED";'), | ||
migrations.RunSQL('UPDATE service_catalog_instance SET state = 1 WHERE state = "PENDING";'), |
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.
should be 2
7fd772b
to
cf7cec6
Compare
def test_create_valid_request_hook(self): | ||
data = { | ||
"name": "hook1", | ||
"model": "Request", |
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.
model is not here anymore
def test_edit_request_hook(self): | ||
data = { | ||
"name": "hook2", | ||
"model": "Request", |
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.
model
No description provided.