-
Notifications
You must be signed in to change notification settings - Fork 0
Add tutor [dev|local|k8s] do sqlshell
command
#51
Comments
@rgraber FYI |
@regisb This one's ready for your eyes now. |
Let me think out loud here:
Thus I suggest the following solution:
|
tutor [dev|local|k8s] dbshell
command
@regisb I like that solution. I updated the acceptance criteria, can you take a look and let me know if it still looks good? |
I thought about this again, and I changed my mind about the recommended solution. The problem with a dedicated An alternative that I would like to suggest is to add a Alternatives that I've considered:
EDIT: the year is 2023, we have pluggable tasks, and (2) is the right way to implement this. |
If you feel that pluggable tasks is the right way to solve it, then let's do that! We have at least two other reasons to build the task interface, anyway. I'll consider this ticket as blocked by #75. |
tutor [dev|local|k8s] dbshell
commandtutor [dev|local|k8s] sqlshell
command
@regisb I updated this issue now that we have do-jobs. Can you check that the tasks look right to you? I'm also curious if you have a pref between |
fyi @Carlos-Muniz , since you might be the one to pick this up. |
They do. I think that we should add a I prefer "sqlshell" because it's clearer than "dbshell". |
tutor [dev|local|k8s] sqlshell
commandtutor [dev|local|k8s] do sqlshell
command
An optional `--db=openedx` argument can be passed to the job command. This should close openedx-unsupported/wg-developer-experience#51
An optional `--db=openedx` argument can be passed to the job command. This should close openedx-unsupported/wg-developer-experience#51
🎉 |
Background
In devstack, one could get a MySQL database prompt by:
make mysql-shell
and then enteringmysql
at the container shell prompt.make dev.dbshell
to jump directly in.or a MongoDB prompt by:
make mongo-shell
and then enteringmongo
at the container shell prompt.In Tutor, the equivalent command for MySQL is:
and the equivalent command for Mongo is:
We should make these commands simpler. Or, at the very least, we should document them.
Tasks
sqlshell
) using the newCLI_DO_COMMANDS
filter. The job should execute, in themysql
service:tutor [dev|local|k8s] do sqlshell
.The text was updated successfully, but these errors were encountered: