eiffel-community / eiffel-community/eiffel-pythonlib
Activity should be able to be called outside of subscriber
- Lenguaje dominante
- Python
- Estrellas
- 8
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Description
An Activity should be able to handle being called without being a subscriber callback.
That is, you should be able to call an activity.
Example:
```
class MyActivity(Activity):
pass
activity = MyActivity(...)
activity()
# Stuff happens
```
### Motivation
Sometimes an activity can be triggered without listening on events, for example when creating a tool that sends activity triggered,started,finished.
### Exemplification
Activities should be allowed to be used as activities started and not just activities triggered.
### Benefits
Ease of use.
### Possible Drawbacks
Maybe pinning too much functionality to the activity object.
Guía de contribución
Línea de trabajo
Comienza localizando la implementación de Activity y la ruta del subscriber callback en la Python library. Determina cómo deben relacionarse las llamadas directas con los eventos triggered, started y finished, y verifica después que el comportamiento existente de los subscriber se mantenga intacto y que la invocación directa esté cubierta por pruebas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100