Learn
- Clean Code, YouTube
- PHP: The Right Way, link
- Udemy courses
- Design Pattern, Doc, Pattern Libraries
- Postman for testing API, YouTube
- Essential Scrum, Chapter [5, 7, 17, 18, 19]
Todo - Project repo, doc
- Local Taverna
- Study how to get DOI for publon review link
Done - Project
- Mint DOI report doc
Todo
Done
- Follow up Add-delete-button-#503
- At first, I discarded the
zii.widgets.CDetailView
and recreated the view table using html code
<style>
table {
border-collapse: collapse;
width: 100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 10.3px;
}
th, td {
border: 1px transparent;
text-align: left;
padding: 3px;
}
tr:nth-child(odd) {
background-color: #E5F1F4;
}
tr:nth-child(even) {
background-color: #f8f8f8;
}
</style>
<table>
<tr>
<th><?php echo 'ID'; ?></th>
<td><?php echo $model->id; ?></td>
</tr>
<tr>
<th><?php echo 'Dataset'; ?> </th>
<td><?php echo $model->dataset_id; ?></td>
</tr>
<tr>
<th><?php echo 'File Name'; ?></th>
<td><?php echo $model->name; ?></td>
</tr>
<tr>
<th><?php echo 'Location'; ?></th>
<td><?php echo $model->location; ?></td>
</tr>
<tr>
<th><?php echo 'Extension'; ?></th>
<td><?php echo $model->extension; ?></td>
</tr>
<tr>
<th><?php echo 'Size'; ?></th>
<td><?php echo $model->size; ?></td>
</tr>
<tr>
<th><?php echo 'Description'; ?></th>
<td><?php echo $model->description; ?></td>
</tr>
<tr>
<th><?php echo 'Release Date'; ?></th>
<td><?php echo $model->date_stamp; ?></td>
</tr>
<tr>
<th><?php echo 'File Format'; ?></th>
<td><?php echo $model->format_id; ?></td>
</tr>
<tr>
<th><?php echo 'Data Type'; ?></th>
<td><?php echo $model->type_id; ?></td>
</tr>
<tr>
<th><?php echo 'Sample'; ?></th>
<td><?php echo $name; ?></td>
</tr>
<?php for ($i = 0; $i < count($attribute_array); $i++) { ?>
<tr>
<th><?php echo 'File Attribute'; ?></th>
<td><?php echo $attribute_array[$i]; ?></td>
</tr>
<?php } ?>
</table>
- Later, I reverted it because it was not as good as this:
<?php
$sample_id = FileSample::model()->find('file_id=:file_id', array(':file_id'=>$model->id));
$fileAttributes = FileAttributes::model()->findAll('file_id=:file_id', array(':file_id'=>$model->id));
if(isset($sample_id))
{
$sample_name= Sample::model()->find('id=:id',array(':id'=>$sample_id->sample_id));
}
$name="Not Set";
if(isset($sample_id)&&isset($sample_name))
{
$name=$sample_name->name;
}
$attributes = array(
'id',
'dataset_id',
'name',
'location',
'extension',
'size',
'description',
'date_stamp',
'format_id',
'type_id',
array(
'name'=>'Sample',
'value'=> $name,
)
);
if(!empty($fileAttributes))
{
foreach ($fileAttributes as $fileAttribute)
{
array_push($attributes, array('name' => 'FileAttribute', 'value' => $fileAttribute->value));
}
}
$this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=> $attributes
));
- And after that, I have to pass the
behat test
using TableNode
to assert the File Attribute
row and its value
- Updated PR descriptions for Add-delete-button-#503 and Add-citation-box-#521
AOB
- Server issues
- Confirmed with BGI IT team, 192.168.208.43, 192.168.208.73, 192.168.208.74, these 3 servers are owned by Scott
- 192.168.208.44, IBM 3630 has no any record about its ownership, but Chris H said it was lent to us in 2014 as a short term solution to the storage crisis
- Requested
Delete
right in /cngbdb/giga/
files and directories in Tencent Cloud for test purpose
Reference