Commit abcf62f
authored
Release 0.6.7: Fix sync status page (#214)
* Add OG meta tags to demo and dashboard pages
Add Open Graph and Twitter Card meta tags so sharing
links on Slack, Discord, Twitter, etc. shows a proper
preview card with the OSA branding image from osc.earth.
* Add OSA logo, dark mode, and branded footer
- Inline SVG OSA logo in header (uses currentColor for
dark mode compatibility)
- Dark mode CSS via prefers-color-scheme on demo page
- Footer with dynamic year, heart, and OSC link
- Consistent deep blue color palette across both pages
* Reorder footer: copyright holder first, then made with love
* Fix review issues: dark mode, meta tags, broken links
- Add dark mode to dashboard (matching frontend theme)
- Add <meta name="description"> to both pages for SEO
- Remove redundant twitter:title/description/image tags
- Fix broken GitHub links (osc-em -> OpenScience-Collective)
- Standardize org name to "OpenScience Collective"
- Move dashboard inline styles to CSS classes
- Rename .footer to .site-footer for consistency
* Enforce mandatory HED tag validation before display (#211)
* Enforce mandatory HED tag validation before display
Fixes #210
* Address review: consistent error handling, sanitize exceptions
* Fix sync status page: community-aware, all sync types, N/A display (#213)
* Fix sync status page: N/A display, all sync types, community-aware
Fixes #212
- Fix Papers Sync showing N/A: sync_metadata stores source names like
"openalex:query", not "openalex", so use prefix matching to find the
most recent timestamp for each source type
- Make /sync/status community-aware: accept community_id query param and
query the correct community database (previously always used hed default)
- Add all sync types to response: new 'syncs' field includes github,
papers, docstrings, mailman, beps, faq with last_sync and next_run
- Dashboard: pass community_id to sync status fetch, render all sync
types dynamically including next scheduled run time
* Address review findings: validation, future times, health endpoint
- Validate community_id against registry (404 for unknown)
- Update /sync/health to accept community_id param
- Fix formatRelativeTime to handle future timestamps (next_run)
- Use _parse_iso_datetime in _get_most_recent_sync for robust comparison
- Fix misleading citing_doi comment in papers source lookup
- Add exc_info=True to warning log calls for full tracebacks
- Add tests: prefix matching regression, syncs field, unknown community 404
* Fix test: add isolated_db fixture to community_id test
* Bump version to 0.6.7.dev0
* Address PR review findings
- Fix papers last_sync timestamp comparison: use _parse_iso_datetime
instead of string max() to avoid wrong result with mixed UTC offsets
- Fix dashboard /sync/health URL: pass community_id param so health
badge reflects the viewed community, not always 'hed'
- Add tests for /sync/health community_id param: 404 for unknown,
200 for known community
* Fix logging: add exc_info and upgrade scheduler warning to error
- Add exc_info=True to trigger_sync error log for full tracebacks
- Upgrade scheduler job inspection failure from warning to error1 parent ee3ee37 commit abcf62f
File tree
6 files changed
+303
-71
lines changed- dashboard/osa
- src
- api/routers
- assistants/hed
- tests/test_api
6 files changed
+303
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
766 | | - | |
| 765 | + | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
867 | 887 | | |
868 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
869 | 903 | | |
870 | 904 | | |
871 | | - | |
872 | 905 | | |
873 | 906 | | |
874 | 907 | | |
| |||
877 | 910 | | |
878 | 911 | | |
879 | 912 | | |
880 | | - | |
881 | 913 | | |
882 | 914 | | |
883 | 915 | | |
| |||
894 | 926 | | |
895 | 927 | | |
896 | 928 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
902 | 936 | | |
903 | 937 | | |
904 | 938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
| |||
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
95 | 111 | | |
96 | 112 | | |
97 | | - | |
| 113 | + | |
98 | 114 | | |
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
102 | 118 | | |
103 | 119 | | |
104 | 120 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
110 | 127 | | |
111 | | - | |
| 128 | + | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
116 | | - | |
117 | | - | |
| 133 | + | |
| 134 | + | |
118 | 135 | | |
119 | 136 | | |
120 | 137 | | |
121 | | - | |
| 138 | + | |
122 | 139 | | |
123 | 140 | | |
124 | 141 | | |
125 | 142 | | |
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
129 | | - | |
| 146 | + | |
130 | 147 | | |
131 | 148 | | |
132 | 149 | | |
| |||
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
190 | 225 | | |
191 | | - | |
192 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
193 | 233 | | |
194 | 234 | | |
195 | 235 | | |
196 | 236 | | |
| 237 | + | |
| 238 | + | |
197 | 239 | | |
198 | 240 | | |
199 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
200 | 250 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
204 | 254 | | |
205 | 255 | | |
206 | 256 | | |
| |||
211 | 261 | | |
212 | 262 | | |
213 | 263 | | |
214 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
215 | 267 | | |
216 | 268 | | |
217 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
218 | 278 | | |
219 | 279 | | |
220 | | - | |
| 280 | + | |
221 | 281 | | |
222 | 282 | | |
223 | 283 | | |
| |||
230 | 290 | | |
231 | 291 | | |
232 | 292 | | |
233 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
234 | 304 | | |
235 | 305 | | |
236 | 306 | | |
| |||
250 | 320 | | |
251 | 321 | | |
252 | 322 | | |
| 323 | + | |
253 | 324 | | |
254 | 325 | | |
255 | 326 | | |
| |||
284 | 355 | | |
285 | 356 | | |
286 | 357 | | |
287 | | - | |
| 358 | + | |
288 | 359 | | |
289 | 360 | | |
290 | 361 | | |
291 | 362 | | |
292 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
293 | 366 | | |
294 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
295 | 371 | | |
296 | 372 | | |
297 | 373 | | |
298 | | - | |
299 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
300 | 384 | | |
301 | 385 | | |
302 | 386 | | |
| |||
0 commit comments