Skip to content
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

Merged
merged 5 commits into from
Sep 14, 2023
Merged

QA #661

merged 5 commits into from
Sep 14, 2023

Conversation

a-belhadj
Copy link
Collaborator

No description provided.

@a-belhadj a-belhadj force-pushed the QA branch 2 times, most recently from 99fe857 to 3d8634f Compare September 12, 2023 11:28
@a-belhadj a-belhadj force-pushed the QA branch 9 times, most recently from ff8782a to 32a8d1c Compare September 12, 2023 23:14
@@ -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))
Copy link
Contributor

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

@@ -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')
Copy link
Contributor

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()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove admin_data.py


- **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
Copy link
Contributor

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',
Copy link
Contributor

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',
Copy link
Contributor

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";'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be 2

@a-belhadj a-belhadj force-pushed the QA branch 2 times, most recently from 7fd772b to cf7cec6 Compare September 13, 2023 15:19
def test_create_valid_request_hook(self):
data = {
"name": "hook1",
"model": "Request",
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

model

@Sispheor Sispheor merged commit a4fc9a8 into HewlettPackard:dev Sep 14, 2023
@a-belhadj a-belhadj deleted the QA branch September 18, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants