You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a good approach since BaseEnvironment should know nothing about recording a command.
So, I think it's a good idea to have something like pre_run_command and post_run_command methods so classes that inherit from it can override those to do whatever they need (record the command in this specific case)
The text was updated successfully, but these errors were encountered:
Is there a specific reason why BaseEnvironment shouldn't know about command reporting? It seems like the best place to implement this logic is in a shared base
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Currently, the
BaseEnvironment
class check ifrecord
is defined and if so, record the command into the database, https://github.com/rtfd/readthedocs.org/pull/3520/files#r168777620This is not a good approach since
BaseEnvironment
should know nothing about recording a command.So, I think it's a good idea to have something like
pre_run_command
andpost_run_command
methods so classes that inherit from it can override those to do whatever they need (record the command in this specific case)The text was updated successfully, but these errors were encountered: