mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-24 23:50:17 +01:00
Add notes for 2022-12-29
This commit is contained in:
parent
2e6c267397
commit
9768a0fe57
@ -331,4 +331,18 @@ $ grep -xvFf /tmp/orig.csv /tmp/cgspace-mappings.csv > /tmp/2022-12-25-fix-mappi
|
||||
- And I can access the website just fine, so I guess everything is OK
|
||||
- I exported the Initiatives collection to tag missing regions...
|
||||
|
||||
## 2022-12-29
|
||||
|
||||
- I exported the Initiatives collection again and I'm wondering why we have so many items with `text_lang` set to NULL and others when I have been periodically resetting them
|
||||
- It turns out that doing `... text_lang IN ('en', '', NULL)` doesn't properly check for values with NULL
|
||||
- We actually need to do:
|
||||
|
||||
```sql
|
||||
UPDATE metadatavalue SET text_lang='en_US' WHERE dspace_object_id IN (SELECT uuid FROM item) AND text_lang IS NULL OR text_lang IN ('en', '');
|
||||
```
|
||||
|
||||
- I updated the text lang values on CGSpace and re-exported the community
|
||||
- I fixed a bunch of invalid licenses in these items
|
||||
- Then I added mappings for another handful of items
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -20,7 +20,7 @@ Replace “East Asia” with “Eastern Asia” region on CGSpac
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2022-12/" />
|
||||
<meta property="article:published_time" content="2022-12-01T08:52:36+03:00" />
|
||||
<meta property="article:modified_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="article:modified_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
@ -46,9 +46,9 @@ Replace “East Asia” with “Eastern Asia” region on CGSpac
|
||||
"@type": "BlogPosting",
|
||||
"headline": "December, 2022",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2022-12/",
|
||||
"wordCount": "2257",
|
||||
"wordCount": "2361",
|
||||
"datePublished": "2022-12-01T08:52:36+03:00",
|
||||
"dateModified": "2022-12-25T16:48:19+02:00",
|
||||
"dateModified": "2022-12-28T22:55:34+02:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -501,6 +501,24 @@ Replace “East Asia” with “Eastern Asia” region on CGSpac
|
||||
<li>And I can access the website just fine, so I guess everything is OK</li>
|
||||
<li>I exported the Initiatives collection to tag missing regions…</li>
|
||||
</ul>
|
||||
<h2 id="2022-12-29">2022-12-29</h2>
|
||||
<ul>
|
||||
<li>I exported the Initiatives collection again and I’m wondering why we have so many items with <code>text_lang</code> set to NULL and others when I have been periodically resetting them
|
||||
<ul>
|
||||
<li>It turns out that doing <code>... text_lang IN ('en', '', NULL)</code> doesn’t properly check for values with NULL</li>
|
||||
<li>We actually need to do:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-sql" data-lang="sql"><span style="display:flex;"><span><span style="color:#66d9ef">UPDATE</span> metadatavalue <span style="color:#66d9ef">SET</span> text_lang<span style="color:#f92672">=</span><span style="color:#e6db74">'en_US'</span> <span style="color:#66d9ef">WHERE</span> dspace_object_id <span style="color:#66d9ef">IN</span> (<span style="color:#66d9ef">SELECT</span> uuid <span style="color:#66d9ef">FROM</span> item) <span style="color:#66d9ef">AND</span> text_lang <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NULL</span> <span style="color:#66d9ef">OR</span> text_lang <span style="color:#66d9ef">IN</span> (<span style="color:#e6db74">'en'</span>, <span style="color:#e6db74">''</span>);
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>I updated the text lang values on CGSpace and re-exported the community
|
||||
<ul>
|
||||
<li>I fixed a bunch of invalid licenses in these items</li>
|
||||
<li>Then I added mappings for another handful of items</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
||||
|
BIN
docs/2022/12/cpu-day2.png
Normal file
BIN
docs/2022/12/cpu-day2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
docs/2022/12/postgres_tuples_cgspace-day.png
Normal file
BIN
docs/2022/12/postgres_tuples_cgspace-day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2022-12-25T16:48:19+02:00" />
|
||||
<meta property="og:updated_time" content="2022-12-28T22:55:34+02:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -3,19 +3,19 @@
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/</loc>
|
||||
<lastmod>2022-12-25T16:48:19+02:00</lastmod>
|
||||
<lastmod>2022-12-28T22:55:34+02:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2022-12-25T16:48:19+02:00</lastmod>
|
||||
<lastmod>2022-12-28T22:55:34+02:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2022-12/</loc>
|
||||
<lastmod>2022-12-25T16:48:19+02:00</lastmod>
|
||||
<lastmod>2022-12-28T22:55:34+02:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/notes/</loc>
|
||||
<lastmod>2022-12-25T16:48:19+02:00</lastmod>
|
||||
<lastmod>2022-12-28T22:55:34+02:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2022-12-25T16:48:19+02:00</lastmod>
|
||||
<lastmod>2022-12-28T22:55:34+02:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2022-11/</loc>
|
||||
<lastmod>2022-12-03T10:46:29+03:00</lastmod>
|
||||
|
BIN
static/2022/12/cpu-day2.png
Normal file
BIN
static/2022/12/cpu-day2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
static/2022/12/postgres_tuples_cgspace-day.png
Normal file
BIN
static/2022/12/postgres_tuples_cgspace-day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
Loading…
Reference in New Issue
Block a user