[MGNLGQL-172] Filtering by metadata does not work after Magnolia start Created: 26/Oct/23  Updated: 31/Oct/23

Status: Open
Project: Magnolia GraphQL
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: GraphQL Phase 2
Team: DeveloperX

 Description   

Steps to reproduce

  • Open GraphQL app
  • Execute query
    {
      tours(limit:100 filter: "@_metadata.createdBy = 'superuser'") {
        name
        description
        _metadata {
          createdBy
        }
      }
    }

    Expected results

    Results filtered by createdBy

    Actual results

    Error response

    Workaround

    Edit content type to refresh GraphQL schema

    Development notes

    It looks like that when some of the types are built, the JcrMetadata is not yet present in the GraphQL registry and info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper#findAvailableJcrMetadata returns empty map.


Generated at Mon Feb 12 05:53:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.