Update 106-StockingLocations to derive scope from environment.fsUrl
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 70/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript
- Área
- authentication, documentation
Línea de trabajo
Start in samples/106-StockingLocations by following the OFS open-message handling and the getAccessTokenByScope call. Check the sample README and plugin metadata for secured scope configuration; done means fsUrl-derived scope handling and clear missing or unexpected-format errors, with outdated guidance removed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
The 106-StockingLocations sample currently depends on a secured parameter for the Fusion scope. That is unnecessary for this plugin and makes configuration more brittle than needed.
Describe the solution you'd like
Update samples/106-StockingLocations so it derives the scope value from openData.environment.fsUrl instead of reading it from secured parameters.
Expected behavior:
- read environment.fsUrl from the OFS open message
- if fsUrl is something like https://ETAQ-DEV4.fs.ocs.oraclecloud.com, derive the scope identifier ETAQ-DEV4
- use that derived value when constructing the scope for getAccessTokenByScope
- remove the plugin reliance on securedParams.scope for this sample
Implementation notes:
- parse the subdomain prefix from environment.fsUrl
- preserve clear error handling if fsUrl is missing or has an unexpected format
- update README and plugin metadata to remove outdated scope configuration guidance
Describe alternatives you've considered
Keeping scope in secured parameters works, but it adds manual setup that should be avoidable because the environment already provides enough information.
Additional context
Target sample: samples/106-StockingLocations
Example:
- fsUrl: https://ETAQ-DEV4.fs.ocs.oraclecloud.com
- derived identifier: ETAQ-DEV4
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 oracle-samples/ofs-sample-plugins
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
Become ColloboratorAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
Add InspectionEventsPlugin (022) - 26A Forms and Fusion API IntegrationQuizá libre de nuevo @btoron la tomó hace 241 días y no hay ningún pull request abierto. Abierto
oracle-samples/ofs-sample-plugins#134 · 1 asignado ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Todos los issues de oracle-samples/ofs-sample-plugins
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
vercel-labs/ui#999 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
melgarafael/DeskcommCRM#5109 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Doist/todoist-sdk-typescript#783 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
nicobailon/pi-subagents#3319 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Sidebar project filter uses Shift-click instead of ⌘-click to add or remove a projectAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día