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

Smart album - On This Day - new feature #1607

Merged
merged 19 commits into from
Dec 6, 2022
Merged

Conversation

aldjordje
Copy link
Contributor

@aldjordje aldjordje commented Nov 27, 2022

The smart album "On This Day" will allow users to see all the photos taken on this day.
Closes #1599

app/Locale/French.php Outdated Show resolved Hide resolved
Co-authored-by: Benoît Viguier <[email protected]>
@ildyria
Copy link
Member

ildyria commented Nov 27, 2022

@aldjordje I sent you an Triage invite so you are able to run the pipelines without waiting for our approval. :)

app/Locale/Dutch.php Outdated Show resolved Hide resolved
Co-authored-by: Benoît Viguier <[email protected]>
app/Locale/German.php Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 27, 2022

Codecov Report

Merging #1607 (c586104) into master (d87c867) will decrease coverage by 0.93%.
The diff coverage is 100.00%.

Additional details and impacted files

@qwerty287 qwerty287 added this to the 4.6.4 milestone Nov 28, 2022
@aldjordje aldjordje marked this pull request as draft November 28, 2022 13:51
@ildyria
Copy link
Member

ildyria commented Dec 5, 2022

@aldjordje is this ready for review ? :)

@aldjordje
Copy link
Contributor Author

@ildyria Thank you for enabling exceptions for 500 errors to be displayed. Without it, I couldn't figure out what the problem was :)

@aldjordje aldjordje marked this pull request as ready for review December 6, 2022 10:14
Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

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

99% LGTM.

Please add the following standalone test to AlbumTest.php.

  1. Get today date
  2. Log as admin
  3. Upload photo -> get the photo ID
  4. Get photo model and set taken_at of the picture to today - 1 year.
  5. Open "On this day"
  6. Check that photo ID is present in the response.
  7. Log out.

This will guarantee that the SQL request is also working. :)

Some pictures do not have a taken_at (exif data missing), maybe in those case we could consider the created_at instead ? See https://github.com/aldjordje/Lychee/pull/1/files :)

ildyria and others added 3 commits December 6, 2022 11:26
Improve query to support created_at when taken_at is null
@aldjordje
Copy link
Contributor Author

@ildyria I was thinking about the test and I couldn't think of a way to write it. I'll add it today.

Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

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

LGTM.

@ildyria ildyria merged commit e692a15 into LycheeOrg:master Dec 6, 2022
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.

[Enhancement] Smart album "On This Day"
3 participants