Show the Share button even when the code isn't running
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- haskell
- Área
- full-stack
Línea de trabajo
Comienza rastreando la acción Share existente y el endpoint /compile para entender cómo se envía y almacena el código. Decide cómo debe comportarse el uso compartido de código no ejecutado o modificado y, después, implementa el comportamiento acordado del cliente y del servidor para que Share esté disponible cuando el código no se esté ejecutando y se pueda compartir el código previsto sin compilación innecesaria.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Suggested by @jbash in #1409. There should still be a Share button to share code even when the code isn't running.
In terms of implementation, this means that the code will have to be sent to the server when Share is clicked, since it hasn't been sent yet. Currently the only way to do that is to invoke /compile on the server. That is wasteful, though, so I should probably add a new server-side endpoint to store code without trying to compile it.
Open questions:
- What if the current code has been modified since the program was run? Currently, we show a warning, and offer to re-run the program (which will then cause Share to share the latest code as well). Instead, if users shouldn't think of sharing as connected to running, maybe we should just ask them which they intended to share.
- If this might cause more shares of incomplete code, should we stop users from accidentally sharing code that hasn't been run without source access? My sense is probably no... but it's worth considering if this would be confusing. The risk is that students will share something that they think works without testing, and then the person they are sharing with only sees a white box, and the student is frustrated because they never saw the error message.
- Lenguaje dominante
- Haskell
- Estrellas
- 1.3k
- Forks
- 201
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 google/codeworld
-
Redundant code in CFracPart3 Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
my solution Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Todos los issues de google/codeworld
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
doclayout-0.6 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
commercialhaskell/stackage#8126 ·
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
enhancement tricorder
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100