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

Repair photos #897

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Repair photos #897

wants to merge 5 commits into from

Conversation

trollepierre
Copy link
Owner

No description provided.

})

it('should delete all the photos of article', () => {
// Given
Copy link
Owner Author

Choose a reason for hiding this comment

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

delete

Suggested change
// Given

})

it('should get dropbox files folder path', () => {
// Given
Copy link
Owner Author

Choose a reason for hiding this comment

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

delete

})

it('should get dropbox files folder path', () => {
// Given
Copy link
Owner Author

Choose a reason for hiding this comment

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

delete

async function sync(dropboxId) {
photoRepository.deletePhotosOfArticle(dropboxId)
const dropboxFilesPath = await DropboxClient.getFilesFolderPaths(dropboxId)
return CreateArticleGallery.createArticleGallery(dropboxFilesPath, dropboxId)
Copy link
Owner Author

Choose a reason for hiding this comment

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

need to test the returned

@@ -5,6 +5,10 @@ const PhotosApi = {
fetch(id) {
return apiService.get(`articles/${id}/photos`)
},

update(id) {
return apiService.put(`admin/articles/${id}/photos`)
Copy link
Owner Author

Choose a reason for hiding this comment

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

test

@@ -84,6 +90,7 @@
return {
isUpdateClicked: false,
isUpdateChapterClicked: false,
isUpdatePhotosClicked: false,
Copy link
Owner Author

Choose a reason for hiding this comment

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

test the whole file

@@ -260,6 +260,7 @@ function _shareChapterImage(imgLink) {
.then(_transformToImgLink)
}

// TODO: is different of create-article-gallery.js ???
Copy link
Owner Author

Choose a reason for hiding this comment

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

take time to work on that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant