Why this provide a parent commit that does not exists in the github web view


#1

I ran this query to get the blame details of a certain file and to obtain the commit hash which added the previous lines that being modified from the current commit (2a3f35c271fab20991c987650fbfde3ed60c59ea) .

query {
  repository(owner: "wso2", name: "carbon-analytics") {
    object(expression: "2a3f35c271fab20991c987650fbfde3ed60c59ea") {
      ... on Commit {
        blame(path: "components/analytics-data-connectors/org.wso2.carbon.analytics.datasource.cassandra/src/test/java/org/wso2/carbon/analytics/datasource/cassandra/CassandraUtilsTest.java") {
          ranges {
            startingLine
            endingLine
            age
            commit {
              history(first : 2){
                edges{
                  node{
                    url
                    message
                    
                  }
                }
              }
              url
              message
             
            }
          }
        }
      }
    }
  }
}

This is the output

{
  "data": {
    "repository": {
      "object": {
        "blame": {
          "ranges": [
            {
              "startingLine": 1,
              "endingLine": 46,
              "age": 1,
              "commit": {
                "history": {
                  "edges": [
                    {
                      "node": {
                        "url": "https://github.com/wso2/carbon-analytics/commit/2a3f35c271fab20991c987650fbfde3ed60c59ea",
                        "message": "fixing CANALYTICS-8\nhttps://wso2.org/jira/projects/CANALYTICS/issues/CANALYTICS-8"
                      }
                    },
                    {
                      "node": {
                        "url": "https://github.com/wso2/carbon-analytics/commit/4411f51afe2bb925559fd39e3c48993ca31e2a12",
                        "message": "Improvements to the RDBMS connector performance"
                      }
                    }
                  ]
                },
                "url": "https://github.com/wso2/carbon-analytics/commit/2a3f35c271fab20991c987650fbfde3ed60c59ea",
                "message": "fixing CANALYTICS-8\nhttps://wso2.org/jira/projects/CANALYTICS/issues/CANALYTICS-8"
              }
            }
          ]
        }
      }
    }
  }
}

I can see that the components/analytics-data-connectors/org.wso2.carbon.analytics.datasource.cassandra/src/test/java/org/wso2/carbon/analytics/datasource/cassandra/CassandraUtilsTest.java file is being newly created from this commit. But why in history field it is giving a parent commit hash of 4411f51afe2bb925559fd39e3c48993ca31e2a12. It cannot be seen in the github web view](https://github.com/wso2/carbon-analytics/blame/2a3f35c271fab20991c987650fbfde3ed60c59ea/components/analytics-data-connectors/org.wso2.carbon.analytics.datasource.cassandra/src/test/java/org/wso2/carbon/analytics/datasource/cassandra/CassandraUtilsTest.java)
This is fine for modifying existing files, but when use it against a newly created file it give this miss leading parent. Why is that??

Thank you