refactor: improve Google Sheets sync and path encoding

Update spreadsheet tab verification to include full property data and implement RFC 3986-compliant path encoding for range parameters to ensure correct API interactions.
This commit is contained in:
bleackstorm committed 2026-11-08 21:21:11 +01:00
1 parent 3397fc1c60
commit 3d1d0f43e7
2 files changed
+113 -33

No files matched your search

@@ -151,5 +151,16 @@ class GoogleSheetsDataFormatterTest {
)
assertEquals("https://drive.google.com/file/1", rows[1][9])
}
@Test
fun `encodePathRange replaces plus signs with percent twenty according to RFC 3986`() {
val range = "'Journal des repas'!A1"
val encoded = com.example.util.GoogleSheetsSyncService.encodePathRange(range)
assertEquals("%27Journal%20des%20repas%27%21A1", encoded)
val foodRange = "'Mes plats et aliments'!A1:C"
val foodEncoded = com.example.util.GoogleSheetsSyncService.encodePathRange(foodRange)
assertEquals("%27Mes%20plats%20et%20aliments%27%21A1%3AC", foodEncoded)
}
}