Repository navigation
dbserver: serve Delivery Info's own fields - #195
Merged
Merged
Conversation
Delivery Info (0x2602) has four rows of its own: the composer, the delivery comment, the lyricist, and DeliveryControl with the ISRC. Vynull imported none of them except the composer's name, and sent all four empty. A master.db import now brings djmdContent's ComposerID, Lyricist, DeliveryComment, DeliveryControl and ISRC, and Delivery Info serves them as rekordbox does (link-spec SONG_INFO_SIBLINGS_ORACLE.md, "Delivery-only fields and limits"): the composer's ID, kept when no artist has it, and its name and the lyricist cut to 127 UTF-16 units; the delivery comment and the ISRC to 255; and the ISRC row's argument 8 set when DeliveryControl is "ON" in any case.
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.
What & why
Delivery Info (0x2602) has four rows of its own: the composer, the delivery comment, the lyricist, and DeliveryControl with the ISRC. Vynull imported none of them except the composer's name, and sent all four empty. link-spec records rekordbox's rows and limits in SONG_INFO_SIBLINGS_ORACLE.md ("Delivery Info rows" and "Delivery-only fields and limits").
Changes:
djmdContent's ComposerID, Lyricist, DeliveryComment, DeliveryControl and ISRC onto the track.Nothing else changes: these fields only appear in Delivery Info.
Tests:
TestDeliveryInfoFieldschecks each field and limit, a dangling composer with a split surrogate pair, and the ISRC row's argument 8 on the wire. It uses the new track fields, so it doesn't build on main.Conformance against main, on the default-settings fixtures: 3,676 to 3,682 of 4,250 cases exact (+6, none lost): song-info-delivery-boundaries +2 and song-info-delivery-wide-strings +4. The other cases in those suites now carry the same field values but differ in row order: rekordbox cycles Delivery Info's rows through four permutations by its internal list state, which Vynull deliberately doesn't emulate.
No hot path changes: Delivery Info builds its 13 rows per request as before.
Build, vet, gofmt, all tests, the race detector on the dbserver and the library, and the e2e suite pass.
Hardware testing
Checklist
go build ./...,go vet ./..., andgo test ./...passgofmt -l .is cleanGPL-3.0-or-later)