Skip to content

Commit 13a614c

Browse files
committed
📝 Add a new entry to the FAQ that explains why some notes may be outdated
1 parent 490394c commit 13a614c

5 files changed

Lines changed: 29 additions & 5 deletions

File tree

app/js/localizer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const STRINGS = {
1313
};
1414

1515
const REPLACEMENTS = [
16-
['{{version}}', __VERSION__]
16+
['{{version}}', __VERSION__],
17+
['{{api}}', NOTESREVIEW_API_URL]
1718
];
1819

1920
/**

app/locales/de.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"excludingUsers": {
2626
"title": "Ist es möglich Nutzer von der Suche auszuschließen?",
2727
"description": "!HTML! Ja, indem entweder <kbd>NOT</kbd> oder <kbd>-</kbd> vor den Nutzer gestellt wird, der ausgeschlossen werden soll.<br>\nEs ist ebenfalls möglich, mehrere Nutzer auszuschließen, indem diese mit einem Komma getrennt werden."
28+
},
29+
"outdatedNotes": {
30+
"title": "Warum scheinen einige Notizen veraltet zu sein?",
31+
"description": "!HTML! Die Notizen werden alle 5 Minuten mit der OpenStreetMap-API synchronisiert. Es kann trotzdem vorkommen, dass Notizen oder Kommentare, die von den Moderatoren ausgeblendet wurden, weiterhin in den Ergebnissen erscheinen.<br>\nDas liegt vor allem daran, dass die verwendete OpenStreetMap-API keine direkte Möglichkeit bietet, zu erfahren, welche Notizen und Kommentare von den Moderatoren ausgeblendet wurden. Aus diesem Grund wird der gesamte tägliche Notes-Dump in unregelmäßigen Abständen analysiert, um diese Anomalien zu finden und zu beheben.<br>\nWenn du wissen möchtest, wann die letzte manuelle Synchronisation mit dem Notes-Dump durchgeführt wurde, schaue auf der <a href=\"{{api}}/status\" target=\"_blank\" rel=\"noopener\">Statusseite</a> nach dem Wert von <code>last_import</code> (für Kommentare) oder <code>last_sync</code> (für Notizen)."
2832
}
2933
},
3034
"action": {

app/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"excludingUsers": {
2626
"title": "Is it possible to exclude certain users?",
2727
"description": "!HTML! Yes, by writing either <kbd>NOT</kbd> or <kbd>-</kbd> in front of the user to exclude.<br>\nIt is also possible to exclude multiple users by separating each user with a comma."
28+
},
29+
"outdatedNotes": {
30+
"title": "Why do some notes appear to be outdated?",
31+
"description": "!HTML! All notes are synchronized every 5 minutes with the OpenStreetMap API. It can happen that notes or comments which have been hidden by the moderators still appear in the results.<br>\nThis is mainly due to the fact that the underlying API of OpenStreetMap does not directly offer the possibility to know which notes and comments have been hidden by moderators. As a result, the complete notes dump is analyzed from time to time in irregular intervals in order to find and fix these anomalies.<br>\nIf you want to know the last time the manual synchronization was performed, take a look at the <a href=\"{{api}}/status\" target=\"_blank\" rel=\"noopener\">status page</a> with regard to the value of <code>last_import</code> (for comments) or <code>last_sync</code> (for notes)."
2832
}
2933
},
3034
"action": {

app/templates/modals/help.hbs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@
6161

6262
<div class="divider"></div>
6363

64+
<h4 data-i18n="help.outdatedNotes.title">Why do some notes appear to be outdated?</h4>
65+
<p data-i18n="help.outdatedNotes.description">
66+
All notes are synchronized every 5 minutes with the OpenStreetMap API.
67+
It can happen that notes or comments which have been hidden by the moderators still appear in the results.<br>
68+
69+
This is mainly due to the fact that the underlying API of OpenStreetMap does not directly offer the possibility to know which notes and comments have been hidden by moderators.
70+
As a result, the complete daily notes dump is analyzed from time to time in irregular intervals in order to find and fix these anomalies.<br>
71+
72+
If you want to know the last time the manual synchronization was performed, take a look at the
73+
<a href="{{api}}/status" target="_blank" rel="noopener">status page</a> with regard to the value of <code>last_import</code> (for comments) or <code>last_sync</code> (for notes).
74+
</p>
75+
76+
<div class="divider"></div>
77+
6478
<h2 class="text-center" data-i18n="header.about">About</h2>
6579
<p data-i18n="about.description">
6680
NotesReview is an open source project. You are currently using version {{version}}.
@@ -71,16 +85,16 @@
7185
it or by <a href="https://github.com/ENT8R/NotesReview/issues" target="_blank" rel="noopener">reporting bugs</a>.
7286
</p>
7387
<p class="text-center" data-i18n="about.author">
74-
Made with ❤️ by <a href="mailto:info.ent8r@gmail.com">ENT8R</a>
88+
Made with ❤️ by <a href="https://github.com/ENT8R" target="_blank" rel="noopener">ENT8R</a>
7589
</p>
76-
<div class="text-center">
90+
<!--<div class="text-center">
7791
<a href="https://liberapay.com/ENT8R/donate" target="_blank" rel="noopener">
7892
<div class="liberapay-logo">
7993
<svg class="icon"><use xlink:href="#assets-liberapay"></use></svg>
8094
<b data-i18n="about.donate">Donate</b>
8195
</div>
8296
</a>
83-
</div>
97+
</div>-->
8498
</div>
8599

86100
<div class="modal-footer">

vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export default () => {
5050
],
5151
context: {
5252
structuredData: JSON.stringify(structuredData),
53-
version
53+
version,
54+
api: process.env.NOTESREVIEW_API_URL
5455
}
5556
}),
5657
createSvgIconsPlugin({

0 commit comments

Comments
 (0)