Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Lokal gespeicherte Fotos sollten bei Sync hochgeladen werden #390

Open
1 of 3 tasks
timobaehr opened this issue Mar 21, 2024 · 0 comments
Open
1 of 3 tasks

Fix: Lokal gespeicherte Fotos sollten bei Sync hochgeladen werden #390

timobaehr opened this issue Mar 21, 2024 · 0 comments
Labels
functional bug Functional bug, something isn't working or behaviour is wrong improvement Something can be better, bad UX, ...

Comments

@timobaehr
Copy link
Contributor

timobaehr commented Mar 21, 2024

  • Wenn die cloudId gesetzt ist, dann erfolgt aktuell kein Bild-Upload. Wenn die Datei nicht in der Cloud ist und Internetverbindung besteht, sollte sie erneut hochgeladen werden.
  • Wenn eine Datei nur in den Photo-Files drin ist, in keinem Zähler, dann sollte sollte der Eintrag gelöscht werden. Diese Operation ist aufwendig und sollte nur einmalig nach Update gemacht werden.
  • Alle lokalen Bilder haben im Namen ObjectId und ZählerId. Die App sollte nur einmalig nach Update versuchen, diese Bilder als Referenz in Zähler und in photoFiles einzufügen.
{
  ...
  "counters": [
        {
            "uuid": "water-cold",
            ...
            "entries": {
                "entries": [
                      {
                        "date": "2023-01-01T22:22:22.999999",
                        "value": 42,
                        "activities": {},
                        "localImageFileName": "objectId/water-cold/inPhotoFilesUndInCounter.jpg"
                    },
                ],
            },
        },
  ],
  "photoFiles": [
        {
            "fileName": "nurInPhotoFilesNichtInCounter.jpg",
            "subPath": "objectId/electricity/",
            "deleted": true,
            "cloudId": null
        },
        {
            "fileName": "inPhotoFilesUndInCounter.jpg",
            "subPath": "objectId/water-cold/",
            "deleted": false,
            "cloudId": "thisisthecloudid"
        },
        ...
  ]
}
@timobaehr timobaehr converted this from a draft issue Mar 21, 2024
@timobaehr timobaehr self-assigned this Mar 21, 2024
@timobaehr timobaehr added functional bug Functional bug, something isn't working or behaviour is wrong improvement Something can be better, bad UX, ... labels Mar 21, 2024
@timobaehr timobaehr removed their assignment Jun 30, 2024
@timobaehr timobaehr moved this from In Bearbeitung to Vorgemerkt in EHW+ App iOS/Android/Web Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functional bug Functional bug, something isn't working or behaviour is wrong improvement Something can be better, bad UX, ...
Projects
Status: Vorgemerkt
Development

No branches or pull requests

1 participant