Skip to content

Fix problems with entity form display context for entity definition data producers.#998

Merged
klausi merged 5 commits intodrupal-graphql:8.x-4.xfrom
rthideaway:fix/entity-form-display-context
Dec 14, 2020
Merged

Fix problems with entity form display context for entity definition data producers.#998
klausi merged 5 commits intodrupal-graphql:8.x-4.xfrom
rthideaway:fix/entity-form-display-context

Conversation

@rthideaway
Copy link
Copy Markdown
Contributor

Recently we have found that entity form display context is incorrectly set in entity_definition_fields data producer. Drupal contains entity form displays per bundle, so it makes set this context only when bundle context is included. Fixed that.

Then the context was incorrectly used in couple of field data producers, namely in entity_definition_field_hidden, entity_definition_field_settings and entity_definition_field_weight. Fixed that as well.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2020

Codecov Report

❗ No coverage uploaded for pull request base (8.x-4.x@794ce3c). Click here to learn what that means.
The diff coverage is 42.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##             8.x-4.x     #998   +/-   ##
==========================================
  Coverage           ?   52.82%           
  Complexity         ?      635           
==========================================
  Files              ?      115           
  Lines              ?     1626           
  Branches           ?        0           
==========================================
  Hits               ?      859           
  Misses             ?      767           
  Partials           ?        0           
Impacted Files Coverage Δ Complexity Δ
src/Access/ExplorerAccessCheck.php 0.00% <0.00%> (ø) 2.00 <2.00> (?)
src/Access/VoyagerAccessCheck.php 0.00% <0.00%> (ø) 2.00 <2.00> (?)
src/Cache/Context/StaticCacheContext.php 0.00% <0.00%> (ø) 4.00 <4.00> (?)
src/Controller/SubrequestExtractionController.php 0.00% <0.00%> (ø) 1.00 <0.00> (?)
src/GraphQL/Buffers/EntityBuffer.php 80.76% <0.00%> (ø) 7.00 <0.00> (?)
src/GraphQL/Buffers/EntityRevisionBuffer.php 0.00% <0.00%> (ø) 7.00 <7.00> (?)
src/GraphQL/Resolver/Condition.php 0.00% <0.00%> (ø) 8.00 <8.00> (?)
src/GraphQL/Resolver/Context.php 0.00% <0.00%> (ø) 5.00 <5.00> (?)
src/GraphQL/Resolver/Map.php 0.00% <0.00%> (ø) 4.00 <4.00> (?)
src/GraphQL/Resolver/Path.php 0.00% <0.00%> (ø) 4.00 <4.00> (?)
... and 76 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 794ce3c...7b8f22c. Read the comment docs.

@klausi
Copy link
Copy Markdown
Contributor

klausi commented Jul 8, 2020

I think this makes sense, we should add some test cases to make sure this works.

@klausi
Copy link
Copy Markdown
Contributor

klausi commented Dec 14, 2020

I will merge this now to credit @rthideaway and the follow up in #1132

@klausi klausi merged commit 9654fa1 into drupal-graphql:8.x-4.x Dec 14, 2020
@rthideaway rthideaway deleted the fix/entity-form-display-context branch December 14, 2020 15:22
klausi pushed a commit to klausi/graphql that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants