-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat(interview): Interview fixes #1234
Conversation
wanna rename to Breadcrumb in here as well? |
rdmo/projects/assets/js/interview/components/main/widget/CheckboxWidget.js
Show resolved
Hide resolved
def copy_project(project, site, owners): | ||
from .models import Membership, Value # to prevent circular inclusion | ||
def copy_project(instance, site, owners): | ||
from .models import Membership, Project, Value # to prevent circular inclusion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this .import ...
was already there but it's not so clean. It is only needed because of that get_value_path
method which is imported from this utils.py
in models.value.py
and used by the Value.file_path
method.
That function can also easily (in a quick check) be refactored into the models.value.py
module and would make the imports normal at the top.
Should I add a refactor commit for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As explained in the meeting utils.py
should not import models module-wide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app.utils
can only import models from other_app
and not from app.models
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if other_app
is "below" app
in our made up apps hierarchy core < conditions|domain|...|views < projects
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but in this case everything is imported only from projects
right? 😏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found only 2 typing bugs and have a refactor suggestion, for the rest I think it looks good! 💫
There were some other issues, but I think now I am done. Can I merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks very much!
I tested it out and couldn't find any issues anymore! 💫
This PR contains a set of (hopefully) last fixes and changes to the interview rework.