Skip to content

[PB-6467: feature/Migrate Photos backup to use new Photos enpdoints#477

Open
CandelR wants to merge 4 commits into
feature/PB-6068-photos-backupfrom
feature/PB-6467-add-photos-endpoints
Open

[PB-6467: feature/Migrate Photos backup to use new Photos enpdoints#477
CandelR wants to merge 4 commits into
feature/PB-6068-photos-backupfrom
feature/PB-6467-add-photos-endpoints

Conversation

@CandelR

@CandelR CandelR commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Replace photos folder creation logic with the new Photos backend endpoints

Summary

  • photosDeviceService.ts: HTTP client for photosendpoints (To use sdk functions we will need to merge [v1.9.1] - Release 1.9.1 #473 first, will be done in another task)

  • PhotoDeviceId.ts: PhotoDeviceManager: replaces client generated UUID with ensureDeviceFolder(), which calls the new endpoint and returns { deviceId, plainName, bucket } where deviceId is the backend folder uuid. iOS recovery via Keychain; Android recovery via androidId on 409 conflict

  • PhotoBackupFolders.ts: removed root and device folder creation. Now only manages year/month/day hierarchy under the deviceFolderUuid provided by the caller

  • PhotoCloudBrowser.ts: listDeviceFolders() now queries photosDeviceService.listDevices()

  • store/slices/photos/index.ts: initDeviceIdThunk uses PhotoDeviceManager.ensureDeviceFolder() and stores photosBucket alongside deviceId

@CandelR CandelR requested a review from TamaraFinogina June 3, 2026 14:04
@CandelR CandelR self-assigned this Jun 3, 2026
@CandelR CandelR added the enhancement New feature or request label Jun 3, 2026
@CandelR CandelR requested a review from larryrider June 4, 2026 15:08
});
};

beforeEach(() => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt it better to include this beforeEach inside the 'describe' test?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe add a parent describe test so it includes all the sub-describes of this file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the option of the parent describe seems good, adding it 🔝

Base automatically changed from feature/PB-6098-handle-storage-quota-in-photos to feature/PB-6068-photos-backup June 8, 2026 14:34
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
2.1% Duplication on New Code

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants