)]}'
{"specs/kilo/semver-support.rst":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":17,"context_line":"SemVer freely at `semver.org \u003chttp://semver.org\u003e`"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to add support of the semantic versioning concept into Glance,"},{"line_number":20,"context_line":"so Glance objects (starting from Artifacts, but probably including Images in"},{"line_number":21,"context_line":"future) may be properly versioned."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_45e139fd","line":20,"updated":"2015-02-10 13:52:48.000000000","message":"Backing up the suggestion to use SemVer here for Images (in the future) is the Application Container Image mainfest format:\n\nhttps://github.com/appc/spec/blob/master/SPEC.md#image-manifest-schema\n\nWhich you will note has an acVersion field that is required to be in SemVer format.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"1336aa5a54df5b3653c13d300252ef2f29f13b44","unresolved":false,"context_lines":[{"line_number":17,"context_line":"SemVer freely at `semver.org \u003chttp://semver.org\u003e`"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to add support of the semantic versioning concept into Glance,"},{"line_number":20,"context_line":"so Glance objects (starting from Artifacts, but probably including Images in"},{"line_number":21,"context_line":"future) may be properly versioned."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_8c6b5e84","line":20,"in_reply_to":"da86d52c_32d2db34","updated":"2015-02-17 09:37:32.000000000","message":"I don\u0027t get it: are you suggesting to drop versions at all (i.e. replace them with regular strings) and saying that it it is less limiting then having them in at least some format?","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"568264a412f393cf3fd7345b4b51ef7399890e37","unresolved":false,"context_lines":[{"line_number":17,"context_line":"SemVer freely at `semver.org \u003chttp://semver.org\u003e`"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to add support of the semantic versioning concept into Glance,"},{"line_number":20,"context_line":"so Glance objects (starting from Artifacts, but probably including Images in"},{"line_number":21,"context_line":"future) may be properly versioned."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_fbf600d6","line":20,"in_reply_to":"da86d52c_45e139fd","updated":"2015-02-13 19:42:42.000000000","message":"Except that artifacts are generic images which can be versioned in many ways which are incompatible with semantic versioning and PEP440.\n\nIf the spec were aimed at something far more narrow, like Images, I\u0027d agree 100% that the prior art in the appc spec makes sense here.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"d0b86febbc27a5a50c8588ed8dcb2bd15ab617bb","unresolved":false,"context_lines":[{"line_number":17,"context_line":"SemVer freely at `semver.org \u003chttp://semver.org\u003e`"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to add support of the semantic versioning concept into Glance,"},{"line_number":20,"context_line":"so Glance objects (starting from Artifacts, but probably including Images in"},{"line_number":21,"context_line":"future) may be properly versioned."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_32d2db34","line":20,"in_reply_to":"da86d52c_f0705175","updated":"2015-02-16 22:23:43.000000000","message":"Primitive ASCII comparisons considered acceptable for people who are actually satisfying the most generic case (e.g., look at how tags are sorted on https://bitbucket.org/pypa/setuptools). Tags/version strings are sometimes not capable of being marshalled into Semantic Versions and if we really are trying to appeal to the broadest audience, this spec isn\u0027t the way forward.\n\nAt the very least, the spec should mention how severely it is limiting wide-spread use of artifacts from the start.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":17,"context_line":"SemVer freely at `semver.org \u003chttp://semver.org\u003e`"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to add support of the semantic versioning concept into Glance,"},{"line_number":20,"context_line":"so Glance objects (starting from Artifacts, but probably including Images in"},{"line_number":21,"context_line":"future) may be properly versioned."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_f0705175","line":20,"in_reply_to":"da86d52c_fbf600d6","updated":"2015-02-16 13:41:50.000000000","message":"Yet they still have to be versioned (i.e. ordered) somehow. So we still have some semantic other then primitive ASCII-comparison.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"If we want to store versioned objects in the catalog (this may be applied to"},{"line_number":36,"context_line":"images, artifacts and other entities), then we need to be able to execute this"},{"line_number":37,"context_line":"kind of semantic comparison for large amounts of entities."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_85c5f13e","line":37,"updated":"2015-02-10 13:52:48.000000000","message":"Note that the number of entities won\u0027t be incredibly large -- I mean, consider a collection of application manifest artifacts. Even a Glance artifact repository online for over a decade would be unlikely to have more than a few thousand or so records representing different versions of the application. A few thousand isn\u0027t a large amount, of course. However, if you intend to sort the artifacts based on the version, doing so without SemVer would mean needing to do all the sorting in memory after reading from the DB. That, in itself, would certainly be a performance killer.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"568264a412f393cf3fd7345b4b51ef7399890e37","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"If we want to store versioned objects in the catalog (this may be applied to"},{"line_number":36,"context_line":"images, artifacts and other entities), then we need to be able to execute this"},{"line_number":37,"context_line":"kind of semantic comparison for large amounts of entities."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_db7cdc22","line":37,"in_reply_to":"da86d52c_85c5f13e","updated":"2015-02-13 19:42:42.000000000","message":"I agree that sorting versions in memory is a performance killer, I disagree that it\u0027s inherently the responsibility of glance, especially given we\u0027re going to severely limit artifacts\u0027 usability in any number of directions by choosing one versioning scheme over another.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"If we want to store versioned objects in the catalog (this may be applied to"},{"line_number":36,"context_line":"images, artifacts and other entities), then we need to be able to execute this"},{"line_number":37,"context_line":"kind of semantic comparison for large amounts of entities."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_3002e9b4","line":37,"in_reply_to":"da86d52c_db7cdc22","updated":"2015-02-16 13:41:50.000000000","message":"It is the responsibility of the catalog. \nIf we remove it from catalog, the catalog will not be able to do sorting and filtering. So, the client will have to fetch them all - which is indeed a performance killer.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"},{"line_number":41,"context_line":"versioning information. So, a workaround should be introduced."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_45ebf9af","line":41,"updated":"2015-02-10 13:52:48.000000000","message":"nit: s/workaround/method for storing easily-sortable version identifiers/","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"568264a412f393cf3fd7345b4b51ef7399890e37","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"},{"line_number":41,"context_line":"versioning information. So, a workaround should be introduced."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_bbb648f7","line":41,"in_reply_to":"da86d52c_45ebf9af","updated":"2015-02-13 19:42:42.000000000","message":"+1","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"d0233450cb1fc81f5e5974f21d1ae2f661309da9","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"},{"line_number":41,"context_line":"versioning information. So, a workaround should be introduced."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_0f99206e","line":41,"in_reply_to":"da86d52c_702b8133","updated":"2015-02-17 10:40:59.000000000","message":"Done","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"So, the comparison should be made not only in memory, but at the database as"},{"line_number":40,"context_line":"well, and there is no generic datatype in modern RDBMs to store this kind of"},{"line_number":41,"context_line":"versioning information. So, a workaround should be introduced."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_702b8133","line":41,"in_reply_to":"da86d52c_bbb648f7","updated":"2015-02-16 13:41:50.000000000","message":"Will fix in the next revision.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":61,"context_line":"numeric part, another for the pre-release label and the last one for build"},{"line_number":62,"context_line":"metadata."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Three numeric components (major, minor and match) may be converted into a"},{"line_number":65,"context_line":"single unsigned 64-bit integer number: first 16 bits of this number"},{"line_number":66,"context_line":"will be allocated to store major revision, next 16 bits - for minor revision,"},{"line_number":67,"context_line":"next 16 bits - for patch revision. Remaining 16 bits will be used to store the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_a54915d2","line":64,"updated":"2015-02-10 13:52:48.000000000","message":"s/match/patch/","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":61,"context_line":"numeric part, another for the pre-release label and the last one for build"},{"line_number":62,"context_line":"metadata."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Three numeric components (major, minor and match) may be converted into a"},{"line_number":65,"context_line":"single unsigned 64-bit integer number: first 16 bits of this number"},{"line_number":66,"context_line":"will be allocated to store major revision, next 16 bits - for minor revision,"},{"line_number":67,"context_line":"next 16 bits - for patch revision. Remaining 16 bits will be used to store the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_902e3541","line":64,"in_reply_to":"da86d52c_5bbb8ce4","updated":"2015-02-16 13:41:50.000000000","message":"Will fix in the next revision.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"d0233450cb1fc81f5e5974f21d1ae2f661309da9","unresolved":false,"context_lines":[{"line_number":61,"context_line":"numeric part, another for the pre-release label and the last one for build"},{"line_number":62,"context_line":"metadata."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Three numeric components (major, minor and match) may be converted into a"},{"line_number":65,"context_line":"single unsigned 64-bit integer number: first 16 bits of this number"},{"line_number":66,"context_line":"will be allocated to store major revision, next 16 bits - for minor revision,"},{"line_number":67,"context_line":"next 16 bits - for patch revision. Remaining 16 bits will be used to store the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_8fac308e","line":64,"in_reply_to":"da86d52c_902e3541","updated":"2015-02-17 10:40:59.000000000","message":"Done","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"568264a412f393cf3fd7345b4b51ef7399890e37","unresolved":false,"context_lines":[{"line_number":61,"context_line":"numeric part, another for the pre-release label and the last one for build"},{"line_number":62,"context_line":"metadata."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Three numeric components (major, minor and match) may be converted into a"},{"line_number":65,"context_line":"single unsigned 64-bit integer number: first 16 bits of this number"},{"line_number":66,"context_line":"will be allocated to store major revision, next 16 bits - for minor revision,"},{"line_number":67,"context_line":"next 16 bits - for patch revision. Remaining 16 bits will be used to store the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_5bbb8ce4","line":64,"in_reply_to":"da86d52c_a54915d2","updated":"2015-02-13 19:42:42.000000000","message":"+1","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":68,"context_line":"release type flag (to make sure that the final release had higher precedence"},{"line_number":69,"context_line":"then pre-releases) and may be reserved for future improvement and storing"},{"line_number":70,"context_line":"additional information which is irrelevant for semantic versioning but may have"},{"line_number":71,"context_line":"some other meanings (see Alternatives section below for more details)."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"The labels of pre-release version should be stored independently from the"},{"line_number":74,"context_line":"numeric part as a regular string, because - according to the semver spec - they"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_852171fe","line":71,"updated":"2015-02-10 13:52:48.000000000","message":"++","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"So, these two values - long number and a string - may be combined into a single"},{"line_number":79,"context_line":"composite index in the database, which will provide efficient capabilities to"},{"line_number":80,"context_line":"sort and filter objects with the versions assigned."},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"However, there is one important difference between the semver requirement and"},{"line_number":83,"context_line":"simple comparison of alphanumeric strings: semver requires that the labels are"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_255b6588","line":80,"updated":"2015-02-10 13:52:48.000000000","message":"++","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":100,"context_line":"\"alpha.000004.foo\", and \"alpha.10.foo\" - \"alpha.000010.foo\". ASCII-based"},{"line_number":101,"context_line":"comparison of these strings will give the results which are consistent with the"},{"line_number":102,"context_line":"requirements of semver. Later, when these values are read from the database the"},{"line_number":103,"context_line":"leading zeros may be removed so the labels look fine again."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"This applies only to the pre-release label part. Build metadata (the part which"},{"line_number":106,"context_line":"is separated by the \u0027+\u0027 character) does not take part in the precedence"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_25a0c542","line":103,"updated":"2015-02-10 13:52:48.000000000","message":"Seems like a perfectly reasonable approach here.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":149,"context_line":"generic as possible in terms of the nature of its objects. This means that the"},{"line_number":150,"context_line":"users of the artifacts are not restricted to be Python developers only: they"},{"line_number":151,"context_line":"may not be the developers at all. So, following easier and more generic"},{"line_number":152,"context_line":"standard seems preferable."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_650c7d43","line":152,"updated":"2015-02-10 13:52:48.000000000","message":"This last piece is the most important to me. SemVer, like it or not, is the modern standard for library and application release versioning for many languages and platforms. PEP440 is simply not seen outside of Python-land, and adding in PEP440 constraints to the Glance artifact repository (which is intended as a language-agnostic artifact repository) is less beneficial IMHO than using SemVer.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"1336aa5a54df5b3653c13d300252ef2f29f13b44","unresolved":false,"context_lines":[{"line_number":149,"context_line":"generic as possible in terms of the nature of its objects. This means that the"},{"line_number":150,"context_line":"users of the artifacts are not restricted to be Python developers only: they"},{"line_number":151,"context_line":"may not be the developers at all. So, following easier and more generic"},{"line_number":152,"context_line":"standard seems preferable."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_ec9dbabc","line":152,"in_reply_to":"da86d52c_32b57bd0","updated":"2015-02-17 09:37:32.000000000","message":"No, they don\u0027t have to if the generic version field is optional. They just will not be able to use sorting and filtering by version semantics. They still will be able to sort by ASCII order of their identifier.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"568264a412f393cf3fd7345b4b51ef7399890e37","unresolved":false,"context_lines":[{"line_number":149,"context_line":"generic as possible in terms of the nature of its objects. This means that the"},{"line_number":150,"context_line":"users of the artifacts are not restricted to be Python developers only: they"},{"line_number":151,"context_line":"may not be the developers at all. So, following easier and more generic"},{"line_number":152,"context_line":"standard seems preferable."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_d49c4f60","line":152,"in_reply_to":"da86d52c_650c7d43","updated":"2015-02-13 19:42:42.000000000","message":"And yet there are a myriad of closed source product shops that might want to use the artifacts repository but won\u0027t be able to use their own versioning system if it\u0027s incompatible with SemVer so we\u0027re basically only supporting other open source communities (of which a fraction have adopted SemVer).","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":149,"context_line":"generic as possible in terms of the nature of its objects. This means that the"},{"line_number":150,"context_line":"users of the artifacts are not restricted to be Python developers only: they"},{"line_number":151,"context_line":"may not be the developers at all. So, following easier and more generic"},{"line_number":152,"context_line":"standard seems preferable."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_f0493133","line":152,"in_reply_to":"da86d52c_d49c4f60","updated":"2015-02-16 13:41:50.000000000","message":"Ian, we are building a \"catalog of things\", and the ability to have a version (with some semantic assumed) is one of the initial goals of this catalog. This is one of the core concepts we offer for all the artifacts, similar to the concept of dependencies, blobs or generic metadata fields (such as name, description etc).\n\nThat is why we have to make some assumptions. We assume that artifacts have the name and the description, that they have tags, that they are owned by some openstack tenant, that they may be shared, that they have states - etc. Having a version in a specific format is one of this assumptions, which is needed to properly sort and filter artifacts (and for a number of other features which are postponed to further iterations).\n\nThat is why we have to choose some notation which will satisfy MOST our users. Those who do not like it still have a possibility to add their own type-specific field, add any regexp validators and use it with any semantics they want. But they will loose all the benefits which come out-of-the-box from the generic implementation.\n\nThe scope of this discussion is not to decide whether we need this generic field at all or not: this all has been discussed and approved at a number of design summits. Th question is to choose which particular notation to choose. And here I stand for more widely-used solution (semver) in favour of more specific (python\u0027s pep440).","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"d0b86febbc27a5a50c8588ed8dcb2bd15ab617bb","unresolved":false,"context_lines":[{"line_number":149,"context_line":"generic as possible in terms of the nature of its objects. This means that the"},{"line_number":150,"context_line":"users of the artifacts are not restricted to be Python developers only: they"},{"line_number":151,"context_line":"may not be the developers at all. So, following easier and more generic"},{"line_number":152,"context_line":"standard seems preferable."},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_32b57bd0","line":152,"in_reply_to":"da86d52c_f0493133","updated":"2015-02-16 22:23:43.000000000","message":"Except that by allowing someone else to provide a separate field they can sort by locally means they still have to provide a version identifier that\u0027s semantically versioned which is kind of bizarre when all they want is to manage *one* version identifier string.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"5ddd544175b1637002e801264a529d426603a9b6","unresolved":false,"context_lines":[{"line_number":224,"context_line":"Work Items"},{"line_number":225,"context_line":"----------"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Feature is quite simple, may be implemented as a single change set."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_a04bc357","line":227,"updated":"2015-02-10 13:52:48.000000000","message":"I think the suggestion from Louis in the review comments on previous revisions of this spec was good. It would be good to add the generic split functionality to the semantic_version Python library if possible, and leave the Glance coding to simply utilizing that newly-added code in the semantic_version library.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"d0233450cb1fc81f5e5974f21d1ae2f661309da9","unresolved":false,"context_lines":[{"line_number":224,"context_line":"Work Items"},{"line_number":225,"context_line":"----------"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Feature is quite simple, may be implemented as a single change set."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_ea875a10","line":227,"in_reply_to":"da86d52c_5014bde8","updated":"2015-02-17 10:40:59.000000000","message":"Done","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"6519fc139b1994c70c5cefc36ae681b63ae60f88","unresolved":false,"context_lines":[{"line_number":224,"context_line":"Work Items"},{"line_number":225,"context_line":"----------"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Feature is quite simple, may be implemented as a single change set."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"da86d52c_5014bde8","line":227,"in_reply_to":"da86d52c_a04bc357","updated":"2015-02-16 13:41:50.000000000","message":"Will fix in the next revision.","commit_id":"b7f56333c1cc16a24f94074e8b202e167891c7cf"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"544e40535d30a43ddb380ca9adf1048bce0d396b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"da86d52c_0258a588","updated":"2015-02-19 17:01:17.000000000","message":"Please strip trailing white space from the lines. If you use vim the following should do it for you:\n\n    :%s/ \\+$//g","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"74c82be25e9629dc57c37934b0ff0b37dae8ebc6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"ba7be1f8_04714777","in_reply_to":"da86d52c_0258a588","updated":"2015-02-27 14:59:42.000000000","message":"Done","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"544e40535d30a43ddb380ca9adf1048bce0d396b","unresolved":false,"context_lines":[{"line_number":202,"context_line":"------------------"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"The proposed change does not affect existing code in any sense. Even more, the"},{"line_number":205,"context_line":"suggested implementation will likely use regular expressions to parse semver"},{"line_number":206,"context_line":"strings. Python\u0027s regexps are quite efficient, especially if precompiled, so no"},{"line_number":207,"context_line":"significant performance impacts are expected if the library is used."},{"line_number":208,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da86d52c_6208812d","line":205,"updated":"2015-02-19 17:01:17.000000000","message":"This bit about the \"\u0027suggested implementation\" is out-dated now, yes?","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"74c82be25e9629dc57c37934b0ff0b37dae8ebc6","unresolved":false,"context_lines":[{"line_number":202,"context_line":"------------------"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"The proposed change does not affect existing code in any sense. Even more, the"},{"line_number":205,"context_line":"suggested implementation will likely use regular expressions to parse semver"},{"line_number":206,"context_line":"strings. Python\u0027s regexps are quite efficient, especially if precompiled, so no"},{"line_number":207,"context_line":"significant performance impacts are expected if the library is used."},{"line_number":208,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba7be1f8_215abd50","line":205,"in_reply_to":"da86d52c_6208812d","updated":"2015-02-27 14:59:42.000000000","message":"Yup. Done.","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"544e40535d30a43ddb380ca9adf1048bce0d396b","unresolved":false,"context_lines":[{"line_number":232,"context_line":"---------"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"Core reviewer(s):"},{"line_number":235,"context_line":"  Erno Kuvaja"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Other reviewer(s):"},{"line_number":238,"context_line":"  ivasilevskaya"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da86d52c_82e2d59d","line":235,"updated":"2015-02-19 17:01:17.000000000","message":"Aren\u0027t the reviewer names supposed to be launchpad ids? Not a big deal really, just a question.","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"74c82be25e9629dc57c37934b0ff0b37dae8ebc6","unresolved":false,"context_lines":[{"line_number":232,"context_line":"---------"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"Core reviewer(s):"},{"line_number":235,"context_line":"  Erno Kuvaja"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Other reviewer(s):"},{"line_number":238,"context_line":"  ivasilevskaya"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba7be1f8_44333ff6","line":235,"in_reply_to":"da86d52c_82e2d59d","updated":"2015-02-27 14:59:42.000000000","message":"Don\u0027t know, probably.","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"544e40535d30a43ddb380ca9adf1048bce0d396b","unresolved":false,"context_lines":[{"line_number":247,"context_line":"However it seems preferable to add this support to semantic_version library [2]"},{"line_number":248,"context_line":"and remove it from glance codebase aftwerwards. "},{"line_number":249,"context_line":"If the maintainer of the library does not accept this functionality (or if we"},{"line_number":250,"context_line":"decide to add support for more versioing notations later) then this code may be"},{"line_number":251,"context_line":"transferred to some common openstack library, such as Oslo. "},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"da86d52c_c2968def","line":250,"updated":"2015-02-19 17:01:17.000000000","message":"nit: \"versioing\" -\u003e \"versioning\"\n\nWe should also add a Work Item to upgrade the functionality from using SemVer to allowing for a wider and fuller set of versioning schemes in the next cycle to remove restrictions from users.","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"74c82be25e9629dc57c37934b0ff0b37dae8ebc6","unresolved":false,"context_lines":[{"line_number":247,"context_line":"However it seems preferable to add this support to semantic_version library [2]"},{"line_number":248,"context_line":"and remove it from glance codebase aftwerwards. "},{"line_number":249,"context_line":"If the maintainer of the library does not accept this functionality (or if we"},{"line_number":250,"context_line":"decide to add support for more versioing notations later) then this code may be"},{"line_number":251,"context_line":"transferred to some common openstack library, such as Oslo. "},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba7be1f8_e4f7d3f3","line":250,"in_reply_to":"da86d52c_c2968def","updated":"2015-02-27 14:59:42.000000000","message":"Done","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"544e40535d30a43ddb380ca9adf1048bce0d396b","unresolved":false,"context_lines":[{"line_number":269,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"Developers\u0027 guide has to be updated to hint the developers on how to properly"},{"line_number":272,"context_line":"use the lib in their code."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":4,"id":"da86d52c_02b42580","line":272,"updated":"2015-02-19 17:01:17.000000000","message":"Since more than just developers read the specs, can we expand \"lib\" to \"library\"?","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"74c82be25e9629dc57c37934b0ff0b37dae8ebc6","unresolved":false,"context_lines":[{"line_number":269,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"Developers\u0027 guide has to be updated to hint the developers on how to properly"},{"line_number":272,"context_line":"use the lib in their code."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"References"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba7be1f8_64e3e333","line":272,"in_reply_to":"da86d52c_02b42580","updated":"2015-02-27 14:59:42.000000000","message":"Done","commit_id":"f1d1ba896d24ddfc505839980d333dcafd0fc33a"},{"author":{"_account_id":2537,"name":"Nikhil Komawar","email":"nik.komawar@gmail.com","username":"nikhil-komawar"},"change_message_id":"1eb503eb89fd2db5bf26b1a796b73f2866bf9527","unresolved":false,"context_lines":[{"line_number":110,"context_line":"pre-processed in anyway."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"It is suggested to create custom composite field for SQLAlchemy which will"},{"line_number":113,"context_line":"encapsulate the above described logic (converting from semantic version into 3"},{"line_number":114,"context_line":"database-friendly values and back) and will be usable for building"},{"line_number":115,"context_line":"version-aware model classes."},{"line_number":116,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"ba7be1f8_a318dc1e","line":113,"updated":"2015-03-03 21:49:48.000000000","message":"I\u0027ve been passively following up on the discussion in the previous specs and did not intend to interfere for the purpose of being a _unblocker_ rather than creating more hassles for an already complex implementation.\n\nI agree with Alex that we need to go with the most straightforward and maintainable (in terms of code) solution for this first pass. Having said that, a solution that can be extensible is even better.\n\nThe only worry that I was having was Catalog Index Service reading directly from the database and will either need a reimplementation of the data translations or they would need to use the data from Glance API only. This is not the case. Let me try to find Travis to comment on this.","commit_id":"822922d70c1820bb60d0df9151ffac9a0c31041e"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"3e0f70176b8af2d14fe9aede2882899b7c33a47b","unresolved":false,"context_lines":[{"line_number":110,"context_line":"pre-processed in anyway."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"It is suggested to create custom composite field for SQLAlchemy which will"},{"line_number":113,"context_line":"encapsulate the above described logic (converting from semantic version into 3"},{"line_number":114,"context_line":"database-friendly values and back) and will be usable for building"},{"line_number":115,"context_line":"version-aware model classes."},{"line_number":116,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"ba7be1f8_f51a827b","line":113,"in_reply_to":"ba7be1f8_a318dc1e","updated":"2015-03-04 00:35:56.000000000","message":"Steve and I spoke over this for some time.? We think we have a couple of ideas that we\u0027ll explore further for native ES plugin or for artifact plugin into index service in python.? We\u0027ll discuss further with Kamil, Lakshmi, and Wayne.","commit_id":"822922d70c1820bb60d0df9151ffac9a0c31041e"}],"specs/kilo/semver.rst":[{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":14,"context_line":"a number of market-adopted solutions. One of these solutions is Semantic"},{"line_number":15,"context_line":"Versioning - a system of rules and requirements for assigning version numbers"},{"line_number":16,"context_line":"to software components and other objects. The specification for this system -"},{"line_number":17,"context_line":"known as semver - can be found at [1]"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to create a simple utility class in Glance which implement parts"},{"line_number":20,"context_line":"of semver spec for usage by Glance Artifacts and other components."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_58026373","line":17,"updated":"2014-12-26 16:02:35.000000000","message":"Nit, a footnote is a footnote, not anything else. This should be rewritten to \"One can find the specification for SemVer freely at `semver.org \u003chttp://semver.org\u003e`.\"","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":14,"context_line":"a number of market-adopted solutions. One of these solutions is Semantic"},{"line_number":15,"context_line":"Versioning - a system of rules and requirements for assigning version numbers"},{"line_number":16,"context_line":"to software components and other objects. The specification for this system -"},{"line_number":17,"context_line":"known as semver - can be found at [1]"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"It is proposed to create a simple utility class in Glance which implement parts"},{"line_number":20,"context_line":"of semver spec for usage by Glance Artifacts and other components."}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_c0cee22d","line":17,"in_reply_to":"3a961159_58026373","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_f8206ffa","line":26,"updated":"2014-12-26 16:02:35.000000000","message":"I think the idea here could be better expressed as \"Semantic versioning provides the ability to compare two or more objects based on the version with which they are associated.\"","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_769de409","line":26,"in_reply_to":"3a961159_f8206ffa","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"},{"line_number":30,"context_line":"etc) which should always be considered \"lower\" then the \"released\" version with"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_98812bc6","line":27,"updated":"2014-12-26 16:02:35.000000000","message":"reStructuredText will format footnotes appropriately. You can leave out the parentheses","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"},{"line_number":30,"context_line":"etc) which should always be considered \"lower\" then the \"released\" version with"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_b68afcbc","line":27,"in_reply_to":"3a961159_98812bc6","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"},{"line_number":30,"context_line":"etc) which should always be considered \"lower\" then the \"released\" version with"},{"line_number":31,"context_line":"the same values of numeric versions."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_d86ad31a","line":29,"updated":"2014-12-26 16:02:35.000000000","message":"Can we expand \"RCs\" here to \"release candidates\" and place \"RC\" in parentheses next to it?","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":26,"context_line":"A common use-case for semantic versioning is ability to compare two or more"},{"line_number":27,"context_line":"objects with the version assigned. According to the specification ([1]) objects"},{"line_number":28,"context_line":"are compared first by their major versions, then minor versions, then patch"},{"line_number":29,"context_line":"versions, also there is a concept of \"pre-release\" versions (alphas, betas, RCs"},{"line_number":30,"context_line":"etc) which should always be considered \"lower\" then the \"released\" version with"},{"line_number":31,"context_line":"the same values of numeric versions."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_96b9787b","line":29,"in_reply_to":"3a961159_d86ad31a","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":11356,"name":"Louis Taylor","email":"louis@kragniz.eu","username":"kragniz"},"change_message_id":"cf7efbb355d328f2b6157466ab0281c30abea1ef","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"It is suggested to use an unsigned long (64 bit integer) values for that"},{"line_number":54,"context_line":"purpose. In this case, three numeric components of the version (major, minor"},{"line_number":55,"context_line":"and patch) may be stored as a single large number: first 21 bits of this number"},{"line_number":56,"context_line":"will be allocated to store major revision, next 21 bits - for minor revision,"},{"line_number":57,"context_line":"next 21 bits - for patch revision, and the last - youngest - bit to store a"},{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5a890539_9bcccebd","line":55,"updated":"2014-12-05 12:22:52.000000000","message":"Why so many bits for the major? I don\u0027t want to fall into the trap of saying \"no one ever needs that much space!\", but are there any projects inside openstack which are likely to require storing a major version of 2097152?","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"It is suggested to use an unsigned long (64 bit integer) values for that"},{"line_number":54,"context_line":"purpose. In this case, three numeric components of the version (major, minor"},{"line_number":55,"context_line":"and patch) may be stored as a single large number: first 21 bits of this number"},{"line_number":56,"context_line":"will be allocated to store major revision, next 21 bits - for minor revision,"},{"line_number":57,"context_line":"next 21 bits - for patch revision, and the last - youngest - bit to store a"},{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_997feb65","line":55,"in_reply_to":"3a961159_58934300","updated":"2015-01-30 20:38:27.000000000","message":"Well, that\u0027s a lot indeed. However, this is just an equal devision of (64-1) bits into 3 parts.\nReducing this value does not help much as we still have to store these 3 values as part of the long 64-bit integer (and we cannot fallback to 32-bit, as this will mean 10 bit per component, which is definitely not enough).\n\nHowever, we may have just allocate 16 bit per component, and reserve the remaining bits for some future improvement (partial support of pep440-compatible prerelease label as part of this long field or something). Will revise this in the next patch.","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"It is suggested to use an unsigned long (64 bit integer) values for that"},{"line_number":54,"context_line":"purpose. In this case, three numeric components of the version (major, minor"},{"line_number":55,"context_line":"and patch) may be stored as a single large number: first 21 bits of this number"},{"line_number":56,"context_line":"will be allocated to store major revision, next 21 bits - for minor revision,"},{"line_number":57,"context_line":"next 21 bits - for patch revision, and the last - youngest - bit to store a"},{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_58934300","line":55,"in_reply_to":"5a890539_9bcccebd","updated":"2014-12-26 16:02:35.000000000","message":"Louis, you mean to tell me you don\u0027t think OpenStack will be seeing releases in the year 2097152?","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":11356,"name":"Louis Taylor","email":"louis@kragniz.eu","username":"kragniz"},"change_message_id":"cf7efbb355d328f2b6157466ab0281c30abea1ef","unresolved":false,"context_lines":[{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"},{"line_number":59,"context_line":"or not: if the tag exists, the bit is set to 0, otherwise - to 1, so the"},{"line_number":60,"context_line":"versions with identical major-minor-patch parts will be sorted in correct"},{"line_number":61,"context_line":"order: pre-release before the release ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The labels of pre-release version should be stored independently from the"},{"line_number":64,"context_line":"numeric part as a regular string, because - according to the semver spec - they"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5a890539_c08583af","line":61,"updated":"2014-12-05 12:22:52.000000000","message":"How does that deal with alpha \u003c beta and other comparisons between prereleases?","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"},{"line_number":59,"context_line":"or not: if the tag exists, the bit is set to 0, otherwise - to 1, so the"},{"line_number":60,"context_line":"versions with identical major-minor-patch parts will be sorted in correct"},{"line_number":61,"context_line":"order: pre-release before the release ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The labels of pre-release version should be stored independently from the"},{"line_number":64,"context_line":"numeric part as a regular string, because - according to the semver spec - they"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_798077f7","line":61,"in_reply_to":"3a961159_18a8db1f","updated":"2015-01-30 20:38:27.000000000","message":"As semver does not put any limitations on the pre-release label part (i.e. you are not limited to just a, b or rc, you may have pretty much everything there) you may not put them as part of the long field. That\u0027s why I suggest to store labels independently, as a string field.","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"},{"line_number":59,"context_line":"or not: if the tag exists, the bit is set to 0, otherwise - to 1, so the"},{"line_number":60,"context_line":"versions with identical major-minor-patch parts will be sorted in correct"},{"line_number":61,"context_line":"order: pre-release before the release ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The labels of pre-release version should be stored independently from the"},{"line_number":64,"context_line":"numeric part as a regular string, because - according to the semver spec - they"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_18a8db1f","line":61,"in_reply_to":"5a890539_c08583af","updated":"2014-12-26 16:02:35.000000000","message":"1.2.3a1 \u003c 1.2.3a2 \u003c 1.2.3a3 \u003c 1.2.3b1 \u003c 1.2.3b2 \u003c 1.2.3rc1\u003c 1.2.3rc2 \u003c 1.2.3 I think we need more space for the pre-release flag otherwise everything above except for the last item will be considered equivalent which is clearly wrong","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"flag indicating if the version have a pre-release tag (like alpha or something)"},{"line_number":59,"context_line":"or not: if the tag exists, the bit is set to 0, otherwise - to 1, so the"},{"line_number":60,"context_line":"versions with identical major-minor-patch parts will be sorted in correct"},{"line_number":61,"context_line":"order: pre-release before the release ones."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The labels of pre-release version should be stored independently from the"},{"line_number":64,"context_line":"numeric part as a regular string, because - according to the semver spec - they"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_d91ec30b","line":61,"in_reply_to":"5a890539_c08583af","updated":"2015-01-30 20:38:27.000000000","message":"Prerelease labels are to be stored as a different database field (see below) and have to be compared in lexical ASCII order. \nSo, if there are two version \"1.1.1-alpha\" and \"1.1.1-beta\" they will have identical long-64 fields but different string fields, and the request will have something like \"ORDER_BY long_field, string_field\" which will make \"alpha\" \u003c \"beta\" due to their lexical order in ASCII","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":80,"context_line":"it does not fully cover the proposal of this spec. Also, this library is not"},{"line_number":81,"context_line":"part of global requirements, so, instead of trying to modify it and then"},{"line_number":82,"context_line":"pushing to global-reqs it seems easier to implement the needed functionality"},{"line_number":83,"context_line":"from scratch."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Another alternative is to implement the same approach in oslo.incubator."},{"line_number":86,"context_line":"It is suggested to first land this feature in Glance and then - if case of"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_187ffbac","line":83,"updated":"2014-12-26 16:02:35.000000000","message":"There are certainly more than one library on PyPI which can handle comparison and parsing of semantic version strings. If anything, we should get the best of those libraries into global-requirements and then implement the string to unsigned long logic ourselves. Once we have that we can fork or create a separate stackforge project if we really need it all in a library with vastly different requirements than one of those libraries.","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":80,"context_line":"it does not fully cover the proposal of this spec. Also, this library is not"},{"line_number":81,"context_line":"part of global requirements, so, instead of trying to modify it and then"},{"line_number":82,"context_line":"pushing to global-reqs it seems easier to implement the needed functionality"},{"line_number":83,"context_line":"from scratch."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Another alternative is to implement the same approach in oslo.incubator."},{"line_number":86,"context_line":"It is suggested to first land this feature in Glance and then - if case of"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_f973874b","line":83,"in_reply_to":"3a961159_187ffbac","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Another alternative is to implement the same approach in oslo.incubator."},{"line_number":86,"context_line":"It is suggested to first land this feature in Glance and then - if case of"},{"line_number":87,"context_line":"wider interest - migrate it nto the Oslo"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Data model impact"},{"line_number":90,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_b870a7dd","line":87,"updated":"2014-12-26 16:02:35.000000000","message":"Typo: nto -\u003e into","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Another alternative is to implement the same approach in oslo.incubator."},{"line_number":86,"context_line":"It is suggested to first land this feature in Glance and then - if case of"},{"line_number":87,"context_line":"wider interest - migrate it nto the Oslo"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"Data model impact"},{"line_number":90,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_59965340","line":87,"in_reply_to":"3a961159_b870a7dd","updated":"2015-01-30 20:38:27.000000000","message":"Done","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"54e2f1f4b53f7e9e47fa25f9c2c929cecb78b5aa","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"The proposed change does not affect existing code in any sense. Even more, the"},{"line_number":120,"context_line":"suggested implementation will likely use regular expressions to parse semver"},{"line_number":121,"context_line":"strings. Python\u0027s regexps are quite efficient, especially if precompiled, so no"},{"line_number":122,"context_line":"significant performance impacts are expected if the library is used."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a961159_5848a38a","line":121,"updated":"2014-12-26 16:02:35.000000000","message":"They\u0027re efficient enough but there are competing and far more performant regular expression libraries for a reason","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"},{"author":{"_account_id":8127,"name":"Alexander Tivelkov","email":"locher@yandex.ru","username":"ativelkov"},"change_message_id":"5a4d4737963c90af8a170d1a60e0b9839753e64d","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"The proposed change does not affect existing code in any sense. Even more, the"},{"line_number":120,"context_line":"suggested implementation will likely use regular expressions to parse semver"},{"line_number":121,"context_line":"strings. Python\u0027s regexps are quite efficient, especially if precompiled, so no"},{"line_number":122,"context_line":"significant performance impacts are expected if the library is used."},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa81d914_79aeb782","line":121,"in_reply_to":"3a961159_5848a38a","updated":"2015-01-30 20:38:27.000000000","message":"Ok, as I am moving the parsing part out of the scope of the spec, we just do not care about this for now.","commit_id":"c22edfe7a542ca265059e7cd49c01ad22d61cba3"}]}
