Skip to content

Conversation

@mapoferri
Copy link
Contributor

No description provided.


$siteList = $_REQUEST['arguments_exec']['site_list'] ?? [];

if (!in_array('marenostrum', $siteList)) {
Copy link
Collaborator

@nicodr97 nicodr97 Nov 6, 2025

Choose a reason for hiding this comment

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

Change it to be an "affirmative" if:

$marenostrumSite = "marenostrum";

if (in_array($marenostrumSite, $siteList)) {
	if ($debug) {
		echo "<br/><br/><strong>DEBUG: Parameters passed to DataTransfer:</strong><br/>";
		echo "<pre>";
		print_r([
			'files' => $files,
			'mode' => 'async',
			'tool_id' => $tool['_id'],
			'workDirHost' => $workDirHost,
			'execution' => $_REQUEST['execution'],
			'arguments_exec' => $_REQUEST['arguments_exec'],
		]);
		echo "</pre><br/>";
	}

	$dataMeta = new DataTransfer(
		$files,
		'async',
		$tool['_id'],
		$workDirHost,
		$_REQUEST['execution'],
		$_REQUEST['arguments_exec']
	);

	$dataLocations = $dataMeta->syncFiles();
	if ($debug) {
		print "<br/>Data Transfer Locations:</br>";
		var_dump($dataLocations); // This will show where the files will be transferred
	}
} else if ($debug) {
	echo "<br/><strong>DEBUG:</strong> Skipping DataTransfer — '" . $marenostrumSite . "' not in site_list.<br/>";
}

$_REQUEST['pr_id'] = $proj_id;
$_REQUEST['pr_code'] = $proj_code;
$_SESSION['errorData']['Info'][] = "Done! New project '".$projData['name']."' created.";
$_SESSION['Data']['Info'][] = "Done! New project '".$projData['name']."' created.";
Copy link
Collaborator

@nicodr97 nicodr97 Nov 6, 2025

Choose a reason for hiding this comment

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

$_SESSION['errorData']

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