Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Accessibilité débutants
- 75/100
- Type d'issue
- Documentation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- python, typescript
- Domaine
- documentation
Piste de recherche
Le snippet Python provient de getWarehouseEventSnippets().Python dans frontend/web/components/pages/environment-settings/tabs/warehouse-tab/warehouseEventSnippets.ts. Compare la ligne d'import Cloud avec la branche self-hosted, qui importe déjà EventProcessorConfig et Flagsmith, puis vérifie les consignes pour les tâches de courte durée qui utilisent max_buffer_items=1. C'est terminé lorsque la sortie Cloud importe les deux symboles, comme self-hosted, et que les consignes restent cohérentes. Aucune exécution du SDK Python n'est nécessaire pour vérifier le texte.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hullo folks,
I’m doing some research for Tessl Code Review and ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
Describe the bug
The Cloud Python warehouse example advises short-lived scripts to use EventProcessorConfig(max_buffer_items=1), but its import only includes Flagsmith. A user applying that advice needs an additional import that the example does not show.
This is a small documentation/snippet issue, rather than a claim that the unchanged snippet itself raises an exception.
Steps to reproduce
At be2bd72, call getWarehouseEventSnippets().Python in warehouseEventSnippets.ts. The emitted text starts with:
from flagsmith import Flagsmith
It later recommends passing max_buffer_items=1 to EventProcessorConfig for short-lived scripts and jobs. Applying that recommendation in the constructor introduces a name that was never imported:
flagsmith = Flagsmith(
environment_key="YOUR_ENVIRONMENT_KEY",
enable_events=True,
event_processor_config=EventProcessorConfig(max_buffer_items=1),
)
Expected behavior
Include EventProcessorConfig in the Cloud import, or show the extra import and constructor option together in the short-lived-job guidance. The self-hosted variant already imports both symbols.
Validation
I executed the current TypeScript generator with no argument (Cloud) and with self-hosted URLs. Cloud emitted only Flagsmith; self-hosted emitted EventProcessorConfig, Flagsmith. Both emitted the short-lived-job guidance. I did not run the Python SDK, send events, or test a deployed Flagsmith instance.
The lead came from a retrospective Tessl review and I checked the generated output against current source. Happy to adjust if the intended example usage is different.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Bap
- Langage dominant
- Python
- Étoiles
- 7.4k
- Forks
- 613
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 144
Préparer son environnement
- Fournit un Dockerfile ou un 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 Flagsmith/flagsmith
-
Action links render in the wrong colour in dark modePeut-être pris @manueldezman l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Flagsmith/flagsmith#9082 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Fix Button Alignment in SDK Installation SectionPeut-être pris @manueldezman l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Flagsmith/flagsmith#9056 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 83/100
Flagsmith/flagsmith#9013 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Expose whether an organisation is blocked for API usagePeut-être pris @PiUnknown l’a pris il y a 35 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Flagsmith/flagsmith#8773 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Flagsmith/flagsmith
Issues similaires
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsOuvertestatus/accepted type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
microsoft/apm#5309 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug vector-store
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
EverMind-AI/Raven#1413 ·
Les mainteneurs répondent en général sous 1 jour
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Les mainteneurs répondent en général sous 2 jours