forked from pool/python-sortinghat
		
	* Mark individuals as reviewed
    Individuals can now be marked as reviewed to keep track of
    which profiles have already been checked and when. A profile can
    be marked as reviewed more than once, it will show the date
    of the last review.
  * Wrong arrong direction when merging recommendations (#934)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortinghat?expand=0&rev=46
		
	
		
			
				
	
	
		
			60 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| Index: grimoirelab-sortinghat-1.2.1/config/settings/config_testing.py
 | |
| ===================================================================
 | |
| --- grimoirelab-sortinghat-1.2.1.orig/config/settings/config_testing.py
 | |
| +++ grimoirelab-sortinghat-1.2.1/config/settings/config_testing.py
 | |
| @@ -1,3 +1,4 @@
 | |
| +import os
 | |
|  import sys
 | |
|  import logging
 | |
|  
 | |
| @@ -38,8 +39,8 @@ SQL_MODE = [
 | |
|  DATABASES = {
 | |
|      'default': {
 | |
|          'ENGINE': 'django.db.backends.mysql',
 | |
| -        'USER': 'root',
 | |
| -        'PASSWORD': 'root',
 | |
| +        'USER': os.environ.get('TEST_SORTINGHAT_DB_USER', 'root'),
 | |
| +        'PASSWORD': os.environ.get('TEST_SORTINGHAT_DB_PASSWORD', 'root'),
 | |
|          'NAME': 'sortinghat_db',
 | |
|          'OPTIONS': {
 | |
|              'charset': 'utf8mb4',
 | |
| @@ -49,9 +50,10 @@ DATABASES = {
 | |
|              'NAME': 'testhat',
 | |
|              'CHARSET': 'utf8mb4',
 | |
|              'COLLATION': 'utf8mb4_unicode_520_ci',
 | |
| +            'MIRROR': False
 | |
|          },
 | |
|          'HOST': '127.0.0.1',
 | |
| -        'PORT': 3306
 | |
| +        'PORT': os.environ.get('TEST_SORTINGHAT_DB_PORT', 3306)
 | |
|      }
 | |
|  }
 | |
|  
 | |
| Index: grimoirelab-sortinghat-1.2.1/config/settings/config_testing_tenant.py
 | |
| ===================================================================
 | |
| --- grimoirelab-sortinghat-1.2.1.orig/config/settings/config_testing_tenant.py
 | |
| +++ grimoirelab-sortinghat-1.2.1/config/settings/config_testing_tenant.py
 | |
| @@ -15,8 +15,8 @@ TENANTS_DEDICATED_QUEUES = [t["name"] fo
 | |
|  DATABASES.update({
 | |
|      tenant: {
 | |
|          'ENGINE': 'django.db.backends.mysql',
 | |
| -        'USER': 'root',
 | |
| -        'PASSWORD': 'root',
 | |
| +        'USER': os.environ.get('TEST_SORTINGHAT_DB_USER', 'root'),
 | |
| +        'PASSWORD': os.environ.get('TEST_SORTINGHAT_DB_PASSWORD', 'root'),
 | |
|          'NAME': tenant,
 | |
|          'OPTIONS': {
 | |
|              'charset': 'utf8mb4',
 | |
| @@ -26,9 +26,10 @@ DATABASES.update({
 | |
|              'NAME': tenant,
 | |
|              'CHARSET': 'utf8mb4',
 | |
|              'COLLATION': 'utf8mb4_unicode_520_ci',
 | |
| +            'MIRROR': False
 | |
|          },
 | |
|          'HOST': '127.0.0.1',
 | |
| -        'PORT': 3306
 | |
| +        'PORT': os.environ.get('TEST_SORTINGHAT_DB_PORT', 3306)
 | |
|      }
 | |
|      for tenant in [t["name"] for t in tenants_cfg]
 | |
|  })
 |