Navigation Menu

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: Shared Element when the document has no path #1054

Merged
merged 2 commits into from Aug 5, 2020

Conversation

Crash--
Copy link
Contributor

@Crash-- Crash-- commented Aug 4, 2020

We assumed that a document has a path or at least that
we can fetch it. It works well with an io.cozy.files but
not with an io.cozy.albums since an album doesn't have a
path.

Instead of displaying nothing if there is no path, let's just
not make the call to the methods that need the path to work.

  • I need to work on the latest test

@Crash-- Crash-- requested a review from y-lohse August 4, 2020 16:10
Copy link
Contributor

@y-lohse y-lohse left a comment

Choose a reason for hiding this comment

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

Small comment but looking good so far!

We assumed that a document has a path or at least that
we can fetch it. It works well with an io.cozy.files but
not with an io.cozy.albums since an album doesn't have a
path.

Instead of displaying nothing if there is no path, let's just
not make the call to the methods that need the path to work.
Copy link
Contributor

@y-lohse y-lohse left a comment

Choose a reason for hiding this comment

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

LGTM but can you please remove the commented lines from the tests?

@Crash-- Crash-- merged commit 6ebd223 into master Aug 5, 2020
@Crash-- Crash-- deleted the fix/SharingForPHotos branch August 5, 2020 12:46
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.

None yet

2 participants