mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-21 22:25:02 +01:00
Update notes for 2016-11-07
This commit is contained in:
parent
aa4469f3b6
commit
dac05748eb
@ -53,3 +53,27 @@ java.lang.NullPointerException
|
||||
## 2016-11-06
|
||||
|
||||
- After re-deploying and re-indexing I didn't see the same issue, and the indexing completed in 85 minutes, which is about how long it is supposed to take
|
||||
|
||||
## 2016-11-07
|
||||
|
||||
- Horrible one liner to get Linode ID from certain Ansible host vars:
|
||||
|
||||
```
|
||||
$ grep -A 3 contact_info * | grep -E "(Orth|Sisay|Peter|Daniel|Tsega)" | awk -F'-' '{print $1}' | grep linode | uniq | xargs grep linode_id
|
||||
```
|
||||
|
||||
- I noticed some weird CRPs in the database, and they don't show up in Discovery for some reason, perhaps the `:`
|
||||
- I'll export these and fix them in batch:
|
||||
|
||||
```
|
||||
dspace=# \copy (select distinct text_value, count(*) from metadatavalue where metadata_field_id=230 group by text_value order by count desc) to /tmp/crp.csv with csv;
|
||||
COPY 22
|
||||
```
|
||||
|
||||
- Test running the replacements:
|
||||
|
||||
```
|
||||
$ ./fix-metadata-values.py -i /tmp/CRPs.csv -f cg.contributor.crp -t correct -m 230 -d dspace -u dspace -p 'fuuu'
|
||||
```
|
||||
|
||||
- Add `AMR` to ILRI subjects and remove one duplicate instance of IITA in author affiliations controlled vocabulary ([#288](https://github.com/ilri/DSpace/pull/288))
|
||||
|
@ -147,6 +147,35 @@ java.lang.NullPointerException
|
||||
<li>After re-deploying and re-indexing I didn’t see the same issue, and the indexing completed in 85 minutes, which is about how long it is supposed to take</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-11-07">2016-11-07</h2>
|
||||
|
||||
<ul>
|
||||
<li>Horrible one liner to get Linode ID from certain Ansible host vars:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ grep -A 3 contact_info * | grep -E "(Orth|Sisay|Peter|Daniel|Tsega)" | awk -F'-' '{print $1}' | grep linode | uniq | xargs grep linode_id
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I noticed some weird CRPs in the database, and they don’t show up in Discovery for some reason, perhaps the <code>:</code></li>
|
||||
<li>I’ll export these and fix them in batch:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where metadata_field_id=230 group by text_value order by count desc) to /tmp/crp.csv with csv;
|
||||
COPY 22
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Test running the replacements:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ ./fix-metadata-values.py -i /tmp/CRPs.csv -f cg.contributor.crp -t correct -m 230 -d dspace -u dspace -p 'fuuu'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Add <code>AMR</code> to ILRI subjects and remove one duplicate instance of IITA in author affiliations controlled vocabulary (<a href="https://github.com/ilri/DSpace/pull/288">#288</a>)</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -73,6 +73,35 @@ java.lang.NullPointerException
|
||||
<ul>
|
||||
<li>After re-deploying and re-indexing I didn&rsquo;t see the same issue, and the indexing completed in 85 minutes, which is about how long it is supposed to take</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-11-07">2016-11-07</h2>
|
||||
|
||||
<ul>
|
||||
<li>Horrible one liner to get Linode ID from certain Ansible host vars:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ grep -A 3 contact_info * | grep -E &quot;(Orth|Sisay|Peter|Daniel|Tsega)&quot; | awk -F'-' '{print $1}' | grep linode | uniq | xargs grep linode_id
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I noticed some weird CRPs in the database, and they don&rsquo;t show up in Discovery for some reason, perhaps the <code>:</code></li>
|
||||
<li>I&rsquo;ll export these and fix them in batch:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where metadata_field_id=230 group by text_value order by count desc) to /tmp/crp.csv with csv;
|
||||
COPY 22
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Test running the replacements:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ ./fix-metadata-values.py -i /tmp/CRPs.csv -f cg.contributor.crp -t correct -m 230 -d dspace -u dspace -p 'fuuu'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Add <code>AMR</code> to ILRI subjects and remove one duplicate instance of IITA in author affiliations controlled vocabulary (<a href="https://github.com/ilri/DSpace/pull/288">#288</a>)</li>
|
||||
</ul>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
@ -73,6 +73,35 @@ java.lang.NullPointerException
|
||||
<ul>
|
||||
<li>After re-deploying and re-indexing I didn&rsquo;t see the same issue, and the indexing completed in 85 minutes, which is about how long it is supposed to take</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-11-07">2016-11-07</h2>
|
||||
|
||||
<ul>
|
||||
<li>Horrible one liner to get Linode ID from certain Ansible host vars:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ grep -A 3 contact_info * | grep -E &quot;(Orth|Sisay|Peter|Daniel|Tsega)&quot; | awk -F'-' '{print $1}' | grep linode | uniq | xargs grep linode_id
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I noticed some weird CRPs in the database, and they don&rsquo;t show up in Discovery for some reason, perhaps the <code>:</code></li>
|
||||
<li>I&rsquo;ll export these and fix them in batch:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where metadata_field_id=230 group by text_value order by count desc) to /tmp/crp.csv with csv;
|
||||
COPY 22
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Test running the replacements:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ ./fix-metadata-values.py -i /tmp/CRPs.csv -f cg.contributor.crp -t correct -m 230 -d dspace -u dspace -p 'fuuu'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Add <code>AMR</code> to ILRI subjects and remove one duplicate instance of IITA in author affiliations controlled vocabulary (<a href="https://github.com/ilri/DSpace/pull/288">#288</a>)</li>
|
||||
</ul>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
@ -72,6 +72,35 @@ java.lang.NullPointerException
|
||||
<ul>
|
||||
<li>After re-deploying and re-indexing I didn&rsquo;t see the same issue, and the indexing completed in 85 minutes, which is about how long it is supposed to take</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-11-07">2016-11-07</h2>
|
||||
|
||||
<ul>
|
||||
<li>Horrible one liner to get Linode ID from certain Ansible host vars:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ grep -A 3 contact_info * | grep -E &quot;(Orth|Sisay|Peter|Daniel|Tsega)&quot; | awk -F'-' '{print $1}' | grep linode | uniq | xargs grep linode_id
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I noticed some weird CRPs in the database, and they don&rsquo;t show up in Discovery for some reason, perhaps the <code>:</code></li>
|
||||
<li>I&rsquo;ll export these and fix them in batch:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where metadata_field_id=230 group by text_value order by count desc) to /tmp/crp.csv with csv;
|
||||
COPY 22
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Test running the replacements:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ ./fix-metadata-values.py -i /tmp/CRPs.csv -f cg.contributor.crp -t correct -m 230 -d dspace -u dspace -p 'fuuu'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Add <code>AMR</code> to ILRI subjects and remove one duplicate instance of IITA in author affiliations controlled vocabulary (<a href="https://github.com/ilri/DSpace/pull/288">#288</a>)</li>
|
||||
</ul>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user