[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, php
Línea de trabajo
Lee forms/dialogAccount.xml y views/OPNsense/DynDNS/index.volt, especialmente el comportamiento actual de optional_setting. Actualiza esos archivos para admitir clases optional_hiding en campos específicos de cada servicio. El trabajo estará terminado cuando los campos marcados para un proveedor seleccionado estén ocultos, los demás campos estándar sigan visibles y el comportamiento actual de optional_setting siga funcionando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [ X] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [X ] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [X ] When the request is meant for an existing plugin, I've added its name to the title.
**Is your feature request related to a problem? Please describe.✱
During work on pull request #5935 for os-ddclient, it became obvious that several modern token-based DynDNS providers do not use standard fields like username, zone, or wildcard or even force ssl. Currently, dialogAccount.xml only supports optional_setting to show extra fields for specific services, while unused standard fields remain visible.
For example:
• DuckDNS (duckdns): Does not use username or zone (only the token in password), which frequently causes users to accidentally enter a username and break updates.
• Cloudflare (cloudflare): Leaves username blank when using API tokens.
• In an extreme case, a token-only provider (e.g. Ionos) only requires a single token field (today provided in field 'password') or update URL (today provided in field 'server') and does not use username, zone, or wildcard at all. All other fields are in fact ignored but may confuse users whether they are required for their case or not.
Describe the solution you'd like
Introduce a symmetrical opt-out mechanism (optional_hiding) in dialogAccount.xml and index.volt that mirrors the existing optional_setting pattern without adding new model fields or translation strings:
In /usr/local/opnsense/mvc/app/controllers/OPNsense/DynDNS/forms/dialogAccount.xml:
<style>optional_hiding service_duckdns</style>
In /usr/local/opnsense/mvc/app/views/OPNsense/DynDNS/index.volt:
$(".optional_setting").closest("tr").hide();
$(".optional_setting.service_" + $(this).val()).closest("tr").show();
$(".optional_hiding").closest("tr").show();
$(".optional_hiding.service_" + `$(this).val()).closest("tr").hide();'
Full example: In fact this would enable to opt out all not required fields with a
<style>optional_hiding service_provider1 service_provider2 </style>:
<field>
<id>account.username</id>
<label>Username</label>
<type>text</type>
<help>Username or login to use</help>
<style>optional_hiding service_ionos-v4 service_ionos-v6</style>
</field>
**Describe alternatives you've considered✱
If we want to keep the necessary changes small: N/A.
A wider scope would consider a 'full flexibility' by allowing to addcomplete new Fields and shifting eg the today 'Password' entry to a new field 'Token' but this would result in a larger architecture change of the current model which is questionable whether worth the effort
**Additional context✱
This could enhance clarity for users when configuring their dedicated service provider parameters and limit the form to exit this fields which are relevant
- Lenguaje dominante
- PHP
- Estrellas
- 1.2k
- Forks
- 917
- Merge medio
- 1 d 15 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni 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 opnsense/plugins
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120sPosiblemente ocupada @mhatipog la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
mail/postfix: add options to disable VRFY and restrict ETRNPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
Todos los issues de opnsense/plugins
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mailcow/mailcow-dockerized#7677 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
a11y
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
-
wpvc
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
10up/ElasticPressLabs#254 ·
Los mantenedores suelen responder en 1 día
-
🧑💻 tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
guibranco/gstraccini-bot-service#1206 ·
Los mantenedores suelen responder en 1 día