Skip to content

Commit

Permalink
fix(projects): reload organization after project creation (#18198)
Browse files Browse the repository at this point in the history
* reload org after project creation

* call loadCurrentOrganization in createTeamSuccess listener
  • Loading branch information
jurajmajerik authored Oct 27, 2023
1 parent 4b06e35 commit b93a7e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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

0 comments on commit b93a7e5

Please sign in to comment.