Skip to content

Commit 7937834

Browse files
authored
Merge pull request #94 from digital-land/integrate-assign-entries
Working Add Data - Integrate assign entities
2 parents 616a24d + 195aad1 commit 7937834

File tree

14 files changed

+1228
-1235
lines changed

14 files changed

+1228
-1235
lines changed

.vscode/launch.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,33 @@
33
"python": "${workspaceFolder}/request-processor/.venv/bin/python",
44
"configurations": [
55
{
6-
"name": "Debug Request Processor - Manual Task Trigger",
6+
"name": "Debug Request Processor - Manual Check URL Task Trigger",
77
"type": "python",
88
"request": "launch",
99
"python": "${workspaceFolder}/request-processor/.venv/bin/python",
10-
"program": "${workspaceFolder}/scripts/debug_trigger.py",
10+
"program": "${workspaceFolder}/scripts/debug_trigger_checkurl.py",
11+
"console": "integratedTerminal",
12+
"justMyCode": false,
13+
"env": {
14+
"PYTHONPATH": "${workspaceFolder}:${workspaceFolder}/request-processor:${workspaceFolder}/request-processor/.venv/src/digital-land",
15+
"DATABASE_URL": "postgresql://postgres:password@localhost:54320/request_database",
16+
"CELERY_BROKER_URL": "redis://localhost:6379/0",
17+
"AWS_ENDPOINT_URL": "http://localhost:4566",
18+
"AWS_DEFAULT_REGION": "eu-west-2",
19+
"AWS_ACCESS_KEY_ID": "example",
20+
"AWS_SECRET_ACCESS_KEY": "example",
21+
"REQUEST_FILES_BUCKET_NAME": "dluhc-data-platform-request-files-local",
22+
"SENTRY_ENABLED": "false"
23+
},
24+
"args": [],
25+
"cwd": "${workspaceFolder}/request-processor"
26+
},
27+
{
28+
"name": "Debug Request Processor - Manual Add Data Task",
29+
"type": "python",
30+
"request": "launch",
31+
"python": "${workspaceFolder}/request-processor/.venv/bin/python",
32+
"program": "${workspaceFolder}/scripts/debug_trigger_add_data.py",
1133
"console": "integratedTerminal",
1234
"justMyCode": false,
1335
"env": {

request-processor/makerules/makerules.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ endif
7070
config:
7171
# local copy of organsiation datapackage
7272
@mkdir -p $(CACHE_DIR)
73-
curl -qfs "https://raw.githubusercontent.com/digital-land/organisation-dataset/main/collection/organisation.csv" > $(CACHE_DIR)organisation.csv
73+
curl -qfs "https://files.planning.data.gov.uk/organisation-collection/dataset/organisation.csv" > $(CACHE_DIR)organisation.csv
74+
7475

7576
init:: config

request-processor/makerules/python.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ coverage-unit:
1616
pytest --random-order --cov=src tests/unit/
1717

1818
coverage-integration:
19-
pytest --random-order --cov=src --cov-append --cov-fail-under=85 tests/integration/
19+
pytest --random-order --cov=src --cov-append --cov-fail-under=80 tests/integration/

request-processor/src/application/configurations/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source_url = "https://raw.githubusercontent.com/digital-land/"
44
DATASTORE_URL = os.getenv("DATASTORE_URL", "https://files.planning.data.gov.uk/")
5-
CONFIG_URL = f"{DATASTORE_URL}config/"
5+
CONFIG_URL = f"{source_url}config/refs/heads/main/"
66

77

88
class Directories:

0 commit comments

Comments
 (0)