-
Notifications
You must be signed in to change notification settings - Fork 196
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
chore: assessment api methods #2028
Conversation
context, error_message = self._parse_example(self.example) | ||
return { | ||
'error_message': error_message, | ||
'essay_context': context |
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.
Is "essay" the original wording? Because it would avoid it if it is not, these are frequently (but not always) essays and using that language could cause confusion.
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.
was training_essay_context
dd599e9
to
6ca7344
Compare
dd38301
to
f74ea26
Compare
def _self_path_and_context(self, key, step_data, with_sub=False): | ||
return self.SELF_TEMPLATE_PATHS[key], self.self_context(step_data, with_sub) | ||
|
||
def self_path_and_context(self): |
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.
My preference is to change this from:
- path & context > identify template > proxy to getting context
To:
- path & context > (get path & get context) as 2 separate functions (as in submission_mixin)
In the first approach, you're effectively hiding the get_context
function. In the second, path and context are both top-level functions that get assembled by the path_and_context
function.
e52268e
to
ea8e6dc
Compare
Adds FileAPI to isolate file behaviors
Includes refactors for consistency and missing utils
fac9131
to
b268d24
Compare
Created helper create_test_submission function to simplify testing
4ca4d57
to
be32c82
Compare
TL;DR - [ A short summary of what this PR does and why ]
Initial rip of api logic from non-peer assessment mixins.