Skip to content

Conversation

@VaclavS16
Copy link
Contributor

@VaclavS16 VaclavS16 commented Jun 19, 2025

Added docs for subscriptions. Define rules for dynamically construct graphql definitions with plugins and add expample of using graphql directives

@VaclavS16 VaclavS16 requested a review from Copilot June 19, 2025 07:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the GraphQL guidelines for the frontend by renaming and refactoring the API service for project status reports while also updating related GraphQL definitions and examples.

  • Renamed and refactored the API service from DataSourceConfluenceApi to ProjectStatusReportApi with new methods for querying, deleting, and subscribing to project status reports.
  • Updated GraphQL definitions, including a new query, mutation, and subscription, along with enhanced documentation examples and notes.
Comments suppressed due to low confidence (1)

docs/Frontend_tutorials/standards/FE-Standards-graphql.md:223

  • [nitpick] The note about using the tagged template literal syntax appears to be repeated (see also line 223). Consider consolidating these duplicate notes into a single, clear instruction to reduce redundancy.
> Note: When defining GraphQL with the gql tag, use the tagged template literal syntax without enclosing it in parentheses <code>gql\`...\`;</code>. Do not write <code>gql(\`...\`);</code> instead, use it directly followed by a template literal as shown in the examples below. Using parentheses will cause a parsing error—such as Uncaught (in promise) GraphQLError: Syntax Error: Unexpected "["—because it interferes with the proper tag processing of the template literal. For further details on tagged template syntax, please see the MDN documentation on tagged templates.

vaclavstencl added 2 commits June 30, 2025 14:51
```
docs: update GraphQL standards for dynamic queries

This update enhances the documentation on using GraphQL with directives and dynamic query construction. It clarifies how to conditionally include fields based on plugin activity and emphasizes the need for proper syntax when utilizing the gql tag.
Updated the naming examples for GraphQL queries and fragments. The example now references `projectStatusReport.ts` and `fullProjectStatusReport.ts` to provide clarity on naming conventions within the documentation. This ensures consistency with current project standards.
Copy link

@mahovsson mahovsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

za mne ok

@VaclavS16 VaclavS16 merged commit f62a76e into main Jul 2, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants