Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

1 change: 1 addition & 0 deletions types/queries/many_documents.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ select
d.format_id,
d.genre_id,
d.audio_slice_id,
d.include_audio_in_edited_collection,
media_resource.url as "audio_url?",
media_resource.recorded_at as "recorded_at?",
dailp_user.id as "recorded_by?",
Expand Down
1 change: 1 addition & 0 deletions types/queries/many_documents_by_name.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ select
d.is_reference,
d.written_at,
d.audio_slice_id,
d.include_audio_in_edited_collection,
media_resource.url as "audio_url?",
media_resource.recorded_at as "recorded_at?",
dailp_user.id as "recorded_by?",
Expand Down
5 changes: 2 additions & 3 deletions types/src/database_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2744,7 +2744,7 @@ impl Loader<DocumentId> for Database {
parent_track: None,
annotations: None,
index: 0,
include_in_edited_collection: true,
include_in_edited_collection: item.include_audio_in_edited_collection,
edited_by: None,
recorded_at: item.recorded_at.map(Date::new),
recorded_by: item.recorded_by.and_then(|user_id| {
Expand Down Expand Up @@ -2821,8 +2821,7 @@ impl Loader<DocumentShortName> for Database {
parent_track: None,
annotations: None,
index: 0,
// TODO: is this a bad default?
include_in_edited_collection: true,
include_in_edited_collection: item.include_audio_in_edited_collection,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm assuming this is only impacting reads. Is the value for include_audio_in_edited_collection already set for everything in the database, or does this require migration/data entry?

Copy link
Copy Markdown
Collaborator Author

@nole2701 nole2701 May 20, 2026

Choose a reason for hiding this comment

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

It defaults to true.

image

edited_by: None,
recorded_at: item.recorded_at.map(Date::new),
recorded_by: item.recorded_by.and_then(|user_id| {
Expand Down
Loading
Loading