1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-21 01:22:08 +02:00
Commit Graph

2387 Commits

Author SHA1 Message Date
gras
00722f1bee when combining a timestamp fix in one branch with new test date, you sometimes get surprises 2024-04-05 00:09:39 +02:00
gras
3de8c7fee9 added the rest of the test files for title and caption 2024-04-04 23:58:26 +02:00
gras
0f03c22967 re-applying the title and caption change 2024-04-04 23:53:07 +02:00
gras
ac56bff769 Merge branch 'feature/camera-metadata' of https://github.com/grasdk/pigallery2 2024-04-04 23:34:48 +02:00
Patrik J. Braun
bf776627cb
Merge pull request #875 from grasdk/feature/month-addition
Feature/month addition
2024-04-04 22:54:35 +02:00
Patrik J. Braun
0b7b7a7e48
Merge pull request #874 from grasdk/feature/timestamp-fix
Feature/timestamp fix
2024-04-04 22:51:38 +02:00
Patrik J. Braun
6e85dc4967
Merge pull request #870 from grasdk/master
Feature/caption and title (#14)
2024-04-04 22:49:26 +02:00
gras
a0c22fd481 more intuitive "x months ago"-search 2024-04-04 18:58:34 +02:00
grasdk
39e98d8314 remember to add to the diskmanager expected result, when adding a test :-( 2024-04-03 21:14:46 +00:00
gras
6019932d71 another linting fix 2024-04-03 23:00:58 +02:00
gras
8805fee063 linting fix 2024-04-03 22:56:21 +02:00
gras
7411750ffd Added a test for offset-fix and found another bug - also fixed 2024-04-03 22:50:49 +02:00
gras
f8021348db fix for the fix - forgot to run tests 2024-04-03 21:34:41 +02:00
gras
9ebd658276 Correction for Utils.timestampToMS 2024-04-03 21:20:54 +02:00
gras
7339fe676b This reverts commit 75d81d42bd. 2024-04-03 21:17:07 +02:00
gras
dbcd14f5c7 This reverts commit ae1309b011. 2024-04-03 21:17:03 +02:00
gras
7f68c827d8 This reverts commit 84928e6371. 2024-04-03 21:16:59 +02:00
gras
3b55d72e0f This reverts commit 1e50f1b2e5. 2024-04-03 21:16:55 +02:00
gras
2342be2bbe This reverts commit 893df7db74. 2024-04-03 21:16:48 +02:00
gras
cb433fe83b This reverts commit fcc123bb1b. 2024-04-03 21:16:29 +02:00
gras
fcc123bb1b reverted search manager tests 2024-04-01 18:53:32 +02:00
Patrik J. Braun
6c53aca7e7
Merge pull request #863 from sarayourfriend/fix/unify-logging
Use separate log levels for relevant error types
2024-04-01 13:10:58 +02:00
gras
d628c816da Reading camera metadata from multiple sources 2024-04-01 00:09:53 +02:00
gras
893df7db74 Adapted test data to use the new month subtract method 2024-03-31 19:50:28 +02:00
gras
1e50f1b2e5 linting error fix 2024-03-31 19:20:07 +02:00
gras
84928e6371 Change how months are subtracted in SearchManager 2024-03-31 19:15:59 +02:00
gras
ae1309b011 moved some tests, that seemed to influence indexing tests 2024-03-31 16:15:45 +02:00
grasdk
75d81d42bd
Feature/caption and title (#14)
* reading caption and title from several tags with several tests added
minor bugfix for date conversion to MS
optimization: break sidecar loop, when first sidecar is found
2024-03-31 14:57:20 +02:00
sarayourfriend
409af3898b
Narrow LoggerArgs types and fix bad revert 2024-03-31 09:45:16 +11:00
sarayourfriend
2b26b3744b
Revert "Remove duplicative logging"
This reverts commit 25fb0ddb53.
2024-03-31 09:45:16 +11:00
sarayourfriend
fcdb2f2938
Revert "Always use Logger class and try to log once per event"
This reverts commit a57a717717a676555b4e28d5746828477c2f9811.
2024-03-31 09:45:16 +11:00
sarayourfriend
b0c2f8da04
Always use Logger class and try to log once per event
This unifies logging across the backend to always use the Logger class,
always only logs to stdout (rather than an inconsistent mix of stdout
and stderr, depending on whether console.error was used), and removes
logging where two log events happened for the same message

For example, this pattern:

```js
Logger.error("Whoops, something went wrong:")
console.error(err)
```

That causes two separate log events, and depending on the log transport
used, could cause relevant log messages to get split across multiple
events and therefore be harder (usually just more tedious) to connect
and debug in production environments.
2024-03-31 09:45:16 +11:00
sarayourfriend
ba6e7c03ec
Always use Logger class and try to log once per event
This unifies logging across the backend to always use the Logger class,
always only logs to stdout (rather than an inconsistent mix of stdout
and stderr, depending on whether console.error was used), and removes
logging where two log events happened for the same message

For example, this pattern:

```js
Logger.error("Whoops, something went wrong:")
console.error(err)
```

That causes two separate log events, and depending on the log transport
used, could cause relevant log messages to get split across multiple
events and therefore be harder (usually just more tedious) to connect
and debug in production environments.
2024-03-31 09:45:16 +11:00
sarayourfriend
3be8f1b194
Remove duplicative logging
These log calls either duplicated the generic error renderer logging or neighbouring log calls
2024-03-31 09:45:16 +11:00
sarayourfriend
5c8e01c034
Configure log levels for specific error types 2024-03-31 09:45:16 +11:00
sarayourfriend
fae2980692
Remove dead code 2024-03-31 09:45:16 +11:00
sarayourfriend
7cf7febc5c
Remove duplicative logFN type 2024-03-31 09:45:16 +11:00
Patrik J. Braun
086bc47a01
Merge pull request #868 from grasdk/master
Metadata mapping and consolidation
2024-03-30 22:12:29 +01:00
gras
78fbc942b9 mediaentity rating back to unsigned 2024-03-30 22:04:07 +01:00
gras
9aab44b7af Removed 0 as a rating, since it means unrated. 2024-03-30 21:23:10 +01:00
gras
b071b6daae xmp-rating valid values now 1-5. 0 means "unrated" and the attribute does not exist with value 0 2024-03-30 21:07:41 +01:00
Patrik J. Braun
1e0dbc08dc
Merge pull request #862 from sarayourfriend/fix/numerical-file-sort
Trim extensions when sorting filenames
2024-03-30 19:31:00 +01:00
gras
77982e6c10 changed database to be able to contain rating -1 2024-03-30 15:59:38 +01:00
gras
9e7acc46c1 gps coordinate undefined check + rating update 2024-03-30 15:31:16 +01:00
gras
a8b00d549b changed orientation to const 2024-03-30 14:13:47 +01:00
grasdk
1514662b8d
Feature/metadata sidecar reading cleanup (#13)
* Removed the SideCar Type to make reading sidecar data just as generic as reading the embedded exif data

* Moved metadata-mapping into separate function to prepare for reuse

* Most sidecar metadata is now read with the same function as embedded metadata (for photos). Fixed a bug with rating: 0 being ignored

* added new test for special chars and timezone

* merge incoming changes

* xmp rating fix - 0 is a value. prep for xmp timestamp handling

* refactored mapping of metadata into smaller functions

* consolidated GPS coordinate mapping

* simplification of sidecar date reading logic

* Moved date mapping code into one function - fixed testdata - did not yet resolve offset bug

* CreationDateOffset is now mapped from Sidecar timestamps. Tests updated accordingly.


Total: changed sidecar reading for video to shared reader and fixed tests accordingly (more data is read now)
2024-03-30 13:58:06 +01:00
sarayourfriend
c44110d4a6
Trim extensions when sorting filenames 2024-03-29 16:09:23 +11:00
Patrik J. Braun
fafab0db18 Disable broken test 2024-03-26 00:45:30 +01:00
Patrik J. Braun
663b5bff95 remove debug logging 2024-03-26 00:30:15 +01:00
Patrik J. Braun
6149e869d1 let flaky test through CI 2024-03-26 00:28:37 +01:00