-
Notifications
You must be signed in to change notification settings - Fork 32
[PB-4520]: feat/migrate-storage-endpoints #1548
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
65ee227
feat: migrated delete folder endpoint to drive-new
larryrider 775851d
fix: update @internxt/sdk version to 1.9.25
larryrider 0f8ff7b
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider b0843c0
feat: update storage client to use new API on fetch limit
larryrider b1baa09
feat: update usage service to utilize new API and response type
larryrider 60fa4b5
feat: update deleteFile function to use new API
larryrider 5f2916b
refactor: remove deprecated storage client methods
larryrider 0b83eaf
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider 1400a8f
feat: add unit tests for usageService and remove unused uuid import
larryrider 517ac39
feat: add unit tests for limitService to validate fetchLimit function…
larryrider 083b622
feat: update SDK mock implementation in limitService and usageService…
larryrider a3c1ce7
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider 1ba780e
feat: mock error service and validate error reporting in usageService…
larryrider 98534a4
feat: update error service mock structure in usageService tests
larryrider 3f4fe6a
feat: refactor backup device deletion to use backupsService and filte…
larryrider 4239a89
feat: update @internxt/sdk version to 1.9.28 in package.json and yarn…
larryrider 5013f8a
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider 309e44d
feat: add unit tests for deleteBackupDeviceAsFolder in backupsService…
larryrider d658450
feat: add unit tests for deleteFolderByUuid in newStorageService
larryrider f417740
feat: update package dependencies and improve node version compatibility
larryrider c513826
feat: update pdf.js worker source to use module URL for improved comp…
larryrider 49da521
feat: update FilePdfViewer to create Blob with correct MIME type for …
larryrider f6f1d15
feat: enhance business plan usage details to include total usage calc…
larryrider ffd8e66
feat: update pdf.js worker source to use unpkg URL for improved loading
larryrider 2b99356
feat: remove asmcrypto.js dependency and related tests for improved c…
larryrider a355f05
Revert "feat: remove asmcrypto.js dependency and related tests for im…
larryrider b2b7a7d
Revert feat: update pdf.js worker source to use module URL for improv…
larryrider 477f49f
Revert "feat: update package dependencies and improve node version co…
larryrider 1df9e35
Revert "feat: update FilePdfViewer to create Blob with correct MIME t…
larryrider ddb7eca
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider 79848ff
test: add unit tests for deleteFile function in file.service
larryrider f0d3f39
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider f390c44
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
larryrider 1392e5f
Merge branch 'master' into feat/PB-4520-migrate-storage-endpoints
CandelR File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import { describe, expect, it, Mock, vi } from 'vitest'; | ||
| import backupsService from './backups.service'; | ||
| import { SdkFactory } from '../../core/factory/sdk'; | ||
|
|
||
| vi.mock('../../core/factory/sdk', () => ({ | ||
| SdkFactory: { | ||
| getNewApiInstance: vi.fn(), | ||
| }, | ||
| })); | ||
|
|
||
| describe('backupsService', () => { | ||
| describe('deleteBackupDeviceAsFolder', () => { | ||
| const mockFolderId = 'test-folder-id'; | ||
|
|
||
| it('should call deleteBackupDeviceAsFolder with the correct folderId', async () => { | ||
| const mockResponse = vi.fn().mockResolvedValue({}); | ||
| const mockStorageClient = { deleteBackupDeviceAsFolder: mockResponse }; | ||
| (SdkFactory.getNewApiInstance as Mock).mockReturnValue({ | ||
| createBackupsClient: () => mockStorageClient, | ||
| }); | ||
|
|
||
| await backupsService.deleteBackupDeviceAsFolder(mockFolderId); | ||
|
|
||
| expect(mockStorageClient.deleteBackupDeviceAsFolder).toHaveBeenCalledWith(mockFolderId); | ||
| }); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.