fix(services): resolve project identifier in queries/work packages and use results link

This commit is contained in:
Lucas Winther
2026-09-05 23:12:46 +02:00
parent a8e4ce9bc4
commit ed38e5b537
5 changed files with 54 additions and 15 deletions
+1
View File
@@ -32,6 +32,7 @@ test_project.description = 'Dedicated test project for openproject-mcp companion
test_project.public = true
test_project.workspace_type = 'project' if test_project.respond_to?(:workspace_type=)
test_project.types = Type.all if Type.any?
test_project.enabled_module_names = OpenProject::AccessControl.available_project_modules if defined?(OpenProject::AccessControl)
test_project.save!(validate: false)
puts "[Seeder] Ensured project 'MCP Test Project' (ID: #{test_project.id}, identifier: #{test_project.identifier})."
+2 -4
View File
@@ -52,10 +52,8 @@ OPENPROJECT_API_KEY=${API_KEY}
OPENPROJECT_TEST_PROJECT=${PROJECT_IDENTIFIER}
EOF
# Also update .env.local if not present or populate key
if [ ! -f "${ROOT_DIR}/.env.local" ]; then
cp "${ROOT_DIR}/.env.test" "${ROOT_DIR}/.env.local"
fi
# Also update .env.local
cp "${ROOT_DIR}/.env.test" "${ROOT_DIR}/.env.local"
echo ""
echo "[seed.sh] Success! Test environment configured."