Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems after code changes for date fields #15

Open
Jehu opened this issue Jul 18, 2018 · 3 comments
Open

Problems after code changes for date fields #15

Jehu opened this issue Jul 18, 2018 · 3 comments

Comments

@Jehu
Copy link

Jehu commented Jul 18, 2018

@olragon many thanks for fixing #13
Date start and end are returned now. But there are new problems:

Because type 'struct' was deleted from Schema.php i've get this dump() output if i open /graphql

array:6 [▼
  "label" => "CER"
  "description" => "Information about the entity, used internally by CER."
  "type" => "struct"
  "getter callback" => "cer_get_cer_struct"
  "computed" => true
  "property info" => array:4 [▼
    "lineage" => array:5 [▼
      "label" => "Kontext"
      "description" => "The entity's lineage, represented as a string."
      "type" => "text"
      "getter callback" => "cer_get_entity_lineage"
      "computed" => true
    ]
    "depth" => array:5 [▼
      "label" => "Tiefe"
      "description" => "How deeply the entity is embedded."
      "type" => "integer"
      "getter callback" => "cer_get_entity_depth"
      "computed" => true
    ]
    "owner" => array:5 [▼
      "label" => "Eigentümer"
      "description" => "The top-level entity under which this one is embedded."
      "type" => "entity"
      "getter callback" => "cer_get_entity_owner"
      "computed" => true
    ]
    "original" => array:5 [▼
      "label" => "Original"
      "description" => "The original entity (before update), or the current entity if an update has not occurred."
      "type" => "entity"
      "getter callback" => "cer_get_entity_original"
      "computed" => true
    ]
  ]
]

Cannot detect fieldType for cer cer

If i add struct type again, i get a JSON formatted result with debug infos. I can use graphiQL also then. "cer" comes from https://www.drupal.org/project/cer which is used a lot in our project.

Important: There is a problem with text fields now:

query {
  fhp_shop_blocking {
    id
    field_blocking_reason {
      value
      format
    } 
    field_shop_blocking_dates {
      value
      value2
    }
  }
}

Result:

{
  "data": {
    "fhp_shop_blocking": [
      {
        "id": "1",
        "field_blocking_reason": {
          "value": null,
          "format": null
        },
        "field_shop_blocking_dates": {
          "value": "2018-08-01 00:00:00",
          "value2": "2018-08-25 00:00:00"
        }
      },
      {
        "id": "28",
        "field_blocking_reason": {
          "value": null,
          "format": null
        },
        "field_shop_blocking_dates": {
          "value": "2018-07-02 00:00:00",
          "value2": "2018-07-25 00:00:00"
        }
      }
    ]
  }
}

As you can see, the graphiQL autosuggests in query

[...]
    field_blocking_reason {
      value
      format
    } 
[...]

and they return now

[...]
        "field_blocking_reason": {
          "value": null,
          "format": null
        },
[...]

I appreciate your support. Please help us fix the remaining problems soon.

@Jehu
Copy link
Author

Jehu commented Jul 23, 2018

@olragon any ideas?

@Jehu
Copy link
Author

Jehu commented Jul 30, 2018

@olragon can you please estimate when you can fix this?

@olragon
Copy link
Owner

olragon commented Aug 4, 2018

Hard week of work. Will fix in next 3-4 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants