Add GraphQL MetadataInfo interface for namespace metadata
What does this MR do and why?
Add GraphQL MetadataInfo interface for namespace metadata
- Add metadata_info field to NamespaceType
- Create MetadataInfo interface with common metadata fields
- Implement GroupNamespaceMetadataInfoType with group-specific logic
- Implement ProjectNamespaceMetadataInfoType with project-specific logic
- Implement UserNamespaceMetadataInfoType for user namespaces
- Add comprehensive specs following existing patterns
Fields added:
- defaultBranch: Project default branch
- timeTrackingLimitToHours: Time tracking configuration
- initialSort: User's issue sort preference
- isSignedIn: Authentication status
- isIssueRepositioningDisabled: Issue repositioning setting
- showNewWorkItem: Work item creation permission check
- maxAttachmentSize: Maximum attachment size limit
- hasProjects: Group projects existence check
- groupId: Group/namespace ID
Changelog: added EE: true
References
Relates to #578973
Example
| query | result |
|---|---|
|
|
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Vedant Jain