Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-6887

Model coordinates without nullable latitude and longitude

    XMLWordPrintable

    Details

      Description

      As mentioned on https://bitbucket.org/metabrainz/musicbrainz-server/pull-request/544/mbs-6832-format-coordinates-for-display/diff coordinates are currently modeled such that there is always a coordinates object, but sometimes latitude and longitude are null; at a database level it's either the whole coordinates are null or both are set, which would be more accurately modeled in Perl as a nullable coordinates object with required/not-nullable latitude and longitude properties.

      This would additionally simplify Entity::Coordinates->format and ->osm_url, which currently have to check for nulls.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chirlu Ulrich Klauer
                Reporter:
                ianmcorvidae Ian McEwen
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  Schema change, 2014-05-13