FluentCMS.Admin.Hosting reads Core through InternalsVisibleTo: a public seam for a package that serves a surface of its own
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- csharp
- Área
- backend-api-design
Línea de trabajo
Start with src/FluentCMS.Core/FluentCMS.Core.csproj and admin/src/FluentCMS.Admin.Hosting/AdminHostingExtensions.cs to trace the internal members used by the hosting package. Read the related API types under Api/Common and DependencyInjection, then check the backend specification for where new public members should be documented. Done means the admin package compiles without Core's InternalsVisibleTo, the reference host retains its headers, limits, and startup refusals, and the public members are documented in both places.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
FluentCMS.Core names FluentCMS.Admin.Hosting in InternalsVisibleTo (src/FluentCMS.Core/FluentCMS.Core.csproj, line 37), and the package uses internal types of Core: FluentCmsSurfaceMetadata, FluentCmsEndpointMetadata and ContentSecurityPolicyMetadata (Api/Common), ApiPipelineState (Api/Common/ApiPipeline.cs), HostErrorCodes and FluentCmsOptions with AddFluentCmsOptions (DependencyInjection). It marks its endpoints as a surface of FluentCMS, sets the policy of the admin page, checks that the pipeline is configured, and binds its options with the host's error codes (admin/src/FluentCMS.Admin.Hosting/AdminHostingExtensions.cs, lines 19, 35, 58, 82 and 86). The package is released with A-47. A host that takes a later patch of Core with the same hosting package then fails at run time on a renamed internal member, with no word at restore (#3178).
Proposal
A small public surface in Core for a package that maps endpoints of its own under a FluentCMS host: marking a group as a surface with a name, a Content-Security-Policy for an endpoint, the check that UseFluentCms ran, and the binding of an options section with the host's refusal at start. Then drop the InternalsVisibleTo line. A third party that serves a page from a FluentCMS host needs the same.
Acceptance
-
FluentCMS.Admin.Hostingcompiles with noInternalsVisibleTofrom Core - The reference host serves the admin as before, with the same headers, limits and refusals at start
- The new members are documented, and the backend specification names them
From the review of #3191 (#3178). Needed by A-47, which until then has the package depend on the exact version of FluentCMS.Core. Size: S.
- Lenguaje dominante
- C#
- Estrellas
- 567
- Forks
- 107
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 353
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fluentcms/FluentCMS
-
area:localization plugin type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:storage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area:testing type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area:api area:publishing type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
fluentcms/FluentCMS#3473 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:storage plugin type:bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de fluentcms/FluentCMS
Issues similares
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQPosiblemente ocupada @spuddeh la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePosiblemente ocupada @Goldziher la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsAbiertobug sev-5 vm
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100