|
Add to created ayttribute and header as agreed at http://chatlogs.musicbrainz.org/musicbrainz-devel/2012/2012-09/2012-09-10.html#T20-02-16-823335 Added datetime to created attribute using the http://www.w3.org/TR/xmlschema-2/#dateTime Also http://en.wikipedia.org/wiki/List_of_HTTP_header_fields Tue, 15 Nov 1994 12:45:26 GMT Is this what what you want as the format, looks like it will be difficult for client to parse if required. For the Last-Modified header, we should use whatever's the standard; what I can find suggests that what you listed from wikipedia is correct. For the XML, what you've done seems fine; the milliseconds probably aren't useful, as you say, but I don't know that there's reason to exclude them either. Added last-modified to header for all databases based indexes for ws/2 queries. Ah misread the code, actually freedb indexes do already contain the lastipdated value so this issue is fully fixed. I'm not seeing any last-updated data in the freedb return values – e.g. http://search.musicbrainz.org/ws/2/freedb/?query=blah&fmt=json
Ah I don't think freedb indexes get built very often, and perhaps they havent been built since the date updated was added to the index, I'll have to check with Rob. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I prefer the idea of outputting in the XML because this is where everything else is output so it wuld be a pain for an application to look in a different location for this information especially if they have to pass the results to another function because we then have two pieces of information to pass around, the metadata itself and the indexlastmodified date. We already output the search scores in the Xml, although score is not part of the MMD extensions can be added and score is such an extension, so my plan was to add indexLastModified field attribute to the <metadata> element in the same way although <metadata> already has defined a 'created' attribute defined which never appears to be used I wonder what is intended use and whether I should use this.