TickerFunctionProvider's registry is publicly writable
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Refactorisation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- csharp
- Domaine
- backend-api-design
Piste de recherche
Start at src/TickerNet.Utilities/TickerFunctionProvider.cs around lines 35-37 to see how the static registry fields are declared and mutated. Then find every writer of those fields, including the update path in TickerNet.Hub for remote functions, and route it through an internal method while the public surface becomes IReadOnlyDictionary or private set. Add a test that mutates the registry from outside and fails against the current fields, check the ADR and release-notes conventions before writing them, and note that PR #86 already touches this area, so coordinate rather than duplicate.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What happens
TickerFunctionProvider (src/TickerNet.Utilities/TickerFunctionProvider.cs, around lines 35-37) exposes its function registry as public, writable static fields. Any code can replace them after startup, which breaks scheduling in ways that are hard to trace.
Fix idea
Make them read-only properties (private set, or IReadOnlyDictionary). This changes public API, so it needs an ADR and a note in the release notes; check TickerNet.Hub, which updates the registry for remote functions, still works through an internal method.
Found while checking which problems that TickerQ fixed after the fork still exist in TickerNet. Fix it from this description and TickerNet's own code only: never read or copy code from TickerQ 10.5.0 or later (see CONTRIBUTING.md). Please add a test that fails before the fix.
- Langage dominant
- C#
- Étoiles
- 0
- Forks
- 2
- Merge moyen
- 1 h 8 min
- PR mergées (30 j)
- 24
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TickerNet/TickerNet
-
.NET bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
Add TickerResult.EnsureSuccess()Ouverte.NET enhancement good first issue roadmap
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Document PathBase inside the dashboard branch and WebDAV on IISPeut-être pris @harryhawwy69 l’a pris aujourd’hui. Ouvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 40/100
Les mainteneurs répondent en général sous 1 jour
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorPeut-être pris @harryhawwy69 l’a pris aujourd’hui. Ouvertebug good first issue javascript
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
Les mainteneurs répondent en général sous 1 jour
-
Dashboard logs a warning for the missing updatenodeheartbeat handlerPeut-être pris @harryhawwy69 l’a pris aujourd’hui. Ouvertebug good first issue javascript
Difficulté 2/5 1-3 heures Accessibilité débutants 40/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de TickerNet/TickerNet
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
dotnet-outdated/dotnet-outdated#871 ·
Les mainteneurs répondent en général sous 1 jour
-
triage/untriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
unoplatform/uno#26676 ·
Les mainteneurs répondent en général sous 1 jour
-
[问题] 导出文件时,提示后面还有1243390911步Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
jhaizhou-ops/S2Arm#2177 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
area-CodeGen-coreclr untriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
dotnet/runtime#138181 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
CO spearhead is too loudOuverteS: Untriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 2 jours