Repository navigation
Photos: Show albums in the Info tab of the edit dialog - #3095
Merged
Merged
Conversation
Member
|
Thank you! If this works, that would be a quick win. I will merge this and then try to figure out why albums were excluded from the JSON response. The related commit looks like it should have only been excluded from the YAML backups, which is correct. |
lastzero
added a commit
that referenced
this pull request
Jun 13, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
Member
|
A new development preview will be available for testing soon! 👍 |
Member
|
You can now help test this with our preview build and on our public demo. An overview of all changes can be found in the Release Notes at docs.photoprism.app/release-notes/#development-preview. |
lastzero
added a commit
that referenced
this pull request
Jun 15, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
Member
|
I had to update the query to hide albums from which a photo has been removed. So much for the "quick win"! 😆 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Route "GET /api/v1/photos/:uid" chain of calls to the following GetPhoto -> PhotoPreloadByUID -> PreloadMany -> PreloadAlbums does eventually query the database table photos_albums but the Album array in Photos does not get populated.
PR includes sample to display which albums a photo belongs to in the Info dialog.
Acceptance Criteria: