[Groonga-commit] groonga/gcs [master] Return "PendingDeletion" as a part of index field status

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 21 15:06:59 JST 2012


YUKI Hiroshi	2012-11-21 15:06:59 +0900 (Wed, 21 Nov 2012)

  New Revision: 55a1b027a6d3d70644c4e4206288067498a09cdd
  https://github.com/groonga/gcs/commit/55a1b027a6d3d70644c4e4206288067498a09cdd

  Log:
    Return "PendingDeletion" as a part of index field status

  Modified files:
    lib/api/2011-02-01/configuration.js
    lib/database/index-field.js
    test/xml-responses.js

  Modified: lib/api/2011-02-01/configuration.js (+2 -0)
===================================================================
--- lib/api/2011-02-01/configuration.js    2012-11-21 13:58:32 +0900 (f0d86e7)
+++ lib/api/2011-02-01/configuration.js    2012-11-21 15:06:59 +0900 (3d8d430)
@@ -259,8 +259,10 @@ function createOptionStatus(options) {
   var updatedAt = options.field ? options.field.updatedAt : options.updatedAt;
   var updateVersion = options.field ? options.field.updateVersion : options.updateVersion;
   var state = options.field ? options.field.state : options.state;
+  var pendingDeletion = options.field ? options.field.pendingDeletion : options.pendingDeletion;
   optionStatus.begin(options.element || 'Status', { version: '1.0' })
     .element('CreationDate').text(dateFormat(createdAt, 'isoUtcDateTime')).up()
+    .element('PendingDeletion').text(pendingDeletion || 'false').up()
     .element('State').text(state || 'RequiresIndexDocuments').up()
     .element('UpdateDate').text(dateFormat(updatedAt, 'isoUtcDateTime')).up()
     .element('UpdateVersion').text(updateVersion || '0');

  Modified: lib/database/index-field.js (+4 -0)
===================================================================
--- lib/database/index-field.js    2012-11-21 13:58:32 +0900 (6482ea3)
+++ lib/database/index-field.js    2012-11-21 15:06:59 +0900 (a22058f)
@@ -354,6 +354,10 @@ IndexField.prototype = {
     return 'Active';
   },
 
+  get pendingDeletion() {
+    return 'false';
+  },
+
   get summary() {
     return this.name + ' ' + this.state + ' ' +
              this.type + ' (' + this.options + ')';

  Modified: test/xml-responses.js (+1 -0)
===================================================================
--- test/xml-responses.js    2012-11-21 13:58:32 +0900 (93b896e)
+++ test/xml-responses.js    2012-11-21 15:06:59 +0900 (2b0cbca)
@@ -70,6 +70,7 @@ exports.DescribeDomainsResponse = function(members) {
 var OptionStatus =
     exports.OptionStatus = {
       CreationDate: '',
+      PendingDeletion: '',
       State: '',
       UpdateDate: '',
       UpdateVersion: ''
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index