# Marco de scripts para reordenar temas y categorías

**URL:** https://meta.discourse.org/t/script-framework-to-rearrange-topics-and-categories/241964
**Category:** Sysadmins
**Created:** [15 Octubre, 2022 03:05 UTC](https://meta.discourse.org/t/script-framework-to-rearrange-topics-and-categories/241964 "2022-10-15T03:05:13Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [28 Octubre, 2022 00:42 UTC](https://meta.discourse.org/t/script-framework-to-rearrange-topics-and-categories/241964/10 "2022-10-28T00:42:07Z")

</div>

Descubrí en el tema Retort que @angus tiene una rama con conversión impulsada por la interfaz de usuario, que me había pasado por completo.

> [@Discourse Retort](https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903/469?u=mcdanlj):
>
> Hey guys, as discussed in the topic above I’ve already written a migration feature of Retort to Reactions, including an admin UI. For it to be production ready the maintainers of Reactions will need to make a slight change to improve the abstraction of the code in the Reactions plugin. Supporting a production level migration between two plugins like this requires significant quality assurance otherwise issues like this can easily occur.

Mi script se adentra en los detalles internos que, teóricamente, podrían cambiar algún día, y una vez que haya realizado mis conversiones con este script, **no me daré cuenta si esos detalles internos cambian.** Primero intenté hacerlo “de la manera correcta”, pero descubrí que el plugin Reactions no expone una interfaz que lo permita. @angus tiene una visión a largo plazo:

> [@Discourse Retort](https://meta.discourse.org/t/retort-a-reaction-style-plugin-for-discourse/35903/472?u=mcdanlj):
>
> By all means, I didn’t mean to discourage you writing it for your own purposes, but I wouldn’t advise other sites to use it unless they’re familiar with the code and the data structure. The bottom line is that the Reactions Plugin isn’t currently written in a way conducive to a stable migration that will work reliably across environments. If anyone wishes to migrate from Retort to Reactions, [Pavilion](https://pavilion.tech) is handling these manually on a contract basis (email contact@pavilion.tech or PM me). If the …

@pfaffman, si creas una tarea rake, podrías incluirla en una PR que también realice los cambios en las interfaces para que, por ejemplo, se pueda pasar `created_by`, además de silencioso, en lugar de usar la “puerta trasera” que utilicé. En ese momento, la tarea rake estaría allí para las migraciones de línea de comandos y, al mismo tiempo, permitiría a @angus realizar una migración impulsada por la interfaz de usuario.

---

_[View the full topic](https://meta.discourse.org/t/script-framework-to-rearrange-topics-and-categories/241964)._
