Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(projects): reload organization after project creation #18198

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/scenes/teamLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export const teamLogic = kea<teamLogicType>([
],
})),
listeners(({ actions }) => ({
createTeamSuccess: () => {
organizationLogic.actions.loadCurrentOrganization()
},
deleteTeam: async ({ team }) => {
try {
await api.delete(`api/projects/${team.id}`)
Expand Down
8 changes: 5 additions & 3 deletions hogql_parser/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
err_indicator = PyObject_SetAttrString(py_err, "end", py_end); \
if (err_indicator == -1) goto exit##TYPE; \
PyErr_SetObject(error_type, py_err); \
exit##TYPE:; \
exit##TYPE :; \
Py_XDECREF(py_end); \
Py_XDECREF(py_start); \
Py_XDECREF(py_err); \
Expand Down Expand Up @@ -2096,7 +2096,8 @@ static PyMethodDef parser_methods[] = {
.ml_meth = method_unquote_string,
.ml_flags = METH_VARARGS,
.ml_doc = "Unquote the string (an identifier or a string literal))"},
{NULL, NULL, 0, NULL}};
{NULL, NULL, 0, NULL}
};

static int parser_modexec(PyObject* module) {
parser_state* state = get_module_state(module);
Expand All @@ -2118,7 +2119,8 @@ static int parser_modexec(PyObject* module) {
static PyModuleDef_Slot parser_slots[] = {
{Py_mod_exec, (void*)parser_modexec}, // If Python were written in C++, then Py_mod_exec would be typed better, but
// because it's in C, it expects a void pointer
{0, NULL}};
{0, NULL}
};

static int parser_traverse(PyObject* module, visitproc visit, void* arg) {
parser_state* state = get_module_state(module);
Expand Down
2 changes: 1 addition & 1 deletion hogql_parser/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ string unquote_string(string text) {
boost::replace_all(text, "\\r", "\r");
boost::replace_all(text, "\\t", "\t");
boost::replace_all(text, "\\v", "\v");
boost::replace_all(text, "\\0", ""); // NUL characters are ignored
boost::replace_all(text, "\\0", ""); // NUL characters are ignored
boost::replace_all(text, "\\\\", "\\");

return text;
Expand Down
Loading