<p>Patch set 5:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/12121">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12121/5//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5//COMMIT_MSG@9">Patch Set #5, Line 9:</a> <code style="font-family:monospace,monospace">Store a timestamp of the last location update seen from a subscriber</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Can we have full first sentence in first line, and then dropped repeated line in first description pragraph? Looks like I can foresee the next word before reading it otherwise ;)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5//COMMIT_MSG@11">Patch Set #5, Line 11:</a> <code style="font-family:monospace,monospace">in the 'subscriber' table, in granularity of seconds.</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Describe what do the value mean. seconds in UTC time?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5//COMMIT_MSG@15">Patch Set #5, Line 15:</a> <code style="font-family:monospace,monospace">human-readable formt, they may already provide value to external</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">typo: formt</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5//COMMIT_MSG@19">Patch Set #5, Line 19:</a> <code style="font-family:monospace,monospace">  901990000000001|2018-12-04 14:17:12</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I wonder why we don't store it as num of seconds since 1970. Or it's sqlite transforming it through cli app?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12121/5/sql/hlr.sql">File sql/hlr.sql:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5/sql/hlr.sql@42">Patch Set #5, Line 42:</a> <code style="font-family:monospace,monospace">       last_lu_seen TIMESTAMP default NULL</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not able to find TIMESTAMP in sqlite documentation so far. https://www.sqlite.org/datatype3.html</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5/sql/hlr.sql@75">Patch Set #5, Line 75:</a> <code style="font-family:monospace,monospace">PRAGMA user_version = 1;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">this 1 together with CURRENT_SCHEMA_VERSION in code looks like a candaidate to have in configure.ac and then have a hlr.sql.in which becomes processed. But not really needed :)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12121/5/src/db_hlr.c">File src/db_hlr.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12121/5/src/db_hlr.c@637">Patch Set #5, Line 637:</a> <code style="font-family:monospace,monospace">                   "Cannot update LU timestamp for subscriber ID=%"PRId64": SQL error: (%d) %s\n",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Be careful in general with interleavin strings and PRId64 type of strings, I recall seeing compilers failing because they don't like 2 strings to be concatenated if there's no space in between. So to avoid possible issues,always try to leave a speace in between: ...ID=%" PRId64 ": SQL...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12121">change 12121</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12121"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ibeb49d45aec18451a260a6654b8c51b8fc3bec50 </div>
<div style="display:none"> Gerrit-Change-Number: 12121 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <stsp@stsp.name> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 06 Dec 2018 15:54:29 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>