You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by PurelyApplied <gi...@git.apache.org> on 2017/05/09 00:01:50 UTC

[GitHub] geode pull request #500: GEODE-2662: Gfsh displays field value on wrong line...

GitHub user PurelyApplied opened a pull request:

    https://github.com/apache/geode/pull/500

    GEODE-2662: Gfsh displays field value on wrong line ...

    ... when receiving objects with missing fields.
    
    DataCommandResult.buildTable refactored to scan for all necessary fields and build rows, padding with MISSING_VALUE as necessary.
    
    Additionally, significant refactoring for readability.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/PurelyApplied/geode geode-2662

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/geode/pull/500.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #500
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] geode issue #500: GEODE-2662: Gfsh displays field value on wrong line ...

Posted by PurelyApplied <gi...@git.apache.org>.
Github user PurelyApplied commented on the issue:

    https://github.com/apache/geode/pull/500
  
    precheckin returns green across the board.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] geode pull request #500: GEODE-2662: Gfsh displays field value on wrong line...

Posted by jinmeiliao <gi...@git.apache.org>.
Github user jinmeiliao commented on a diff in the pull request:

    https://github.com/apache/geode/pull/500#discussion_r117081706
  
    --- Diff: geode-core/src/test/java/org/apache/geode/test/dunit/rules/ServerStarterRule.java ---
    @@ -145,6 +153,7 @@ public void startServer(boolean pdxPersistent) {
         CacheFactory cf = new CacheFactory(this.properties);
         cf.setPdxReadSerialized(pdxPersistent);
         cf.setPdxPersistent(pdxPersistent);
    +    this.pdxPersistent = pdxPersistent;
    --- End diff --
    
    I don't think we should add this line here. 
    
    we can get rid of this "public void startServer(boolean pdxPersistent)"  method now since we have withPdxPersistant added. the flag should solely be determined by the value of the member variable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] geode pull request #500: GEODE-2662: Gfsh displays field value on wrong line...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/geode/pull/500


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] geode pull request #500: GEODE-2662: Gfsh displays field value on wrong line...

Posted by jinmeiliao <gi...@git.apache.org>.
Github user jinmeiliao commented on a diff in the pull request:

    https://github.com/apache/geode/pull/500#discussion_r117080378
  
    --- Diff: geode-core/src/main/java/org/apache/geode/management/internal/cli/domain/DataCommandResult.java ---
    @@ -406,124 +400,140 @@ public Result toCommandResult() {
           section.addData("Message", errorString);
           section.addData(RESULT_FLAG, operationCompletedSuccessfully);
           return ResultBuilder.buildResult(data);
    +    }
    +
    +    CompositeResultData data = ResultBuilder.createCompositeResultData();
    +    SectionResultData section = data.addSection();
    +    TabularResultData table = section.addTable();
    +
    +    section.addData(RESULT_FLAG, operationCompletedSuccessfully);
    +    if (infoString != null) {
    +      section.addData("Message", infoString);
    +    }
    +
    +    if (isGet()) {
    +      toCommandResult_isGet(section, table);
    +    } else if (isLocateEntry()) {
    +      toCommandResult_isLocate(section, table);
    +    } else if (isPut()) {
    +      toCommandResult_isPut(section, table);
    +    } else if (isRemove()) {
    +      toCommandResult_isRemove(section, table);
    +    } else if (isSelect()) {
    +      // its moved to its separate method
    --- End diff --
    
    so, for isSelect() we don't do anything? looks like isSelect() is only used here, probably we can remove this function? looks like there is a lot of unused functions in this class as well.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---